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.
@@ -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 of chart accounts isGST flag
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.71",
3
+ "version": "0.28.73",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",