taxtank-core 0.33.42 → 0.33.44
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +2 -2
- package/esm2022/src/lib/db/Enums/client/timezone.enum.mjs +3 -1
- package/esm2022/src/lib/forms/transaction/transaction.form.mjs +1 -2
- package/fesm2022/taxtank-core.mjs +3 -2
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Enums/client/timezone.enum.d.ts +2 -0
@@ -23,7 +23,7 @@ export class SoleInvoiceCollection extends Collection {
|
|
23
23
|
const unpaidInvoices = this.getUnpaid(transactions);
|
24
24
|
invoicesByState.add(SoleInvoiceStateEnum.FULLY_PAID, this.getPaid(transactions));
|
25
25
|
invoicesByState.add(SoleInvoiceStateEnum.PAID, this.filterBy('id', transactions.filterByFinancialYear('date').map(transaction => transaction.invoiceId)));
|
26
|
-
invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.
|
26
|
+
invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.FULLY_PAID).toArray()));
|
27
27
|
invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
|
28
28
|
return invoicesByState;
|
29
29
|
}
|
@@ -34,4 +34,4 @@ export class SoleInvoiceCollection extends Collection {
|
|
34
34
|
return flatten(this.map(invoice => invoice.allocate(bankTransaction, amount)));
|
35
35
|
}
|
36
36
|
}
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZ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gaW52b2ljZXNCeVN0YXRlXG4gIH1cblxuICBnZXRVbnBhaWRBbW91bnQodHJhbnNhY3Rpb25zOiBUcmFuc2FjdGlvbkNvbGxlY3Rpb24pOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLnN1bUJ5KCdncm9zc1ByaWNlJykgLSB0cmFuc2FjdGlvbnMuZ2V0QnlJbnZvaWNlcyh0aGlzKS5zdW1CeSgnZ3Jvc3NBbW91bnQnKTtcbiAgfVxuXG4gIGFsbG9jYXRlKGJhbmtUcmFuc2FjdGlvbjogQmFua1RyYW5zYWN0aW9uLCBhbW91bnQ/OiBudW1iZXIpOiBUcmFuc2FjdGlvbltdIHtcbiAgICByZXR1cm4gZmxhdHRlbih0aGlzLm1hcChpbnZvaWNlID0+IGludm9pY2UuYWxsb2NhdGUoYmFua1RyYW5zYWN0aW9uLCBhbW91bnQpKSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -2,8 +2,10 @@ export var TimezoneEnum;
|
|
2
2
|
(function (TimezoneEnum) {
|
3
3
|
TimezoneEnum["PERTH"] = "Australia/Perth";
|
4
4
|
TimezoneEnum["EUCLA"] = "Australia/Eucla";
|
5
|
+
TimezoneEnum["DARWIN"] = "Australia/Darwin";
|
6
|
+
TimezoneEnum["BRISBANE"] = "Australia/Brisbane";
|
5
7
|
TimezoneEnum["ADELAIDE"] = "Australia/Adelaide";
|
6
8
|
TimezoneEnum["SYDNEY"] = "Australia/Sydney";
|
7
9
|
TimezoneEnum["LORD_HOWE"] = "Australia/Lord_Howe";
|
8
10
|
})(TimezoneEnum || (TimezoneEnum = {}));
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXpvbmUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9jbGllbnQvdGltZXpvbmUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxZQVFYO0FBUkQsV0FBWSxZQUFZO0lBQ3RCLHlDQUF5QixDQUFBO0lBQ3pCLHlDQUF5QixDQUFBO0lBQ3pCLDJDQUEyQixDQUFBO0lBQzNCLCtDQUErQixDQUFBO0lBQy9CLCtDQUErQixDQUFBO0lBQy9CLDJDQUEyQixDQUFBO0lBQzNCLGlEQUFpQyxDQUFBO0FBQ25DLENBQUMsRUFSVyxZQUFZLEtBQVosWUFBWSxRQVF2QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFRpbWV6b25lRW51bSB7XG4gIFBFUlRIID0gJ0F1c3RyYWxpYS9QZXJ0aCcsXG4gIEVVQ0xBID0gJ0F1c3RyYWxpYS9FdWNsYScsXG4gIERBUldJTiA9ICdBdXN0cmFsaWEvRGFyd2luJyxcbiAgQlJJU0JBTkUgPSAnQXVzdHJhbGlhL0JyaXNiYW5lJyxcbiAgQURFTEFJREUgPSAnQXVzdHJhbGlhL0FkZWxhaWRlJyxcbiAgU1lETkVZID0gJ0F1c3RyYWxpYS9TeWRuZXknLFxuICBMT1JEX0hPV0UgPSAnQXVzdHJhbGlhL0xvcmRfSG93ZScsXG59XG4iXX0=
|
@@ -12,7 +12,6 @@ export class TransactionForm extends TransactionBaseForm {
|
|
12
12
|
source: new UntypedFormControl(transaction.source || TransactionSourceEnum.BANK_TRANSACTION, Validators.required)
|
13
13
|
}));
|
14
14
|
this.get('date').addValidators([currentFinYearValidator()]);
|
15
|
-
console.log(transaction);
|
16
15
|
// convert child transactions to controls
|
17
16
|
transaction.transactions.map((transaction) => {
|
18
17
|
this.addTransactionControl(transaction);
|
@@ -60,4 +59,4 @@ export class TransactionForm extends TransactionBaseForm {
|
|
60
59
|
return super.submit(Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }), true);
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XSkgfHwge30sXG4gICAgICBjaGlsZFRyYW5zYWN0aW9uLFxuICAgICkpO1xuICB9XG5cbiAgc3VibWl0KGRhdGE6IG9iamVjdCA9IHt9KTogVHJhbnNhY3Rpb24ge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoT2JqZWN0LmFzc2lnbihkYXRhLCB7IHRyYW5zYWN0aW9uczogdGhpcy5idWlsZFRyYW5zYWN0aW9ucyh0aGlzLmN1cnJlbnRWYWx1ZSkgfSksIHRydWUpO1xuICB9XG59XG4iXX0=
|
@@ -857,6 +857,8 @@ var TimezoneEnum;
|
|
857
857
|
(function (TimezoneEnum) {
|
858
858
|
TimezoneEnum["PERTH"] = "Australia/Perth";
|
859
859
|
TimezoneEnum["EUCLA"] = "Australia/Eucla";
|
860
|
+
TimezoneEnum["DARWIN"] = "Australia/Darwin";
|
861
|
+
TimezoneEnum["BRISBANE"] = "Australia/Brisbane";
|
860
862
|
TimezoneEnum["ADELAIDE"] = "Australia/Adelaide";
|
861
863
|
TimezoneEnum["SYDNEY"] = "Australia/Sydney";
|
862
864
|
TimezoneEnum["LORD_HOWE"] = "Australia/Lord_Howe";
|
@@ -8284,7 +8286,7 @@ class SoleInvoiceCollection extends Collection {
|
|
8284
8286
|
const unpaidInvoices = this.getUnpaid(transactions);
|
8285
8287
|
invoicesByState.add(SoleInvoiceStateEnum.FULLY_PAID, this.getPaid(transactions));
|
8286
8288
|
invoicesByState.add(SoleInvoiceStateEnum.PAID, this.filterBy('id', transactions.filterByFinancialYear('date').map(transaction => transaction.invoiceId)));
|
8287
|
-
invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.
|
8289
|
+
invoicesByState.add(SoleInvoiceStatusesEnum.OPEN, invoicesByState.get(SoleInvoiceStatusesEnum.OPEN).remove(invoicesByState.get(SoleInvoiceStateEnum.FULLY_PAID).toArray()));
|
8288
8290
|
invoicesByState.add(SoleInvoiceStateEnum.OVERDUE, unpaidInvoices.getOverdue());
|
8289
8291
|
return invoicesByState;
|
8290
8292
|
}
|
@@ -23706,7 +23708,6 @@ class TransactionForm extends TransactionBaseForm {
|
|
23706
23708
|
source: new UntypedFormControl(transaction.source || TransactionSourceEnum.BANK_TRANSACTION, Validators.required)
|
23707
23709
|
}));
|
23708
23710
|
this.get('date').addValidators([currentFinYearValidator()]);
|
23709
|
-
console.log(transaction);
|
23710
23711
|
// convert child transactions to controls
|
23711
23712
|
transaction.transactions.map((transaction) => {
|
23712
23713
|
this.addTransactionControl(transaction);
|