Transactions tab standarization

This commit is contained in:
Jose Alberto Hernandez
2024-03-30 19:04:56 -06:00
committed by Jose Alberto Hernandez
parent dab5ceec9d
commit 54dc91e0e2
54 changed files with 757 additions and 353 deletions
+13
View File
@@ -16,6 +16,19 @@ import { OptionData } from 'app/shared/models/option-data.model';
return ['NONE', 'Cash', 'Accrual (periodic)', 'Accrual (upfront)'];
}
public getAccountRuleName(value: string): string {
if (value === 'ACCRUAL PERIODIC') {
return 'Accrual (periodic)';
} else if (value === 'ACCRUAL UPFRONT') {
return 'Accrual (upfront)';
} else if (value === 'CASH BASED') {
return 'Cash';
} else if (value === 'NONE') {
return 'None';
}
return '';
}
public isNoneAccounting(accountingRule: OptionData): boolean {
return (accountingRule.id === 1);
}