taxtank-core 0.29.30 → 0.29.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/bundles/taxtank-core.umd.js +3247 -3173
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/allocation-group.collection.js +9 -0
- package/esm2015/lib/collections/collection.js +2 -1
- package/esm2015/lib/collections/index.js +2 -1
- package/esm2015/lib/db/Models/transaction/transaction.js +1 -1
- package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
- package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
- package/esm2015/lib/interceptors/interceptors.module.js +4 -4
- package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
- package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
- package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
- package/esm2015/lib/models/bank/allocation-group.js +57 -0
- package/esm2015/lib/models/bank/index.js +2 -1
- package/esm2015/lib/models/transaction/transaction.js +9 -1
- package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
- package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
- package/esm2015/lib/services/asset/assets.service.js +3 -3
- package/esm2015/lib/services/auth/auth.service.js +3 -3
- package/esm2015/lib/services/auth/jwt.service.js +3 -3
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
- package/esm2015/lib/services/event/sse.service.js +3 -3
- package/esm2015/lib/services/export/export-formatter.service.js +3 -3
- package/esm2015/lib/services/header-title/header-title.service.js +3 -3
- package/esm2015/lib/services/http/address/address.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
- package/esm2015/lib/services/http/chat/chat.service.js +3 -3
- package/esm2015/lib/services/http/chat/message-document.service.js +3 -3
- package/esm2015/lib/services/http/chat/message.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
- package/esm2015/lib/services/http/document/document.service.js +3 -3
- package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
- package/esm2015/lib/services/http/file/file.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/firm.service.js +3 -3
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
- package/esm2015/lib/services/http/loan/loan.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
- package/esm2015/lib/services/http/property/property.service.js +3 -3
- package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest.service.js +3 -3
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
- package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-payment/service-payment.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-price/service-price.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-product/service-product.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-subscription/subscription.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
- package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
- package/esm2015/lib/services/http/user/user.service.js +3 -3
- package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
- package/esm2015/lib/services/intercom/intercom.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
- package/esm2015/lib/services/preloader/preloader.service.js +3 -3
- package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
- package/esm2015/lib/services/toast/toast.service.js +3 -3
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/user/user-switcher.service.js +3 -3
- package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
- package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
- package/esm2015/lib/tt-core.module.js +4 -4
- package/fesm2015/taxtank-core.js +2618 -2549
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/allocation-group.collection.d.ts +5 -0
- package/lib/collections/index.d.ts +1 -0
- package/lib/db/Models/transaction/transaction.d.ts +2 -0
- package/lib/models/bank/allocation-group.d.ts +34 -0
- package/lib/models/bank/index.d.ts +1 -0
- package/lib/models/transaction/transaction.d.ts +3 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export * from './subscription';
|
|
|
9
9
|
export * from './tax-summary';
|
|
10
10
|
export * from './transaction';
|
|
11
11
|
export * from './vehicle';
|
|
12
|
+
export * from './allocation-group.collection';
|
|
12
13
|
export * from './account-setup-item.collection';
|
|
13
14
|
export * from './bank-account.collection';
|
|
14
15
|
export * from './bank-transaction.collection';
|
|
@@ -12,6 +12,7 @@ import { TransactionBase } from './transaction-base';
|
|
|
12
12
|
import { Property } from '../property/property';
|
|
13
13
|
import { Depreciation } from '../depreciation/depreciation';
|
|
14
14
|
import { SoleBusiness } from '../sole/sole-business';
|
|
15
|
+
import { SoleInvoiceItem } from '../sole/sole-invoice-item';
|
|
15
16
|
export declare class Transaction extends TransactionBase {
|
|
16
17
|
id?: number;
|
|
17
18
|
type?: TransactionTypeEnum;
|
|
@@ -43,4 +44,5 @@ export declare class Transaction extends TransactionBase {
|
|
|
43
44
|
updatedBy?: User;
|
|
44
45
|
business?: SoleBusiness;
|
|
45
46
|
isGST?: boolean;
|
|
47
|
+
soleInvoiceItem?: SoleInvoiceItem;
|
|
46
48
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SoleInvoice } from '../sole';
|
|
2
|
+
import { Transaction } from '../transaction';
|
|
3
|
+
import { AbstractModel } from '../../db/Models';
|
|
4
|
+
import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
|
|
5
|
+
import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
|
|
6
|
+
import { BankTransactionCollection, TransactionAllocationCollection, TransactionCollection } from '../../collections';
|
|
7
|
+
/**
|
|
8
|
+
* User knows nothing about invoiceItem transaction/allocation, it's encapsulated. That's why we need an extra model to hide technical complication from user
|
|
9
|
+
* @TODO Alex: we use category and invoice number in the same place: think about common name and unite 2 fields in 1
|
|
10
|
+
* @TODO Alex: think: move check operation methods to some common class (with transaction)
|
|
11
|
+
* @TODO Alex: isTransactionChangeable method's name is breaking abstraction
|
|
12
|
+
*/
|
|
13
|
+
export declare class AllocationGroup extends AbstractModel {
|
|
14
|
+
operation: TransactionOperationEnum;
|
|
15
|
+
date: Date;
|
|
16
|
+
amount: number;
|
|
17
|
+
description: string;
|
|
18
|
+
category?: string;
|
|
19
|
+
tankType: TankTypeEnum;
|
|
20
|
+
childTransactions?: TransactionCollection;
|
|
21
|
+
invoiceNumber?: number;
|
|
22
|
+
allocations: TransactionAllocationCollection;
|
|
23
|
+
bankTransactions: BankTransactionCollection;
|
|
24
|
+
static fromInvoice(invoice: SoleInvoice, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): AllocationGroup;
|
|
25
|
+
static fromTransaction(transaction: Transaction, bankTransactions: BankTransactionCollection, allocations: TransactionAllocationCollection): AllocationGroup;
|
|
26
|
+
isFindMatch(): boolean;
|
|
27
|
+
isMatchInvoice(): boolean;
|
|
28
|
+
isTransfer(): boolean;
|
|
29
|
+
isAllocate(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* user can edit/delete (via redo all) transaction only for allocate and find and match operations
|
|
32
|
+
*/
|
|
33
|
+
isTransactionChangeable(): boolean;
|
|
34
|
+
}
|
|
@@ -12,6 +12,7 @@ import { IReceipt } from '../../interfaces/receipt.interface';
|
|
|
12
12
|
import { TransactionAllocationCollection } from '../../collections';
|
|
13
13
|
import { Depreciation } from '../depreciation/depreciation';
|
|
14
14
|
import { Expense } from '../../interfaces/expense.interface';
|
|
15
|
+
import { SoleInvoiceItem } from '../sole';
|
|
15
16
|
export declare class Transaction extends TransactionBase implements Expense, IReceipt {
|
|
16
17
|
transactions: Transaction[];
|
|
17
18
|
property: Property;
|
|
@@ -23,6 +24,7 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
23
24
|
loan: Loan;
|
|
24
25
|
date: Date;
|
|
25
26
|
allocations: TransactionAllocation[];
|
|
27
|
+
soleInvoiceItem: SoleInvoiceItem;
|
|
26
28
|
tax: number;
|
|
27
29
|
operation: TransactionOperationEnum;
|
|
28
30
|
allocatedAmount: number;
|
|
@@ -30,6 +32,7 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
30
32
|
isSelected: boolean;
|
|
31
33
|
claimPercent: number;
|
|
32
34
|
amount: number;
|
|
35
|
+
get invoiceId(): number;
|
|
33
36
|
isDebit(): boolean;
|
|
34
37
|
isCredit(): boolean;
|
|
35
38
|
/**
|