taxtank-core 3.0.2 → 3.0.3
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/fesm2022/taxtank-core.mjs +13 -5
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -9089,9 +9089,6 @@ class PropertyReportItem extends AbstractModel {
|
|
|
9089
9089
|
this.subCode = chartAccounts.taxReturnItem?.subCode;
|
|
9090
9090
|
this.description = chartAccounts.name;
|
|
9091
9091
|
}
|
|
9092
|
-
get claimAmount() {
|
|
9093
|
-
return round(this.amount * (this.claimPercent / 100), 2);
|
|
9094
|
-
}
|
|
9095
9092
|
get shareClaimAmount() {
|
|
9096
9093
|
return this.claimAmount * (this.sharePercent / 100);
|
|
9097
9094
|
}
|
|
@@ -9132,9 +9129,13 @@ class PropertyReportItemDepreciation extends PropertyReportItem {
|
|
|
9132
9129
|
class PropertyReportItemTransaction extends PropertyReportItem {
|
|
9133
9130
|
constructor(transactions, property, chartAccounts) {
|
|
9134
9131
|
super(property, chartAccounts);
|
|
9132
|
+
this.transactions = transactions;
|
|
9135
9133
|
this.amount = Math.abs(transactions.sumBy('grossAmount'));
|
|
9136
9134
|
this.description = chartAccounts.name;
|
|
9137
9135
|
}
|
|
9136
|
+
get claimAmount() {
|
|
9137
|
+
return this.transactions.claimAmount / this.sharePercent * 100;
|
|
9138
|
+
}
|
|
9138
9139
|
}
|
|
9139
9140
|
|
|
9140
9141
|
/**
|
|
@@ -29906,7 +29907,14 @@ class WorkExpenseForm extends WorkTransactionForm {
|
|
|
29906
29907
|
constructor(transaction, registeredForGst, allocations, homeOfficeClaim) {
|
|
29907
29908
|
super(transaction, registeredForGst, allocations);
|
|
29908
29909
|
this.homeOfficeClaim = homeOfficeClaim;
|
|
29909
|
-
|
|
29910
|
+
if (!transaction.chartAccounts?.hasWorkExpensePayer()) {
|
|
29911
|
+
this.get('incomeSource').disable();
|
|
29912
|
+
}
|
|
29913
|
+
// amount set automatically for chartAccounts with hours meta field
|
|
29914
|
+
if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
|
|
29915
|
+
this.get('amount').disable();
|
|
29916
|
+
this.get('amountWithGST').disable();
|
|
29917
|
+
}
|
|
29910
29918
|
}
|
|
29911
29919
|
listenEvents() {
|
|
29912
29920
|
this.watchChartAccountsMetaFields();
|
|
@@ -29963,7 +29971,7 @@ class HoldingIncomeForm extends WorkTransactionForm {
|
|
|
29963
29971
|
this.get('amount').setValidators([Validators.required, conditionalValidator(() => this.get('chartAccounts').value && this.get('chartAccounts').value.isDividends(), matchSumValidator(this.getAmountComponents, 'The Franked and Unfranked amounts entered do not equal the total Amount received. Please check and try again.'))]);
|
|
29964
29972
|
// forbid to edit some fields for allocated transaction
|
|
29965
29973
|
if (allocations.length) {
|
|
29966
|
-
this.get('chartAccounts').disable();
|
|
29974
|
+
this.get('chartAccounts').disable({ emitEvent: false });
|
|
29967
29975
|
}
|
|
29968
29976
|
this.get('transactions').disable();
|
|
29969
29977
|
// amount changes are not available for transactions with allocations or during allocate process
|