@tomei/finance 0.6.99 → 0.6.102
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/.husky/commit-msg +12 -3
- package/.husky/pre-commit +4 -4
- package/configs/config.js +1 -1
- package/dist/account/account.d.ts +37 -37
- package/dist/account/account.js +251 -263
- package/dist/account/account.js.map +1 -1
- package/dist/account/account.repository.d.ts +5 -5
- package/dist/account/account.repository.js +11 -11
- package/dist/account/interfaces/account-attr.interface.d.ts +29 -29
- package/dist/account/interfaces/account-attr.interface.js +2 -2
- package/dist/account-system-entity/account-system-entity.d.ts +12 -12
- package/dist/account-system-entity/account-system-entity.js +55 -66
- package/dist/account-system-entity/account-system-entity.js.map +1 -1
- package/dist/account-system-entity/post-history.repository.d.ts +5 -5
- package/dist/account-system-entity/post-history.repository.js +11 -11
- package/dist/config.d.ts +1888 -1888
- package/dist/config.js +331 -331
- package/dist/config.js.map +1 -1
- package/dist/customer/customer.d.ts +44 -44
- package/dist/customer/customer.js +212 -234
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/finance-customer.repository.d.ts +5 -5
- package/dist/customer/finance-customer.repository.js +25 -25
- package/dist/customer/finance-customer.repository.js.map +1 -1
- package/dist/customer/interfaces/customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/customer.repository.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +10 -10
- package/dist/customer/interfaces/finance-customer-attr.interface.js +2 -2
- package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +3 -3
- package/dist/customer/interfaces/finance-customer.repository.interface.js +2 -2
- package/dist/database.d.ts +4 -4
- package/dist/database.js +46 -47
- package/dist/database.js.map +1 -1
- package/dist/document/document-item.d.ts +46 -46
- package/dist/document/document-item.js +122 -132
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +5 -5
- package/dist/document/document-item.repository.js +11 -11
- package/dist/document/document.d.ts +87 -88
- package/dist/document/document.js +735 -766
- package/dist/document/document.js.map +1 -1
- package/dist/document/document.repository.d.ts +5 -5
- package/dist/document/document.repository.js +11 -11
- package/dist/document/interfaces/document-attr.interface.d.ts +27 -27
- package/dist/document/interfaces/document-attr.interface.js +6 -6
- package/dist/document/interfaces/document-find-all.interface.d.ts +13 -13
- package/dist/document/interfaces/document-find-all.interface.js +2 -2
- package/dist/document/interfaces/document-item-attr.interface.d.ts +26 -26
- package/dist/document/interfaces/document-item-attr.interface.js +6 -6
- package/dist/document/interfaces/document-item.repository.interface.d.ts +3 -3
- package/dist/document/interfaces/document-item.repository.interface.js +2 -2
- package/dist/enum/collect-payment-type.d.ts +4 -4
- package/dist/enum/collect-payment-type.js +8 -8
- package/dist/enum/collect-payment-type.js.map +1 -1
- package/dist/enum/doc-type.enum.d.ts +8 -8
- package/dist/enum/doc-type.enum.js +12 -12
- package/dist/enum/doc-type.enum.js.map +1 -1
- package/dist/enum/document-status.enum.d.ts +6 -6
- package/dist/enum/document-status.enum.js +10 -10
- package/dist/enum/document-status.enum.js.map +1 -1
- package/dist/enum/index.d.ts +9 -9
- package/dist/enum/index.js +19 -19
- package/dist/enum/payment-method.enum.d.ts +3 -3
- package/dist/enum/payment-method.enum.js +7 -7
- package/dist/enum/payment-method.enum.js.map +1 -1
- package/dist/enum/payment-status.enum.d.ts +10 -10
- package/dist/enum/payment-status.enum.js +15 -16
- package/dist/enum/payment-status.enum.js.map +1 -1
- package/dist/enum/payment-type.enum.d.ts +4 -4
- package/dist/enum/payment-type.enum.js +8 -8
- package/dist/enum/payment-type.enum.js.map +1 -1
- package/dist/enum/quick-book-client-scopes.enum.d.ts +13 -13
- package/dist/enum/quick-book-client-scopes.enum.js +18 -18
- package/dist/enum/quick-book-client-scopes.enum.js.map +1 -1
- package/dist/enum/transaction-type.enum.d.ts +4 -4
- package/dist/enum/transaction-type.enum.js +8 -8
- package/dist/enum/transaction-type.enum.js.map +1 -1
- package/dist/finance-company/finance-company.d.ts +88 -88
- package/dist/finance-company/finance-company.js +1533 -1576
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +5 -5
- package/dist/finance-company/finance-company.repository.js +11 -11
- package/dist/helpers/login-user.d.ts +13 -13
- package/dist/helpers/login-user.js +28 -28
- package/dist/helpers/login-user.js.map +1 -1
- package/dist/helpers/typeof.d.ts +1 -1
- package/dist/helpers/typeof.js +28 -29
- package/dist/helpers/typeof.js.map +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +32 -32
- package/dist/interfaces/account-system.interface.d.ts +30 -30
- package/dist/interfaces/account-system.interface.js +2 -2
- package/dist/interfaces/index.d.ts +2 -2
- package/dist/interfaces/index.js +2 -2
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +12 -12
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.js +2 -2
- package/dist/journal-entry/journal-entry.d.ts +42 -42
- package/dist/journal-entry/journal-entry.js +216 -233
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/journal-entry/journal-entry.repository.d.ts +6 -6
- package/dist/journal-entry/journal-entry.repository.js +16 -27
- package/dist/journal-entry/journal-entry.repository.js.map +1 -1
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +17 -17
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.js +2 -2
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.d.ts +5 -5
- package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.js +2 -2
- package/dist/ledger-transaction/ledger-transaction.d.ts +54 -54
- package/dist/ledger-transaction/ledger-transaction.js +143 -164
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.repository.d.ts +6 -6
- package/dist/ledger-transaction/ledger-transaction.repository.js +16 -27
- package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
- package/dist/models/account.entity.d.ts +30 -30
- package/dist/models/account.entity.js +232 -232
- package/dist/models/account.entity.js.map +1 -1
- package/dist/models/customer.entity.d.ts +13 -13
- package/dist/models/customer.entity.js +109 -109
- package/dist/models/customer.entity.js.map +1 -1
- package/dist/models/document-item.entity.d.ts +31 -31
- package/dist/models/document-item.entity.js +200 -200
- package/dist/models/document-item.entity.js.map +1 -1
- package/dist/models/document.entity.d.ts +36 -36
- package/dist/models/document.entity.js +242 -242
- package/dist/models/document.entity.js.map +1 -1
- package/dist/models/finance-company.entity.d.ts +15 -15
- package/dist/models/finance-company.entity.js +93 -93
- package/dist/models/finance-company.entity.js.map +1 -1
- package/dist/models/journal-entry.entity.d.ts +16 -16
- package/dist/models/journal-entry.entity.js +127 -127
- package/dist/models/journal-entry.entity.js.map +1 -1
- package/dist/models/ledger-transaction.entity.d.ts +24 -24
- package/dist/models/ledger-transaction.entity.js +172 -172
- package/dist/models/ledger-transaction.entity.js.map +1 -1
- package/dist/models/payment-item.entity.d.ts +12 -12
- package/dist/models/payment-item.entity.js +75 -75
- package/dist/models/payment-item.entity.js.map +1 -1
- package/dist/models/payment-method-type.entity.d.ts +13 -13
- package/dist/models/payment-method-type.entity.js +85 -85
- package/dist/models/payment-method-type.entity.js.map +1 -1
- package/dist/models/payment-method.entity.d.ts +10 -10
- package/dist/models/payment-method.entity.js +62 -62
- package/dist/models/payment-method.entity.js.map +1 -1
- package/dist/models/payment-paid-with.entity.d.ts +24 -24
- package/dist/models/payment-paid-with.entity.js +158 -158
- package/dist/models/payment-paid-with.entity.js.map +1 -1
- package/dist/models/payment.entity.d.ts +29 -29
- package/dist/models/payment.entity.js +193 -193
- package/dist/models/payment.entity.js.map +1 -1
- package/dist/models/post-history.entity.d.ts +11 -11
- package/dist/models/post-history.entity.js +63 -63
- package/dist/models/post-history.entity.js.map +1 -1
- package/dist/models/tax.entity.d.ts +13 -13
- package/dist/models/tax.entity.js +89 -89
- package/dist/models/tax.entity.js.map +1 -1
- package/dist/payment/interfaces/payment-attr.interface.d.ts +22 -22
- package/dist/payment/interfaces/payment-attr.interface.js +6 -6
- package/dist/payment/interfaces/payment-params.interface.d.ts +7 -7
- package/dist/payment/interfaces/payment-params.interface.js +2 -2
- package/dist/payment/payment.d.ts +53 -53
- package/dist/payment/payment.js +186 -201
- package/dist/payment/payment.js.map +1 -1
- package/dist/payment/payment.repository.d.ts +5 -5
- package/dist/payment/payment.repository.js +11 -11
- package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +10 -10
- package/dist/payment-item/interfaces/payment-item-attr.interface.js +6 -6
- package/dist/payment-item/payment-item.d.ts +25 -25
- package/dist/payment-item/payment-item.js +111 -122
- package/dist/payment-item/payment-item.js.map +1 -1
- package/dist/payment-item/payment-item.repository.d.ts +5 -5
- package/dist/payment-item/payment-item.repository.js +11 -11
- package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +5 -5
- package/dist/payment-method/interfaces/payment-method-attr.interface.js +2 -2
- package/dist/payment-method/payment-method.d.ts +21 -21
- package/dist/payment-method/payment-method.js +104 -117
- package/dist/payment-method/payment-method.js.map +1 -1
- package/dist/payment-method/payment-method.repository.d.ts +5 -5
- package/dist/payment-method/payment-method.repository.js +11 -11
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -8
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +2 -2
- package/dist/payment-method-type/payment-method-type.d.ts +18 -18
- package/dist/payment-method-type/payment-method-type.js +65 -76
- package/dist/payment-method-type/payment-method-type.js.map +1 -1
- package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -5
- package/dist/payment-method-type/payment-method-type.repository.js +11 -11
- package/dist/payment-paid-with/interfaces/payment-paid-with.interface.d.ts +19 -19
- package/dist/payment-paid-with/interfaces/payment-paid-with.interface.js +6 -6
- package/dist/payment-paid-with/payment-paid-with.d.ts +33 -33
- package/dist/payment-paid-with/payment-paid-with.js +56 -56
- package/dist/payment-paid-with/payment-paid-with.js.map +1 -1
- package/dist/payment-paid-with/payment-paid-with.repository.d.ts +5 -5
- package/dist/payment-paid-with/payment-paid-with.repository.js +11 -11
- package/dist/tax/interfaces/tax-attr.interface.d.ts +10 -10
- package/dist/tax/interfaces/tax-attr.interface.js +2 -2
- package/dist/tax/tax.d.ts +26 -26
- package/dist/tax/tax.js +51 -51
- package/dist/tax/tax.js.map +1 -1
- package/dist/tax/tax.repository.d.ts +5 -5
- package/dist/tax/tax.repository.js +11 -11
- package/dist/test-document.d.ts +3 -3
- package/dist/test-document.js +18 -18
- package/dist/test.d.ts +1 -1
- package/dist/test.js +6 -7
- package/dist/test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +58 -0
- package/invoice-template/assets/js/html2canvas.min.js +16 -16
- package/package.json +35 -41
- package/src/account/account.ts +2 -1
- package/src/customer/customer.ts +8 -7
- package/src/document/document-item.ts +3 -2
- package/src/document/document.ts +20 -13
- package/src/enum/collect-payment-type.ts +3 -3
- package/src/enum/payment-status.enum.ts +1 -1
- package/src/finance-company/finance-company.ts +5 -7
- package/src/journal-entry/journal-entry.ts +0 -1
- package/src/ledger-transaction/ledger-transaction.ts +4 -4
- package/src/payment-method-type/payment-method-type.ts +1 -1
- package/src/tax/tax.ts +0 -1
- package/tsconfig.json +4 -3
- package/.eslintrc.js +0 -72
- package/img.png +0 -0
- package/img_1.png +0 -0
- package/tslint.json +0 -18
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,aAAa,GAAG;IACpB,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;IACxC,gBAAgB,EAAE;QAChB,UAAU,EAAE;YACV,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE;YAC3C,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB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S,EAAE,EAAE;4BACb,iBAAiB,EAAE,GAAG;4BACtB,sBAAsB,EAAE,EAAE;yBAC3B;wBACD,IAAI,EAAE;4BACJ,EAAE,EAAE,OAAO;4BACX,IAAI,EAAE,cAAc;4BACpB,SAAS,EAAE,EAAE;4BACb,iBAAiB,EAAE,GAAG;4BACtB,sBAAsB,EAAE,EAAE;yBAC3B;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,MAAM,GAAG;IACb,WAAW,kBACT,WAAW,EAAE,aAAa,IACvB,aAAa,CACjB;IACD,IAAI,kBACF,WAAW,EAAE,MAAM,IAChB,aAAa,CACjB;IACD,OAAO,kBACL,WAAW,EAAE,SAAS,IACnB,aAAa,CACjB;IACD,UAAU,kBACR,WAAW,EAAE,YAAY,IACtB,aAAa,CACjB;CACF,CAAC;AAmCF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC7B,KAAK,aAAa;YAChB,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC;QAC/B,KAAK,MAAM;YACT,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,KAAK,SAAS;YACZ,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3B,KAAK,YAAY;YACf,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;QAC9B;YACE,MAAM;IACV,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { IAddress, IRepositoryBase, IPerson, LoginUserBase } from '@tomei/general';
|
|
2
|
-
import FinanceCustomerModel from '../models/customer.entity';
|
|
3
|
-
import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
|
|
4
|
-
import { FinanceCustomerRepository } from './finance-customer.repository';
|
|
5
|
-
import Account from '../account/account';
|
|
6
|
-
export default abstract class FinanceCustomerBase extends AccountSystemEntity implements IPerson {
|
|
7
|
-
CustomerId: string;
|
|
8
|
-
CustSystemCode: string;
|
|
9
|
-
CustSystemRefId: string;
|
|
10
|
-
protected abstract ParentARAccountNo: string;
|
|
11
|
-
protected abstract ParentAPAccountNo: string;
|
|
12
|
-
protected abstract ARAccountNo: string;
|
|
13
|
-
protected abstract APAccountNo: string;
|
|
14
|
-
protected abstract _ObjectType: string;
|
|
15
|
-
abstract FullName: string;
|
|
16
|
-
abstract IDNo: string;
|
|
17
|
-
abstract IDType: string;
|
|
18
|
-
abstract ContactNo: string;
|
|
19
|
-
abstract Email: string;
|
|
20
|
-
abstract DefaultAddress: IAddress;
|
|
21
|
-
private _AccountReceivable;
|
|
22
|
-
private _AccountPayable;
|
|
23
|
-
protected _DbTransaction: any;
|
|
24
|
-
private static _AccountRepository;
|
|
25
|
-
private static _LedgerTransactionRepository;
|
|
26
|
-
getDetails(): Promise<{
|
|
27
|
-
FullName: string;
|
|
28
|
-
IDNo: string;
|
|
29
|
-
IDType: string;
|
|
30
|
-
Email: string;
|
|
31
|
-
ContactNo: string;
|
|
32
|
-
}>;
|
|
33
|
-
protected static _FinanceCustomerRepository: FinanceCustomerRepository;
|
|
34
|
-
RepositoryBase: IRepositoryBase<any>;
|
|
35
|
-
constructor(custSystemRefId?: string, custSystemCode?: string, sFinanceCompanyId?: string);
|
|
36
|
-
static initCustomer<C extends FinanceCustomerBase>(this: new () => C, custSystemRefId: string, custSystemCode: string, sFinanceCompanyId: string, dbTransaction?: any): Promise<C>;
|
|
37
|
-
getAccountReceivable(): Promise<Account>;
|
|
38
|
-
getAccountPayable(): Promise<Account>;
|
|
39
|
-
abstract getBillingAddress(params: any): Promise<IAddress>;
|
|
40
|
-
init(person: LoginUserBase): void;
|
|
41
|
-
save(accSystemRefId: string, custSystemCode: string, custSystemRefId: string, dbTransaction?: any): Promise<FinanceCustomerModel>;
|
|
42
|
-
static isFinanceCustomerExist(custSystemRefId: string, custSystemCode: string, sFinanceCompanyId: string, dbTransaction?: any): Promise<boolean>;
|
|
43
|
-
getOutstandingBalance(dbTransaction: any): Promise<number>;
|
|
44
|
-
}
|
|
1
|
+
import { IAddress, IRepositoryBase, IPerson, LoginUserBase } from '@tomei/general';
|
|
2
|
+
import FinanceCustomerModel from '../models/customer.entity';
|
|
3
|
+
import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
|
|
4
|
+
import { FinanceCustomerRepository } from './finance-customer.repository';
|
|
5
|
+
import Account from '../account/account';
|
|
6
|
+
export default abstract class FinanceCustomerBase extends AccountSystemEntity implements IPerson {
|
|
7
|
+
CustomerId: string;
|
|
8
|
+
CustSystemCode: string;
|
|
9
|
+
CustSystemRefId: string;
|
|
10
|
+
protected abstract ParentARAccountNo: string;
|
|
11
|
+
protected abstract ParentAPAccountNo: string;
|
|
12
|
+
protected abstract ARAccountNo: string;
|
|
13
|
+
protected abstract APAccountNo: string;
|
|
14
|
+
protected abstract _ObjectType: string;
|
|
15
|
+
abstract FullName: string;
|
|
16
|
+
abstract IDNo: string;
|
|
17
|
+
abstract IDType: string;
|
|
18
|
+
abstract ContactNo: string;
|
|
19
|
+
abstract Email: string;
|
|
20
|
+
abstract DefaultAddress: IAddress;
|
|
21
|
+
private _AccountReceivable;
|
|
22
|
+
private _AccountPayable;
|
|
23
|
+
protected _DbTransaction: any;
|
|
24
|
+
private static _AccountRepository;
|
|
25
|
+
private static _LedgerTransactionRepository;
|
|
26
|
+
getDetails(): Promise<{
|
|
27
|
+
FullName: string;
|
|
28
|
+
IDNo: string;
|
|
29
|
+
IDType: string;
|
|
30
|
+
Email: string;
|
|
31
|
+
ContactNo: string;
|
|
32
|
+
}>;
|
|
33
|
+
protected static _FinanceCustomerRepository: FinanceCustomerRepository;
|
|
34
|
+
RepositoryBase: IRepositoryBase<any>;
|
|
35
|
+
constructor(custSystemRefId?: string, custSystemCode?: string, sFinanceCompanyId?: string);
|
|
36
|
+
static initCustomer<C extends FinanceCustomerBase>(this: new () => C, custSystemRefId: string, custSystemCode: string, sFinanceCompanyId: string, dbTransaction?: any): Promise<C>;
|
|
37
|
+
getAccountReceivable(): Promise<Account>;
|
|
38
|
+
getAccountPayable(): Promise<Account>;
|
|
39
|
+
abstract getBillingAddress(params: any): Promise<IAddress>;
|
|
40
|
+
init(person: LoginUserBase): void;
|
|
41
|
+
save(accSystemRefId: string, custSystemCode: string, custSystemRefId: string, dbTransaction?: any): Promise<FinanceCustomerModel>;
|
|
42
|
+
static isFinanceCustomerExist(custSystemRefId: string, custSystemCode: string, sFinanceCompanyId: string, dbTransaction?: any): Promise<boolean>;
|
|
43
|
+
getOutstandingBalance(dbTransaction: any): Promise<number>;
|
|
44
|
+
}
|
|
@@ -1,235 +1,213 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
this._AccountReceivable =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
this.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
const AR = yield this.getAccountReceivable();
|
|
215
|
-
const ledgerTransactions = yield FinanceCustomerBase._LedgerTransactionRepository.findAll({
|
|
216
|
-
where: {
|
|
217
|
-
AccountNo: AR.AccountNo,
|
|
218
|
-
},
|
|
219
|
-
transaction: dbTransaction,
|
|
220
|
-
});
|
|
221
|
-
const totalDebitAmount = ledgerTransactions.reduce((accumulator, currentValue) => accumulator + +currentValue.DebitAmount, 0);
|
|
222
|
-
const totalCreditAmount = ledgerTransactions.reduce((accumulator, currentValue) => accumulator + +currentValue.CreditAmount, 0);
|
|
223
|
-
if (totalCreditAmount > totalDebitAmount) {
|
|
224
|
-
return 0;
|
|
225
|
-
}
|
|
226
|
-
const balance = totalDebitAmount - totalCreditAmount;
|
|
227
|
-
return balance;
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
exports.default = FinanceCustomerBase;
|
|
232
|
-
FinanceCustomerBase._AccountRepository = new account_repository_1.AccountRepository();
|
|
233
|
-
FinanceCustomerBase._LedgerTransactionRepository = new ledger_transaction_repository_1.LedgerTransactionRepository();
|
|
234
|
-
FinanceCustomerBase._FinanceCustomerRepository = new finance_customer_repository_1.FinanceCustomerRepository();
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const record_not_found_error_1 = require("@tomei/general/dist/class/exceptions/record-not-found.error");
|
|
4
|
+
const account_system_entity_1 = require("../account-system-entity/account-system-entity");
|
|
5
|
+
const finance_customer_repository_1 = require("./finance-customer.repository");
|
|
6
|
+
const account_1 = require("../account/account");
|
|
7
|
+
const account_repository_1 = require("../account/account.repository");
|
|
8
|
+
const typeof_1 = require("../helpers/typeof");
|
|
9
|
+
const FinanceDb = require("../database");
|
|
10
|
+
const ledger_transaction_repository_1 = require("../ledger-transaction/ledger-transaction.repository");
|
|
11
|
+
class FinanceCustomerBase extends account_system_entity_1.AccountSystemEntity {
|
|
12
|
+
async getDetails() {
|
|
13
|
+
return {
|
|
14
|
+
FullName: this.FullName,
|
|
15
|
+
IDNo: this.IDNo,
|
|
16
|
+
IDType: this.IDType,
|
|
17
|
+
Email: this.Email,
|
|
18
|
+
ContactNo: this.ContactNo,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
constructor(custSystemRefId, custSystemCode, sFinanceCompanyId) {
|
|
22
|
+
super();
|
|
23
|
+
this.CustomerId = 'New';
|
|
24
|
+
this.CustSystemCode = '';
|
|
25
|
+
this.CustSystemRefId = '';
|
|
26
|
+
if (custSystemRefId && custSystemCode && sFinanceCompanyId) {
|
|
27
|
+
this.CustSystemRefId = custSystemRefId;
|
|
28
|
+
this.CustSystemCode = custSystemCode;
|
|
29
|
+
this.CompanyId = sFinanceCompanyId;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
static async initCustomer(custSystemRefId, custSystemCode, sFinanceCompanyId, dbTransaction) {
|
|
33
|
+
const financeCustomerData = await FinanceCustomerBase._FinanceCustomerRepository.findOne({
|
|
34
|
+
where: {
|
|
35
|
+
CompanyId: sFinanceCompanyId,
|
|
36
|
+
CustSystemCode: custSystemCode,
|
|
37
|
+
CustSystemRefId: custSystemRefId,
|
|
38
|
+
},
|
|
39
|
+
transaction: dbTransaction,
|
|
40
|
+
});
|
|
41
|
+
if (financeCustomerData) {
|
|
42
|
+
const self = new this();
|
|
43
|
+
self._DbTransaction = dbTransaction;
|
|
44
|
+
self.CustomerId = financeCustomerData.CustomerId;
|
|
45
|
+
self.CompanyId = sFinanceCompanyId;
|
|
46
|
+
self.CustSystemCode = custSystemCode;
|
|
47
|
+
self.CustSystemRefId = custSystemRefId;
|
|
48
|
+
self.AccSystemRefId = financeCustomerData.AccSystemRefId;
|
|
49
|
+
self.PostedToAccSystemYN = financeCustomerData.PostedToAccSystemYN;
|
|
50
|
+
self.PostedById = financeCustomerData.PostedById;
|
|
51
|
+
self.PostedDateTime = financeCustomerData.PostedDateTime;
|
|
52
|
+
return self;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const notFoundError = new record_not_found_error_1.RecordNotFoundError('FinanceCustomerErrMsg', 'No Record Found');
|
|
56
|
+
throw notFoundError;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async getAccountReceivable() {
|
|
60
|
+
try {
|
|
61
|
+
const transaction = this._DbTransaction;
|
|
62
|
+
if (this._AccountReceivable) {
|
|
63
|
+
return this._AccountReceivable;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const accountData = await FinanceCustomerBase._AccountRepository.findOne({
|
|
67
|
+
where: {
|
|
68
|
+
AccountNo: this.ARAccountNo,
|
|
69
|
+
AccountType: 'Account Receivable',
|
|
70
|
+
OwnerId: this.CustomerId,
|
|
71
|
+
OwnerType: (0, typeof_1.type)(this),
|
|
72
|
+
},
|
|
73
|
+
transaction,
|
|
74
|
+
});
|
|
75
|
+
this._AccountReceivable = new account_1.default(transaction);
|
|
76
|
+
if (accountData) {
|
|
77
|
+
this._AccountReceivable.AccountNo = accountData.AccountNo;
|
|
78
|
+
this._AccountReceivable.AccSystemRefId = accountData.AccSystemRefId;
|
|
79
|
+
this._AccountReceivable.Name = accountData.Name;
|
|
80
|
+
this._AccountReceivable.Description = accountData.Description;
|
|
81
|
+
this._AccountReceivable.ParentAccountNo = accountData.ParentAccountNo;
|
|
82
|
+
this._AccountReceivable.AccountType = accountData.AccountType;
|
|
83
|
+
this._AccountReceivable.OwnerId = accountData.OwnerId;
|
|
84
|
+
this._AccountReceivable.OwnerType = accountData.OwnerType;
|
|
85
|
+
this._AccountReceivable.RelatedObjectId = accountData.RelatedObjectId;
|
|
86
|
+
this._AccountReceivable.RelatedObjectType =
|
|
87
|
+
accountData.RelatedObjectType;
|
|
88
|
+
this._AccountReceivable.CreatedById = accountData.CreatedById;
|
|
89
|
+
this._AccountReceivable.CreatedAt = accountData.CreatedAt;
|
|
90
|
+
this._AccountReceivable.UpdatedById = accountData.UpdatedById;
|
|
91
|
+
this._AccountReceivable.UpdatedAt = accountData.UpdatedAt;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this._AccountReceivable.AccountNo = this.ARAccountNo;
|
|
95
|
+
this._AccountReceivable.ParentAccountNo = this.ParentARAccountNo;
|
|
96
|
+
this._AccountReceivable.AccountType = 'Account Receivable';
|
|
97
|
+
this._AccountReceivable.OwnerId = this.CustomerId;
|
|
98
|
+
this._AccountReceivable.OwnerType = (0, typeof_1.type)(this);
|
|
99
|
+
}
|
|
100
|
+
return this._AccountReceivable;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async getAccountPayable() {
|
|
108
|
+
try {
|
|
109
|
+
const transaction = this._DbTransaction;
|
|
110
|
+
if (this._AccountPayable) {
|
|
111
|
+
return this._AccountPayable;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
const accountData = await FinanceCustomerBase._AccountRepository.findOne({
|
|
115
|
+
where: {
|
|
116
|
+
AccountNo: this.APAccountNo,
|
|
117
|
+
AccountType: 'Account Payable',
|
|
118
|
+
OwnerId: this.CustomerId,
|
|
119
|
+
OwnerType: (0, typeof_1.type)(this),
|
|
120
|
+
},
|
|
121
|
+
transaction,
|
|
122
|
+
});
|
|
123
|
+
this._AccountPayable = new account_1.default(transaction);
|
|
124
|
+
if (accountData) {
|
|
125
|
+
this._AccountPayable.AccountNo = accountData.AccountNo;
|
|
126
|
+
this._AccountPayable.ParentAccountNo = accountData.ParentAccountNo;
|
|
127
|
+
this._AccountPayable.AccountType = accountData.AccountType;
|
|
128
|
+
this._AccountPayable.OwnerId = accountData.OwnerId;
|
|
129
|
+
this._AccountPayable.OwnerType = accountData.OwnerType;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
this._AccountPayable.AccountNo = this.APAccountNo;
|
|
133
|
+
this._AccountPayable.ParentAccountNo = this.ParentAPAccountNo;
|
|
134
|
+
this._AccountPayable.AccountType = 'Account Payable';
|
|
135
|
+
this._AccountPayable.OwnerId = this.CustomerId;
|
|
136
|
+
this._AccountPayable.OwnerType = (0, typeof_1.type)(this);
|
|
137
|
+
}
|
|
138
|
+
return this._AccountPayable;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
throw error;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
init(person) {
|
|
146
|
+
this.FullName = person.FullName;
|
|
147
|
+
this.IDNo = person.IDNo;
|
|
148
|
+
this.IDType = person.IDType;
|
|
149
|
+
this.Email = person.Email;
|
|
150
|
+
this.ContactNo = person.ContactNo;
|
|
151
|
+
this.DefaultAddress = person.DefaultAddress;
|
|
152
|
+
}
|
|
153
|
+
async save(accSystemRefId, custSystemCode, custSystemRefId, dbTransaction) {
|
|
154
|
+
this.CustSystemCode = custSystemCode;
|
|
155
|
+
this.CustSystemRefId = custSystemRefId;
|
|
156
|
+
this.AccSystemRefId = accSystemRefId;
|
|
157
|
+
if (accSystemRefId !== 'REF') {
|
|
158
|
+
this.PostedToAccSystemYN = 'Y';
|
|
159
|
+
this.PostedDateTime = new Date();
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
this.PostedToAccSystemYN = 'N';
|
|
163
|
+
}
|
|
164
|
+
this.CustomerId = this.createId();
|
|
165
|
+
const data = await FinanceCustomerBase._FinanceCustomerRepository.create({
|
|
166
|
+
CompanyId: this.CompanyId,
|
|
167
|
+
CustomerId: this.CustomerId,
|
|
168
|
+
CustSystemCode: this.CustSystemCode,
|
|
169
|
+
CustSystemRefId: this.CustSystemRefId,
|
|
170
|
+
AccSystemRefId: this.AccSystemRefId,
|
|
171
|
+
PostedToAccSystemYN: this.PostedToAccSystemYN,
|
|
172
|
+
}, { transaction: dbTransaction });
|
|
173
|
+
return data;
|
|
174
|
+
}
|
|
175
|
+
static async isFinanceCustomerExist(custSystemRefId, custSystemCode, sFinanceCompanyId, dbTransaction) {
|
|
176
|
+
const data = await FinanceCustomerBase._FinanceCustomerRepository.findAll({
|
|
177
|
+
where: {
|
|
178
|
+
CustSystemRefId: custSystemRefId,
|
|
179
|
+
CustSystemCode: custSystemCode,
|
|
180
|
+
CompanyId: sFinanceCompanyId,
|
|
181
|
+
},
|
|
182
|
+
transaction: dbTransaction,
|
|
183
|
+
});
|
|
184
|
+
if (data.length > 0) {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
async getOutstandingBalance(dbTransaction) {
|
|
190
|
+
if (!dbTransaction) {
|
|
191
|
+
dbTransaction = await FinanceDb.getConnection().transaction();
|
|
192
|
+
}
|
|
193
|
+
const AR = await this.getAccountReceivable();
|
|
194
|
+
const ledgerTransactions = await FinanceCustomerBase._LedgerTransactionRepository.findAll({
|
|
195
|
+
where: {
|
|
196
|
+
AccountNo: AR.AccountNo,
|
|
197
|
+
},
|
|
198
|
+
transaction: dbTransaction,
|
|
199
|
+
});
|
|
200
|
+
const totalDebitAmount = ledgerTransactions.reduce((accumulator, currentValue) => accumulator + +currentValue.DebitAmount, 0);
|
|
201
|
+
const totalCreditAmount = ledgerTransactions.reduce((accumulator, currentValue) => accumulator + +currentValue.CreditAmount, 0);
|
|
202
|
+
if (totalCreditAmount > totalDebitAmount) {
|
|
203
|
+
return 0;
|
|
204
|
+
}
|
|
205
|
+
const balance = totalDebitAmount - totalCreditAmount;
|
|
206
|
+
return balance;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
FinanceCustomerBase._AccountRepository = new account_repository_1.AccountRepository();
|
|
210
|
+
FinanceCustomerBase._LedgerTransactionRepository = new ledger_transaction_repository_1.LedgerTransactionRepository();
|
|
211
|
+
FinanceCustomerBase._FinanceCustomerRepository = new finance_customer_repository_1.FinanceCustomerRepository();
|
|
212
|
+
exports.default = FinanceCustomerBase;
|
|
235
213
|
//# sourceMappingURL=customer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/customer/customer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/customer/customer.ts"],"names":[],"mappings":";;AAMA,wGAAkG;AAElG,0FAAqF;AACrF,+EAA0E;AAC1E,gDAAyC;AACzC,sEAAkE;AAClE,8CAAyC;AACzC,yCAAyC;AACzC,uGAAkG;AAGlG,MAA8B,mBAC5B,SAAQ,2CAAmB;IA8B3B,KAAK,CAAC,UAAU;QAOd,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAKD,YACE,eAAwB,EACxB,cAAuB,EACvB,iBAA0B;QAE1B,KAAK,EAAE,CAAC;QAnDV,eAAU,GAAG,KAAK,CAA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