taxtank-core 2.1.52 → 2.1.53

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/index.d.ts CHANGED
@@ -1511,6 +1511,7 @@ declare class Loan$1 extends ObservableModel {
1511
1511
 
1512
1512
  declare abstract class TransactionBase extends ObservableModel {
1513
1513
  amount?: number;
1514
+ foreignAmount?: number;
1514
1515
  file: AppFile;
1515
1516
  property?: Property;
1516
1517
  business?: SoleBusiness$1;
@@ -1537,6 +1538,7 @@ declare abstract class TransactionBase extends ObservableModel {
1537
1538
  isOtherTank(): boolean;
1538
1539
  isPersonalTank(): boolean;
1539
1540
  get amountWithGst(): number;
1541
+ get foreignAmountWithGst(): number;
1540
1542
  get gstAmount(): number;
1541
1543
  get gstClaimAmount(): number;
1542
1544
  /**
@@ -1666,6 +1668,9 @@ declare class Transaction$1 extends TransactionBase {
1666
1668
  business?: SoleBusiness$1;
1667
1669
  isGST?: boolean;
1668
1670
  invoiceItem?: SoleInvoiceItem$1;
1671
+ currency?: string;
1672
+ foreignAmount?: number;
1673
+ exchangeRate?: number;
1669
1674
  }
1670
1675
 
1671
1676
  declare class SoleInvoiceItem$1 extends AbstractModel {
@@ -4087,6 +4092,7 @@ declare class BankAccount$1 extends BankAccount {
4087
4092
  bankConnection: BankConnection$1;
4088
4093
  migrateFrom: Date;
4089
4094
  migrateTo: Date;
4095
+ currency: string;
4090
4096
  get bank(): Bank;
4091
4097
  get bsb(): string;
4092
4098
  get number(): string;
@@ -4171,6 +4177,7 @@ declare class BankAccount$1 extends BankAccount {
4171
4177
  */
4172
4178
  isLoanPaid(taxTankBalance: number): boolean;
4173
4179
  isManual(): boolean;
4180
+ get isForeign(): boolean;
4174
4181
  }
4175
4182
 
4176
4183
  declare class SoleBusinessAllocation extends SoleBusinessAllocation$1 {
@@ -4550,6 +4557,7 @@ declare class Transaction extends Transaction$1 implements Expense {
4550
4557
  operation: TransactionOperationEnum;
4551
4558
  claimPercent: number;
4552
4559
  amount: number;
4560
+ currency: string;
4553
4561
  get invoiceId(): number;
4554
4562
  isDebit(): boolean;
4555
4563
  isCredit(): boolean;
@@ -4607,6 +4615,7 @@ declare class Transaction extends Transaction$1 implements Expense {
4607
4615
  * ie user received 1000$ salary including 100$ tips. NetAmount=1000$, amount=900$, tips=100$
4608
4616
  */
4609
4617
  get netAmount(): number;
4618
+ get netForeignAmount(): number;
4610
4619
  /**
4611
4620
  * most of the transactions could have only positive or negative amount depends on chartAccounts, so we ignore
4612
4621
  * user's choice and transform amount, but there are exceptions like advance (negative or positive amount)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "2.1.52",
3
+ "version": "2.1.53",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.1.3",