4022-client.balance.create #976
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#976
Loading…
Reference in New Issue
No description provided.
Delete Branch "4022-client.balance.create"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat: update date depending of accountingTypeto 4022-client.balance.create@ -166,3 +161,1 @@
(6, 'Loans', NULL, NULL, NULL),
(7, 'Leasing', NULL, NULL, NULL),
(8, 'Compensations', 'Compensations', 'compensation', NULL);
(1, 'CC y Polizas de crédito', 'Transferencias', 'wireTransfer', NULL, 1),
english should be use by default.
@ -72,6 +67,13 @@ class Controller extends Dialog {
`${accountingType && accountingType.receiptDescription}`;
}
this.maxAmount = accountingType && accountingType.maxAmount;
// this.receipt.payed is going to be 100% of the times a date object therefore you can write more simplistic code:
pseudocode example:
this.receipt.payed = new Date()
if (accountingType.daysInFuture)
this.receipt.payed.setDate(this.receipt.payed.getDate() + accountingType.daysInFuture);
@ -172,3 +172,4 @@
(1, 'Pay on receipt', '5720000001', 3, 0, 1, 1),
(2, 'Cash', '5700000001', 2, 0, 1, 1),
(3, 'Compensation', '4000000000', 8, 0, 1, 1),
(4, 'Transferencias', '4000000001', 1, 0, 1, 1),
wrong language
LGTM