taxtank-core 0.29.8 → 0.29.10
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/bundles/taxtank-core.umd.js +14 -5
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Models/transaction/transaction-base.js +2 -2
- package/esm2015/lib/forms/bank/bank-account/bank-account-allocation.form.js +6 -2
- package/esm2015/lib/forms/depreciation/depreciation.form.js +5 -2
- package/esm2015/lib/forms/transaction/transaction-base.form.js +3 -5
- package/fesm2015/taxtank-core.js +10 -5
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts +3 -2
- package/lib/forms/depreciation/depreciation.form.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2230,7 +2230,7 @@
|
|
|
2230
2230
|
};
|
|
2231
2231
|
Object.defineProperty(TransactionBase.prototype, "amountWithGst", {
|
|
2232
2232
|
get: function () {
|
|
2233
|
-
return this.isGST ? +(this.amount * ChartAccounts.GSTCoefficient).toFixed(2) : this.amount;
|
|
2233
|
+
return this.isGST ? +(Math.round(this.amount * ChartAccounts.GSTCoefficient)).toFixed(2) : this.amount;
|
|
2234
2234
|
},
|
|
2235
2235
|
enumerable: false,
|
|
2236
2236
|
configurable: true
|
|
@@ -19591,6 +19591,12 @@
|
|
|
19591
19591
|
}
|
|
19592
19592
|
});
|
|
19593
19593
|
};
|
|
19594
|
+
BankAccountAllocationForm.prototype.submit = function (data, includeDisabledFields) {
|
|
19595
|
+
if (data === void 0) { data = {}; }
|
|
19596
|
+
if (includeDisabledFields === void 0) { includeDisabledFields = false; }
|
|
19597
|
+
// remove property/business allocations if empty
|
|
19598
|
+
return _super.prototype.submit.call(this, Object.assign({ bankAccountProperties: [], businessAllocations: [] }, this.value));
|
|
19599
|
+
};
|
|
19594
19600
|
return BankAccountAllocationForm;
|
|
19595
19601
|
}(AbstractForm));
|
|
19596
19602
|
|
|
@@ -20849,10 +20855,8 @@
|
|
|
20849
20855
|
}, controls), transaction) || this;
|
|
20850
20856
|
_this.registeredForGst = registeredForGst;
|
|
20851
20857
|
_this.watchChartAccounts();
|
|
20852
|
-
|
|
20853
|
-
|
|
20854
|
-
_this.watchIsGst();
|
|
20855
|
-
}
|
|
20858
|
+
_this.watchAmountWithGST();
|
|
20859
|
+
_this.watchIsGst();
|
|
20856
20860
|
return _this;
|
|
20857
20861
|
}
|
|
20858
20862
|
TransactionBaseForm.prototype.watchIsGst = function () {
|
|
@@ -21142,6 +21146,11 @@
|
|
|
21142
21146
|
});
|
|
21143
21147
|
return _this;
|
|
21144
21148
|
}
|
|
21149
|
+
DepreciationForm.prototype.submit = function (data, includeDisabledFields) {
|
|
21150
|
+
if (data === void 0) { data = {}; }
|
|
21151
|
+
if (includeDisabledFields === void 0) { includeDisabledFields = false; }
|
|
21152
|
+
return _super.prototype.submit.call(this, data, true);
|
|
21153
|
+
};
|
|
21145
21154
|
return DepreciationForm;
|
|
21146
21155
|
}(TransactionBaseForm));
|
|
21147
21156
|
|