taxtank-core 0.28.53 → 0.28.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taxtank-core.umd.js +58 -31
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/sole/sole-invoice-item.form.js +1 -1
- package/esm2015/lib/forms/sole/sole-invoice.form.js +24 -12
- package/esm2015/lib/models/endpoint/endpoints.const.js +3 -1
- package/esm2015/lib/models/event/app-event-type.enum.js +20 -19
- package/esm2015/lib/models/sole/index.js +2 -1
- package/esm2015/lib/models/sole/sole-invoice-send-data.interface.js +2 -0
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +10 -2
- package/esm2015/lib/services/http/transaction/transaction.service.js +7 -1
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +1 -2
- package/fesm2015/taxtank-core.js +56 -31
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/forms/sole/sole-invoice.form.d.ts +5 -2
- package/lib/models/event/app-event-type.enum.d.ts +19 -18
- package/lib/models/sole/index.d.ts +1 -0
- package/lib/models/sole/sole-invoice-send-data.interface.d.ts +9 -0
- package/lib/services/http/transaction/transaction.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
|
-
import { SoleInvoice } from '../../models';
|
|
2
|
+
import { SoleInvoice, SoleInvoiceTemplate } from '../../models';
|
|
3
3
|
import { FormArray } from '@angular/forms';
|
|
4
4
|
import { IEventListener } from '../../interfaces/event-listener.interface';
|
|
5
5
|
export declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implements IEventListener {
|
|
6
|
+
private invoice;
|
|
6
7
|
private soleDetailsGST;
|
|
7
|
-
|
|
8
|
+
private defaultTemplate;
|
|
9
|
+
constructor(invoice: SoleInvoice, soleDetailsGST: boolean, defaultTemplate: SoleInvoiceTemplate);
|
|
8
10
|
get items(): FormArray;
|
|
9
11
|
listenEvents(): void;
|
|
10
12
|
addItem(): void;
|
|
@@ -18,6 +20,7 @@ export declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implement
|
|
|
18
20
|
* GST is not available for items when invoice.taxType === NONE
|
|
19
21
|
*/
|
|
20
22
|
private listenTaxTypeChanges;
|
|
23
|
+
private updateTemplateRelatedFields;
|
|
21
24
|
/**
|
|
22
25
|
* GST availability depends of chart accounts isGST flag
|
|
23
26
|
*/
|
|
@@ -48,22 +48,23 @@ export declare enum AppEventTypeEnum {
|
|
|
48
48
|
SOLE_DEPRECIATION_METHOD_UPDATED = 46,
|
|
49
49
|
SOLE_DETAILS_CREATED = 47,
|
|
50
50
|
SOLE_DETAILS_UPDATED = 48,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
SOLE_INVOICE_PUBLISHED = 49,
|
|
52
|
+
TAX_REVIEW_UPDATED = 50,
|
|
53
|
+
TRANSACTION_CREATED = 51,
|
|
54
|
+
TRANSACTION_DELETED = 52,
|
|
55
|
+
TRANSACTION_UPDATED = 53,
|
|
56
|
+
TRANSACTION_UPDATED_WITH_RECEIPT = 54,
|
|
57
|
+
TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 55,
|
|
58
|
+
TRANSACTION_RECEIPT_CREATED = 56,
|
|
59
|
+
TRANSACTION_RECEIPT_DELETED = 57,
|
|
60
|
+
TRANSACTIONS_CREATED = 58,
|
|
61
|
+
USER_UPDATED = 59,
|
|
62
|
+
VEHICLE_CLAIM_UPDATED = 60,
|
|
63
|
+
VEHICLE_CLAIM_CREATED = 61,
|
|
64
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 62,
|
|
65
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 63,
|
|
66
|
+
VEHICLE_LOGBOOK_CREATED = 64,
|
|
67
|
+
VEHICLE_LOGBOOK_UPDATED = 65,
|
|
68
|
+
VEHICLE_LOGBOOK_DELETED = 66,
|
|
69
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 67
|
|
69
70
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SoleInvoice } from './sole-invoice';
|
|
2
|
+
/**
|
|
3
|
+
* Data required to sending an invoice.
|
|
4
|
+
* sendByEmail flag indicates whether the invoice should be mailed or not
|
|
5
|
+
*/
|
|
6
|
+
export interface SoleInvoiceSendData {
|
|
7
|
+
invoice: SoleInvoice;
|
|
8
|
+
sendByEmail: boolean;
|
|
9
|
+
}
|
|
@@ -100,6 +100,7 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
|
|
|
100
100
|
*/
|
|
101
101
|
private listenPropertyForecastUpdate;
|
|
102
102
|
private replaceInCache;
|
|
103
|
+
private listenInvoicesPublish;
|
|
103
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionService, never>;
|
|
104
105
|
static ɵprov: i0.ɵɵInjectableDeclaration<TransactionService>;
|
|
105
106
|
}
|