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.
@@ -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
- private initialValue;
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
- constructor(invoice: SoleInvoice, soleDetailsGST: boolean);
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
  */
@@ -8,4 +8,5 @@ export * from './sole-depreciation-method';
8
8
  export * from './sole-details';
9
9
  export * from './sole-invoice';
10
10
  export * from './sole-invoice-item';
11
+ export * from './sole-invoice-send-data.interface';
11
12
  export * from './sole-invoice-template';
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.52",
3
+ "version": "0.28.54",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",