taxtank-core 0.28.71 → 0.28.73
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 +102 -21
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/sole/sole-invoice.form.js +45 -25
- package/esm2015/lib/models/sole/bas-report.js +19 -1
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +12 -1
- package/fesm2015/taxtank-core.js +70 -21
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/forms/sole/sole-invoice.form.d.ts +11 -2
- package/lib/models/sole/bas-report.d.ts +6 -0
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { SoleInvoice, SoleInvoiceTemplate } from '../../models';
|
|
3
|
-
import { FormArray } from '@angular/forms';
|
|
3
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
4
4
|
import { IEventListener } from '../../interfaces/event-listener.interface';
|
|
5
|
+
/**
|
|
6
|
+
* Form is divided into two groups, since the creation of Sole invoice takes place in two steps:
|
|
7
|
+
* a common invoice data and sole invoice items.
|
|
8
|
+
*/
|
|
5
9
|
export declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implements IEventListener {
|
|
6
10
|
private invoice;
|
|
7
11
|
private soleDetailsGST;
|
|
@@ -22,7 +26,7 @@ export declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implement
|
|
|
22
26
|
private listenTaxTypeChanges;
|
|
23
27
|
private updateTemplateRelatedFields;
|
|
24
28
|
/**
|
|
25
|
-
* GST availability depends
|
|
29
|
+
* GST availability depends on chart accounts isGST flag
|
|
26
30
|
*/
|
|
27
31
|
private listenItemChartAccountsChanges;
|
|
28
32
|
private disableItemGST;
|
|
@@ -31,4 +35,9 @@ export declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implement
|
|
|
31
35
|
* when ChartAccounts.isGST === true, so we just use default value from chartAccounts.isGST
|
|
32
36
|
*/
|
|
33
37
|
private enableItemGST;
|
|
38
|
+
get commonData(): FormGroup;
|
|
39
|
+
/**
|
|
40
|
+
* Rewrite abstract form getter to flat "commonData" field, which is not in the class
|
|
41
|
+
*/
|
|
42
|
+
get currentValue(): SoleInvoice;
|
|
34
43
|
}
|
|
@@ -3,6 +3,12 @@ export declare class BasReport extends BasReportBase {
|
|
|
3
3
|
dateFrom: Date;
|
|
4
4
|
dateTo: Date;
|
|
5
5
|
get taxWithheldTotal(): number;
|
|
6
|
+
get paygTaxInstalmentOwedToATO(): number;
|
|
7
|
+
get paygTaxInstalmentOwedByATO(): number;
|
|
8
|
+
get fuelTaxCreditOwedToATO(): number;
|
|
9
|
+
get fuelTaxCreditOwedByATO(): number;
|
|
10
|
+
get owesToATO(): number;
|
|
11
|
+
get owedByATO(): number;
|
|
6
12
|
/**
|
|
7
13
|
* GST payable to the ATO, or refundable from the ATO in case it's negative
|
|
8
14
|
*/
|
|
@@ -11,6 +11,11 @@ export declare class SoleInvoiceService extends RestService<SoleInvoiceBase, Sol
|
|
|
11
11
|
updateStatus(invoice: SoleInvoice, status: SoleInvoiceStatusesEnum): Observable<SoleInvoice>;
|
|
12
12
|
publish(invoice: SoleInvoice, document: Document): Observable<SoleInvoice>;
|
|
13
13
|
sendEmail(invoice: SoleInvoice): Observable<Object>;
|
|
14
|
+
/**
|
|
15
|
+
* Return the next number from the last invoice.
|
|
16
|
+
* Basically needed to create a new invoice to show its number when the invoice has not yet been sent to the backend
|
|
17
|
+
*/
|
|
18
|
+
getNewInvoiceNumber(): number;
|
|
14
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SoleInvoiceService, never>;
|
|
15
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<SoleInvoiceService>;
|
|
16
21
|
}
|