taxtank-core 2.1.30 → 2.1.31
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 +11 -1
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -5861,6 +5861,12 @@ class SoleBusiness extends SoleBusiness$1 {
|
|
|
5861
5861
|
}
|
|
5862
5862
|
return this.abn;
|
|
5863
5863
|
}
|
|
5864
|
+
getAddress(soleDetails) {
|
|
5865
|
+
if (!this.isTaxFree) {
|
|
5866
|
+
return soleDetails.address;
|
|
5867
|
+
}
|
|
5868
|
+
return this.address;
|
|
5869
|
+
}
|
|
5864
5870
|
getIsGST(soleDetails) {
|
|
5865
5871
|
if (!this.isTaxFree) {
|
|
5866
5872
|
return soleDetails.isGST;
|
|
@@ -5904,6 +5910,9 @@ __decorate([
|
|
|
5904
5910
|
__decorate([
|
|
5905
5911
|
Type(() => AppFile)
|
|
5906
5912
|
], SoleBusiness.prototype, "file", void 0);
|
|
5913
|
+
__decorate([
|
|
5914
|
+
Type(() => Address)
|
|
5915
|
+
], SoleBusiness.prototype, "address", void 0);
|
|
5907
5916
|
|
|
5908
5917
|
class SoleBusinessActivity extends SoleBusinessActivity$1 {
|
|
5909
5918
|
}
|
|
@@ -13447,7 +13456,7 @@ class BankTransactionService extends RestService$1 {
|
|
|
13447
13456
|
formData.append('file', file);
|
|
13448
13457
|
return this.http.post(`${this.environment.apiV2}/bank-accounts/${bankAccountId}/bank-transaction-imports`, formData)
|
|
13449
13458
|
.pipe(map((response) => {
|
|
13450
|
-
const result = response
|
|
13459
|
+
const result = response.bankTransactions
|
|
13451
13460
|
.map((baseTransaction) => plainToClass(BankTransaction, baseTransaction))
|
|
13452
13461
|
// we are interesting only current fin year bank transactions
|
|
13453
13462
|
.filter((bankTransaction) => new FinancialYear().includes(bankTransaction.date));
|
|
@@ -24826,6 +24835,7 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
24826
24835
|
isTaxFree: new FormControl(business.isTaxFree),
|
|
24827
24836
|
abn: new FormControl(business.abn, requiredLengthValidator(11)),
|
|
24828
24837
|
isGST: new FormControl(business.isGST),
|
|
24838
|
+
address: new FormControl(business.address),
|
|
24829
24839
|
}, business);
|
|
24830
24840
|
this.business = business;
|
|
24831
24841
|
// User have to create income source with new business.
|