taxtank-core 0.28.52 → 0.28.54
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 +25 -12
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/abstract.form.js +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/sole/index.js +2 -1
- package/esm2015/lib/models/sole/sole-invoice-send-data.interface.js +2 -0
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +1 -2
- package/fesm2015/taxtank-core.js +25 -12
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/forms/abstract.form.d.ts +1 -1
- package/lib/forms/sole/sole-invoice.form.d.ts +5 -2
- package/lib/models/sole/index.d.ts +1 -0
- package/lib/models/sole/sole-invoice-send-data.interface.d.ts +9 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare abstract class AbstractForm<Model> extends FormGroup {
|
|
|
9
9
|
/**
|
|
10
10
|
* Initial form value for comparison with changes to check saved/unsaved state
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
initialValue: Model;
|
|
13
13
|
protected modelClass: Type<Model>;
|
|
14
14
|
model: Model;
|
|
15
15
|
submitted: boolean;
|
|
@@ -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
|
*/
|
|
@@ -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
|
+
}
|