taxtank-core 0.31.30 → 0.31.32
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/esm2020/lib/forms/address/address.form.mjs +4 -2
- package/esm2020/lib/forms/transaction/allocation-rule.form.mjs +4 -1
- package/esm2020/lib/models/bank/bank-transaction.mjs +15 -7
- package/esm2020/lib/models/transaction/allocation-rule-transaction.mjs +8 -13
- package/esm2020/lib/pipes/app-currency.pipe.mjs +23 -0
- package/esm2020/lib/pipes/index.mjs +2 -0
- package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest.service.mjs +33 -8
- package/esm2020/lib/tt-core.module.mjs +4 -1
- package/esm2020/lib/validators/address-corelogic.validator.mjs +5 -4
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/taxtank-core.mjs +128 -75
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +128 -75
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/models/bank/bank-transaction.d.ts +3 -3
- package/lib/models/transaction/allocation-rule-transaction.d.ts +1 -1
- package/lib/pipes/app-currency.pipe.d.ts +11 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/services/http/firm/employee/employee.service.d.ts +1 -1
- package/lib/services/http/rest/rest.service.d.ts +3 -1
- package/lib/tt-core.module.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BankTransaction as BankTransactionBase } from '../../db/Models/bank/bank-transaction';
|
|
2
2
|
import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
|
|
3
|
-
import { Transaction } from '../transaction
|
|
4
|
-
import { TransactionAllocationCollection } from '../../collections
|
|
3
|
+
import { Transaction } from '../transaction';
|
|
4
|
+
import { TransactionAllocationCollection } from '../../collections';
|
|
5
5
|
export declare class BankTransaction extends BankTransactionBase {
|
|
6
6
|
allocatedAmount: number;
|
|
7
7
|
unallocatedAmount: number;
|
|
@@ -23,7 +23,7 @@ export declare class BankTransaction extends BankTransactionBase {
|
|
|
23
23
|
/**
|
|
24
24
|
* Create Transaction instance based on Bank Transaction
|
|
25
25
|
*/
|
|
26
|
-
toTransaction(): Transaction;
|
|
26
|
+
toTransaction(isGST?: boolean, allocations?: TransactionAllocationCollection): Transaction;
|
|
27
27
|
/**
|
|
28
28
|
* Check if bank transaction is completely allocated
|
|
29
29
|
*/
|
|
@@ -2,7 +2,7 @@ import { AllocationRuleTransaction as AllocationRuleTransactionBase } from '../.
|
|
|
2
2
|
import { ChartAccounts } from '../chart-accounts';
|
|
3
3
|
import { AllocationRuleTransactionMetaField } from './allocation-rule-transaction-meta-field';
|
|
4
4
|
import { BankTransaction, Loan, Property, SoleBusiness, Transaction } from '../../models';
|
|
5
|
-
import { IncomeSource } from '../income-source
|
|
5
|
+
import { IncomeSource } from '../income-source';
|
|
6
6
|
export declare class AllocationRuleTransaction extends AllocationRuleTransactionBase {
|
|
7
7
|
chartAccounts: ChartAccounts;
|
|
8
8
|
property: Property;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CurrencyPipe } from '@angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* extended version of currency pipe
|
|
6
|
+
*/
|
|
7
|
+
export declare class AppCurrencyPipe extends CurrencyPipe implements PipeTransform {
|
|
8
|
+
transform(value: number | string, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppCurrencyPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AppCurrencyPipe, "appCurrency", true>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './app-currency.pipe';
|
|
@@ -2,7 +2,7 @@ import { RestService } from '../../rest/rest-old.service';
|
|
|
2
2
|
import { User as UserBase } from '../../../../db/Models/user/user';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { User } from '../../../../models/user/user';
|
|
5
|
-
import { EmployeeMessagesEnum } from
|
|
5
|
+
import { EmployeeMessagesEnum } from './employee-messages.enum';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class EmployeeService extends RestService<UserBase, User> {
|
|
8
8
|
url: string;
|
|
@@ -79,10 +79,12 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
79
79
|
* Remove multiple Model instances from database
|
|
80
80
|
*/
|
|
81
81
|
deleteBatch(models: Model[]): Observable<void>;
|
|
82
|
+
protected track(response: Model[], method: HttpMethod, postfix?: string): void;
|
|
83
|
+
protected handleResponseError(response: Model[], method: HttpMethod): void;
|
|
82
84
|
/**
|
|
83
85
|
* Handle response data - update cache and dispatch event if it is needed
|
|
84
86
|
*/
|
|
85
|
-
handleResponse(response: Model[], method: HttpMethod): void;
|
|
87
|
+
protected handleResponse(response: Model[], method: HttpMethod): void;
|
|
86
88
|
/**
|
|
87
89
|
* Update cache with passed items. Add/Update detects automatically, Delete via optional flag
|
|
88
90
|
*/
|
package/lib/tt-core.module.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ import { ModuleWithProviders } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
4
|
import * as i2 from "./interceptors/interceptors.module";
|
|
5
|
+
/**
|
|
6
|
+
* https://angular.io/guide/creating-libraries
|
|
7
|
+
*/
|
|
5
8
|
export declare class TtCoreModule {
|
|
6
9
|
static forRoot(environment: object): ModuleWithProviders<TtCoreModule>;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TtCoreModule, never>;
|
package/package.json
CHANGED