taxtank-core 0.32.71 → 0.32.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.
Files changed (27) hide show
  1. package/esm2022/lib/db/Models/transaction/transaction-base.mjs +4 -1
  2. package/esm2022/lib/db/Models/transaction/transaction.mjs +1 -1
  3. package/esm2022/lib/forms/transaction/allocation-rule.form.mjs +28 -1
  4. package/esm2022/lib/forms/transaction/transaction.form.mjs +1 -3
  5. package/esm2022/lib/models/transaction/allocation-rule-transaction.mjs +20 -15
  6. package/esm2022/lib/models/transaction/allocation-rule.mjs +5 -2
  7. package/esm2022/lib/models/transaction/transaction.mjs +13 -2
  8. package/esm2022/lib/services/http/bank/bank-connection/bank-connection.service.mjs +2 -2
  9. package/esm2022/lib/services/http/chat/message.service.mjs +2 -2
  10. package/esm2022/lib/services/http/firm/client-invite/client-invite.service.mjs +2 -2
  11. package/esm2022/lib/services/http/firm/client-movement/client-movement.service.mjs +2 -2
  12. package/esm2022/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +2 -2
  13. package/esm2022/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -2
  14. package/fesm2022/taxtank-core.mjs +216 -169
  15. package/fesm2022/taxtank-core.mjs.map +1 -1
  16. package/lib/db/Models/transaction/transaction-base.d.ts +1 -0
  17. package/lib/db/Models/transaction/transaction.d.ts +3 -0
  18. package/lib/forms/transaction/allocation-rule.form.d.ts +9 -0
  19. package/lib/models/transaction/allocation-rule-transaction.d.ts +1 -1
  20. package/lib/models/transaction/transaction.d.ts +4 -0
  21. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +1 -0
  22. package/lib/services/http/chat/message.service.d.ts +1 -0
  23. package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -0
  24. package/lib/services/http/firm/client-movement/client-movement.service.d.ts +1 -0
  25. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts +1 -0
  26. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +1 -0
  27. package/package.json +1 -1
@@ -18,6 +18,7 @@ export declare abstract class TransactionBase extends ObservableModel {
18
18
  isGST?: boolean;
19
19
  claimPercent?: number;
20
20
  sharedClaimPercent?: number;
21
+ get gstCoefficient(): number;
21
22
  get claimRatio(): number;
22
23
  get tankType(): TankTypeEnum;
23
24
  /**
@@ -31,6 +31,9 @@ export declare class Transaction extends TransactionBase {
31
31
  chartAccounts?: ChartAccounts;
32
32
  incomeSource?: IncomeSource;
33
33
  parentTransaction?: Transaction;
34
+ /**
35
+ * list of child transactions (fees)
36
+ */
34
37
  childTransactions?: Transaction[];
35
38
  property?: Property;
36
39
  metaFields?: TransactionMetaField[];
@@ -30,4 +30,13 @@ export declare class AllocationRuleForm extends AbstractForm<AllocationRule> imp
30
30
  get tankTypeLabel(): string;
31
31
  private setupFieldsByType;
32
32
  private setupFieldsByTankType;
33
+ isIncome(): boolean;
34
+ isExpense(): boolean;
35
+ isTransfer(): boolean;
36
+ isPropertyTank(): boolean;
37
+ isWorkTank(): boolean;
38
+ isSoleTank(): boolean;
39
+ isPropertyIncome(): boolean;
40
+ isWorkIncome(): boolean;
41
+ isSoleIncome(): boolean;
33
42
  }
@@ -24,5 +24,5 @@ export declare class AllocationRuleTransaction extends AllocationRuleTransaction
24
24
  /**
25
25
  * Create Transaction instance based on passed bank transaction and rule transaction
26
26
  */
27
- toTransaction(bankTransaction: BankTransaction): Transaction;
27
+ toTransaction(bankTransaction?: BankTransaction): Transaction;
28
28
  }
@@ -13,6 +13,9 @@ import { Expense } from '../../interfaces';
13
13
  import { SoleInvoiceItem } from '../sole';
14
14
  export declare class Transaction extends TransactionBase implements Expense {
15
15
  static className: string;
16
+ /**
17
+ * @TODO rename to childTransactions
18
+ */
16
19
  transactions: Transaction[];
17
20
  property: Property;
18
21
  chartAccounts: ChartAccounts;
@@ -94,4 +97,5 @@ export declare class Transaction extends TransactionBase implements Expense {
94
97
  * user's choice and transform amount, but there are exceptions like advance (negative or positive amount)
95
98
  */
96
99
  ignoreSign(): boolean;
100
+ setParent(transaction: Transaction): void;
97
101
  }
@@ -15,6 +15,7 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
15
15
  collectionClass: typeof Collection;
16
16
  endpointUri: string;
17
17
  disabledMethods: RestMethod[];
18
+ mercureTopic: string;
18
19
  constructor(environment: any);
19
20
  listenEvents(): void;
20
21
  /**
@@ -13,6 +13,7 @@ export declare class MessageService extends RestService<MessageBase, Message, Me
13
13
  collectionClass: typeof MessageCollection;
14
14
  endpointUri: string;
15
15
  disabledMethods: RestMethod[];
16
+ mercureTopic: string;
16
17
  constructor(environment: any);
17
18
  listenEvents(): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
@@ -10,6 +10,7 @@ export declare class ClientInviteService extends RestService<ClientInviteBase, C
10
10
  protected endpointUri: string;
11
11
  collectionClass: typeof ClientInviteCollection;
12
12
  modelClass: typeof ClientInvite;
13
+ mercureTopic: string;
13
14
  constructor(environment: any);
14
15
  listenEvents(): void;
15
16
  getFirmInvites(): Observable<ClientInviteCollection>;
@@ -13,6 +13,7 @@ export declare class ClientMovementService extends RestService<ClientMovementBas
13
13
  collectionClass: typeof ClientMovementCollection;
14
14
  modelClass: typeof ClientMovement;
15
15
  disabledMethods: RestMethod[];
16
+ mercureTopic: string;
16
17
  constructor(environment: any);
17
18
  listenEvents(): void;
18
19
  getActive(): Observable<ClientMovementCollection>;
@@ -10,6 +10,7 @@ export declare class ServicePaymentMethodService extends RestService<ServicePaym
10
10
  protected endpointUri: string;
11
11
  collectionClass: typeof Collection;
12
12
  modelClass: typeof ServicePaymentMethod;
13
+ mercureTopic: string;
13
14
  constructor(environment: any);
14
15
  listenEvents(): void;
15
16
  /**
@@ -16,6 +16,7 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
16
16
  modelClass: typeof ServiceSubscription;
17
17
  collectionClass: typeof ServiceSubscriptionCollection;
18
18
  disabledMethods: RestMethod[];
19
+ mercureTopic: string;
19
20
  constructor(http: HttpClient, environment: any);
20
21
  listenEvents(): void;
21
22
  startTrial(subscription: ServiceSubscription): Observable<ServiceSubscription>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.71",
3
+ "version": "0.32.73",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",