|
|
@ -560,12 +560,10 @@ export class GfCreateOrUpdateActivityDialogComponent { |
|
|
const accountBalanceControl = this.activityForm.get('updateAccountBalance'); |
|
|
const accountBalanceControl = this.activityForm.get('updateAccountBalance'); |
|
|
const accountId = this.activityForm.get('accountId')?.value; |
|
|
const accountId = this.activityForm.get('accountId')?.value; |
|
|
const dataSource = this.activityForm.get('dataSource')?.value; |
|
|
const dataSource = this.activityForm.get('dataSource')?.value; |
|
|
const date = this.activityForm.get('date')?.value; |
|
|
|
|
|
const type = this.activityForm.get('type')?.value; |
|
|
const type = this.activityForm.get('type')?.value; |
|
|
|
|
|
|
|
|
const isEligible = |
|
|
const isEligible = |
|
|
!!accountId && |
|
|
!!accountId && |
|
|
isToday(date) && |
|
|
|
|
|
!['LIABILITY', 'VALUABLE'].includes(type) && |
|
|
!['LIABILITY', 'VALUABLE'].includes(type) && |
|
|
!(dataSource === 'MANUAL' && type === 'BUY'); |
|
|
!(dataSource === 'MANUAL' && type === 'BUY'); |
|
|
|
|
|
|
|
|
|