@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.
Files changed (223) hide show
  1. package/.husky/commit-msg +12 -3
  2. package/.husky/pre-commit +4 -4
  3. package/configs/config.js +1 -1
  4. package/dist/account/account.d.ts +37 -37
  5. package/dist/account/account.js +251 -263
  6. package/dist/account/account.js.map +1 -1
  7. package/dist/account/account.repository.d.ts +5 -5
  8. package/dist/account/account.repository.js +11 -11
  9. package/dist/account/interfaces/account-attr.interface.d.ts +29 -29
  10. package/dist/account/interfaces/account-attr.interface.js +2 -2
  11. package/dist/account-system-entity/account-system-entity.d.ts +12 -12
  12. package/dist/account-system-entity/account-system-entity.js +55 -66
  13. package/dist/account-system-entity/account-system-entity.js.map +1 -1
  14. package/dist/account-system-entity/post-history.repository.d.ts +5 -5
  15. package/dist/account-system-entity/post-history.repository.js +11 -11
  16. package/dist/config.d.ts +1888 -1888
  17. package/dist/config.js +331 -331
  18. package/dist/config.js.map +1 -1
  19. package/dist/customer/customer.d.ts +44 -44
  20. package/dist/customer/customer.js +212 -234
  21. package/dist/customer/customer.js.map +1 -1
  22. package/dist/customer/finance-customer.repository.d.ts +5 -5
  23. package/dist/customer/finance-customer.repository.js +25 -25
  24. package/dist/customer/finance-customer.repository.js.map +1 -1
  25. package/dist/customer/interfaces/customer.repository.interface.d.ts +3 -3
  26. package/dist/customer/interfaces/customer.repository.interface.js +2 -2
  27. package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +10 -10
  28. package/dist/customer/interfaces/finance-customer-attr.interface.js +2 -2
  29. package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +3 -3
  30. package/dist/customer/interfaces/finance-customer.repository.interface.js +2 -2
  31. package/dist/database.d.ts +4 -4
  32. package/dist/database.js +46 -47
  33. package/dist/database.js.map +1 -1
  34. package/dist/document/document-item.d.ts +46 -46
  35. package/dist/document/document-item.js +122 -132
  36. package/dist/document/document-item.js.map +1 -1
  37. package/dist/document/document-item.repository.d.ts +5 -5
  38. package/dist/document/document-item.repository.js +11 -11
  39. package/dist/document/document.d.ts +87 -88
  40. package/dist/document/document.js +735 -766
  41. package/dist/document/document.js.map +1 -1
  42. package/dist/document/document.repository.d.ts +5 -5
  43. package/dist/document/document.repository.js +11 -11
  44. package/dist/document/interfaces/document-attr.interface.d.ts +27 -27
  45. package/dist/document/interfaces/document-attr.interface.js +6 -6
  46. package/dist/document/interfaces/document-find-all.interface.d.ts +13 -13
  47. package/dist/document/interfaces/document-find-all.interface.js +2 -2
  48. package/dist/document/interfaces/document-item-attr.interface.d.ts +26 -26
  49. package/dist/document/interfaces/document-item-attr.interface.js +6 -6
  50. package/dist/document/interfaces/document-item.repository.interface.d.ts +3 -3
  51. package/dist/document/interfaces/document-item.repository.interface.js +2 -2
  52. package/dist/enum/collect-payment-type.d.ts +4 -4
  53. package/dist/enum/collect-payment-type.js +8 -8
  54. package/dist/enum/collect-payment-type.js.map +1 -1
  55. package/dist/enum/doc-type.enum.d.ts +8 -8
  56. package/dist/enum/doc-type.enum.js +12 -12
  57. package/dist/enum/doc-type.enum.js.map +1 -1
  58. package/dist/enum/document-status.enum.d.ts +6 -6
  59. package/dist/enum/document-status.enum.js +10 -10
  60. package/dist/enum/document-status.enum.js.map +1 -1
  61. package/dist/enum/index.d.ts +9 -9
  62. package/dist/enum/index.js +19 -19
  63. package/dist/enum/payment-method.enum.d.ts +3 -3
  64. package/dist/enum/payment-method.enum.js +7 -7
  65. package/dist/enum/payment-method.enum.js.map +1 -1
  66. package/dist/enum/payment-status.enum.d.ts +10 -10
  67. package/dist/enum/payment-status.enum.js +15 -16
  68. package/dist/enum/payment-status.enum.js.map +1 -1
  69. package/dist/enum/payment-type.enum.d.ts +4 -4
  70. package/dist/enum/payment-type.enum.js +8 -8
  71. package/dist/enum/payment-type.enum.js.map +1 -1
  72. package/dist/enum/quick-book-client-scopes.enum.d.ts +13 -13
  73. package/dist/enum/quick-book-client-scopes.enum.js +18 -18
  74. package/dist/enum/quick-book-client-scopes.enum.js.map +1 -1
  75. package/dist/enum/transaction-type.enum.d.ts +4 -4
  76. package/dist/enum/transaction-type.enum.js +8 -8
  77. package/dist/enum/transaction-type.enum.js.map +1 -1
  78. package/dist/finance-company/finance-company.d.ts +88 -88
  79. package/dist/finance-company/finance-company.js +1533 -1576
  80. package/dist/finance-company/finance-company.js.map +1 -1
  81. package/dist/finance-company/finance-company.repository.d.ts +5 -5
  82. package/dist/finance-company/finance-company.repository.js +11 -11
  83. package/dist/helpers/login-user.d.ts +13 -13
  84. package/dist/helpers/login-user.js +28 -28
  85. package/dist/helpers/login-user.js.map +1 -1
  86. package/dist/helpers/typeof.d.ts +1 -1
  87. package/dist/helpers/typeof.js +28 -29
  88. package/dist/helpers/typeof.js.map +1 -1
  89. package/dist/index.d.ts +17 -17
  90. package/dist/index.js +32 -32
  91. package/dist/interfaces/account-system.interface.d.ts +30 -30
  92. package/dist/interfaces/account-system.interface.js +2 -2
  93. package/dist/interfaces/index.d.ts +2 -2
  94. package/dist/interfaces/index.js +2 -2
  95. package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +12 -12
  96. package/dist/journal-entry/interfaces/journal-entry-attr.interface.js +2 -2
  97. package/dist/journal-entry/journal-entry.d.ts +42 -42
  98. package/dist/journal-entry/journal-entry.js +216 -233
  99. package/dist/journal-entry/journal-entry.js.map +1 -1
  100. package/dist/journal-entry/journal-entry.repository.d.ts +6 -6
  101. package/dist/journal-entry/journal-entry.repository.js +16 -27
  102. package/dist/journal-entry/journal-entry.repository.js.map +1 -1
  103. package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +17 -17
  104. package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.js +2 -2
  105. package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.d.ts +5 -5
  106. package/dist/ledger-transaction/interfaces/ledger-transaction.repository.interface.js +2 -2
  107. package/dist/ledger-transaction/ledger-transaction.d.ts +54 -54
  108. package/dist/ledger-transaction/ledger-transaction.js +143 -164
  109. package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
  110. package/dist/ledger-transaction/ledger-transaction.repository.d.ts +6 -6
  111. package/dist/ledger-transaction/ledger-transaction.repository.js +16 -27
  112. package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
  113. package/dist/models/account.entity.d.ts +30 -30
  114. package/dist/models/account.entity.js +232 -232
  115. package/dist/models/account.entity.js.map +1 -1
  116. package/dist/models/customer.entity.d.ts +13 -13
  117. package/dist/models/customer.entity.js +109 -109
  118. package/dist/models/customer.entity.js.map +1 -1
  119. package/dist/models/document-item.entity.d.ts +31 -31
  120. package/dist/models/document-item.entity.js +200 -200
  121. package/dist/models/document-item.entity.js.map +1 -1
  122. package/dist/models/document.entity.d.ts +36 -36
  123. package/dist/models/document.entity.js +242 -242
  124. package/dist/models/document.entity.js.map +1 -1
  125. package/dist/models/finance-company.entity.d.ts +15 -15
  126. package/dist/models/finance-company.entity.js +93 -93
  127. package/dist/models/finance-company.entity.js.map +1 -1
  128. package/dist/models/journal-entry.entity.d.ts +16 -16
  129. package/dist/models/journal-entry.entity.js +127 -127
  130. package/dist/models/journal-entry.entity.js.map +1 -1
  131. package/dist/models/ledger-transaction.entity.d.ts +24 -24
  132. package/dist/models/ledger-transaction.entity.js +172 -172
  133. package/dist/models/ledger-transaction.entity.js.map +1 -1
  134. package/dist/models/payment-item.entity.d.ts +12 -12
  135. package/dist/models/payment-item.entity.js +75 -75
  136. package/dist/models/payment-item.entity.js.map +1 -1
  137. package/dist/models/payment-method-type.entity.d.ts +13 -13
  138. package/dist/models/payment-method-type.entity.js +85 -85
  139. package/dist/models/payment-method-type.entity.js.map +1 -1
  140. package/dist/models/payment-method.entity.d.ts +10 -10
  141. package/dist/models/payment-method.entity.js +62 -62
  142. package/dist/models/payment-method.entity.js.map +1 -1
  143. package/dist/models/payment-paid-with.entity.d.ts +24 -24
  144. package/dist/models/payment-paid-with.entity.js +158 -158
  145. package/dist/models/payment-paid-with.entity.js.map +1 -1
  146. package/dist/models/payment.entity.d.ts +29 -29
  147. package/dist/models/payment.entity.js +193 -193
  148. package/dist/models/payment.entity.js.map +1 -1
  149. package/dist/models/post-history.entity.d.ts +11 -11
  150. package/dist/models/post-history.entity.js +63 -63
  151. package/dist/models/post-history.entity.js.map +1 -1
  152. package/dist/models/tax.entity.d.ts +13 -13
  153. package/dist/models/tax.entity.js +89 -89
  154. package/dist/models/tax.entity.js.map +1 -1
  155. package/dist/payment/interfaces/payment-attr.interface.d.ts +22 -22
  156. package/dist/payment/interfaces/payment-attr.interface.js +6 -6
  157. package/dist/payment/interfaces/payment-params.interface.d.ts +7 -7
  158. package/dist/payment/interfaces/payment-params.interface.js +2 -2
  159. package/dist/payment/payment.d.ts +53 -53
  160. package/dist/payment/payment.js +186 -201
  161. package/dist/payment/payment.js.map +1 -1
  162. package/dist/payment/payment.repository.d.ts +5 -5
  163. package/dist/payment/payment.repository.js +11 -11
  164. package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +10 -10
  165. package/dist/payment-item/interfaces/payment-item-attr.interface.js +6 -6
  166. package/dist/payment-item/payment-item.d.ts +25 -25
  167. package/dist/payment-item/payment-item.js +111 -122
  168. package/dist/payment-item/payment-item.js.map +1 -1
  169. package/dist/payment-item/payment-item.repository.d.ts +5 -5
  170. package/dist/payment-item/payment-item.repository.js +11 -11
  171. package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +5 -5
  172. package/dist/payment-method/interfaces/payment-method-attr.interface.js +2 -2
  173. package/dist/payment-method/payment-method.d.ts +21 -21
  174. package/dist/payment-method/payment-method.js +104 -117
  175. package/dist/payment-method/payment-method.js.map +1 -1
  176. package/dist/payment-method/payment-method.repository.d.ts +5 -5
  177. package/dist/payment-method/payment-method.repository.js +11 -11
  178. package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -8
  179. package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +2 -2
  180. package/dist/payment-method-type/payment-method-type.d.ts +18 -18
  181. package/dist/payment-method-type/payment-method-type.js +65 -76
  182. package/dist/payment-method-type/payment-method-type.js.map +1 -1
  183. package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -5
  184. package/dist/payment-method-type/payment-method-type.repository.js +11 -11
  185. package/dist/payment-paid-with/interfaces/payment-paid-with.interface.d.ts +19 -19
  186. package/dist/payment-paid-with/interfaces/payment-paid-with.interface.js +6 -6
  187. package/dist/payment-paid-with/payment-paid-with.d.ts +33 -33
  188. package/dist/payment-paid-with/payment-paid-with.js +56 -56
  189. package/dist/payment-paid-with/payment-paid-with.js.map +1 -1
  190. package/dist/payment-paid-with/payment-paid-with.repository.d.ts +5 -5
  191. package/dist/payment-paid-with/payment-paid-with.repository.js +11 -11
  192. package/dist/tax/interfaces/tax-attr.interface.d.ts +10 -10
  193. package/dist/tax/interfaces/tax-attr.interface.js +2 -2
  194. package/dist/tax/tax.d.ts +26 -26
  195. package/dist/tax/tax.js +51 -51
  196. package/dist/tax/tax.js.map +1 -1
  197. package/dist/tax/tax.repository.d.ts +5 -5
  198. package/dist/tax/tax.repository.js +11 -11
  199. package/dist/test-document.d.ts +3 -3
  200. package/dist/test-document.js +18 -18
  201. package/dist/test.d.ts +1 -1
  202. package/dist/test.js +6 -7
  203. package/dist/test.js.map +1 -1
  204. package/dist/tsconfig.tsbuildinfo +1 -1
  205. package/eslint.config.mjs +58 -0
  206. package/invoice-template/assets/js/html2canvas.min.js +16 -16
  207. package/package.json +35 -41
  208. package/src/account/account.ts +2 -1
  209. package/src/customer/customer.ts +8 -7
  210. package/src/document/document-item.ts +3 -2
  211. package/src/document/document.ts +20 -13
  212. package/src/enum/collect-payment-type.ts +3 -3
  213. package/src/enum/payment-status.enum.ts +1 -1
  214. package/src/finance-company/finance-company.ts +5 -7
  215. package/src/journal-entry/journal-entry.ts +0 -1
  216. package/src/ledger-transaction/ledger-transaction.ts +4 -4
  217. package/src/payment-method-type/payment-method-type.ts +1 -1
  218. package/src/tax/tax.ts +0 -1
  219. package/tsconfig.json +4 -3
  220. package/.eslintrc.js +0 -72
  221. package/img.png +0 -0
  222. package/img_1.png +0 -0
  223. package/tslint.json +0 -18
@@ -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,IAAI,EAAE;YAC1D,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE;SAClC;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE;YAC3C,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE;YAC1D,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE;SAClC;KACF;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE;YACR,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,QAAQ;YAC5C,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,iCAAiC;YACzE,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,WAAW;YAC5D,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,EAAE;YACrD,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,EAAE;YAClD,gBAAgB,EAAE,YAAY;YAC9B,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC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,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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const record_not_found_error_1 = require("@tomei/general/dist/class/exceptions/record-not-found.error");
13
- const account_system_entity_1 = require("../account-system-entity/account-system-entity");
14
- const finance_customer_repository_1 = require("./finance-customer.repository");
15
- const account_1 = require("../account/account");
16
- const account_repository_1 = require("../account/account.repository");
17
- const typeof_1 = require("../helpers/typeof");
18
- const FinanceDb = require("../database");
19
- const ledger_transaction_repository_1 = require("../ledger-transaction/ledger-transaction.repository");
20
- class FinanceCustomerBase extends account_system_entity_1.AccountSystemEntity {
21
- getDetails() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- return {
24
- FullName: this.FullName,
25
- IDNo: this.IDNo,
26
- IDType: this.IDType,
27
- Email: this.Email,
28
- ContactNo: this.ContactNo,
29
- };
30
- });
31
- }
32
- constructor(custSystemRefId, custSystemCode, sFinanceCompanyId) {
33
- super();
34
- this.CustomerId = 'New';
35
- this.CustSystemCode = '';
36
- this.CustSystemRefId = '';
37
- if (custSystemRefId && custSystemCode && sFinanceCompanyId) {
38
- this.CustSystemRefId = custSystemRefId;
39
- this.CustSystemCode = custSystemCode;
40
- this.CompanyId = sFinanceCompanyId;
41
- }
42
- }
43
- static initCustomer(custSystemRefId, custSystemCode, sFinanceCompanyId, dbTransaction) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- const financeCustomerData = yield FinanceCustomerBase._FinanceCustomerRepository.findOne({
46
- where: {
47
- CompanyId: sFinanceCompanyId,
48
- CustSystemCode: custSystemCode,
49
- CustSystemRefId: custSystemRefId,
50
- },
51
- transaction: dbTransaction,
52
- });
53
- if (financeCustomerData) {
54
- const self = new this();
55
- self._DbTransaction = dbTransaction;
56
- self.CustomerId = financeCustomerData.CustomerId;
57
- self.CompanyId = sFinanceCompanyId;
58
- self.CustSystemCode = custSystemCode;
59
- self.CustSystemRefId = custSystemRefId;
60
- self.AccSystemRefId = financeCustomerData.AccSystemRefId;
61
- self.PostedToAccSystemYN = financeCustomerData.PostedToAccSystemYN;
62
- self.PostedById = financeCustomerData.PostedById;
63
- self.PostedDateTime = financeCustomerData.PostedDateTime;
64
- return self;
65
- }
66
- else {
67
- const notFoundError = new record_not_found_error_1.RecordNotFoundError('FinanceCustomerErrMsg', 'No Record Found');
68
- throw notFoundError;
69
- }
70
- });
71
- }
72
- getAccountReceivable() {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- try {
75
- const transaction = this._DbTransaction;
76
- if (this._AccountReceivable) {
77
- return this._AccountReceivable;
78
- }
79
- else {
80
- const accountData = yield FinanceCustomerBase._AccountRepository.findOne({
81
- where: {
82
- AccountNo: this.ARAccountNo,
83
- AccountType: 'Account Receivable',
84
- OwnerId: this.CustomerId,
85
- OwnerType: (0, typeof_1.type)(this),
86
- },
87
- transaction,
88
- });
89
- this._AccountReceivable = new account_1.default(transaction);
90
- if (accountData) {
91
- this._AccountReceivable.AccountNo = accountData.AccountNo;
92
- this._AccountReceivable.AccSystemRefId = accountData.AccSystemRefId;
93
- this._AccountReceivable.Name = accountData.Name;
94
- this._AccountReceivable.Description = accountData.Description;
95
- this._AccountReceivable.ParentAccountNo = accountData.ParentAccountNo;
96
- this._AccountReceivable.AccountType = accountData.AccountType;
97
- this._AccountReceivable.OwnerId = accountData.OwnerId;
98
- this._AccountReceivable.OwnerType = accountData.OwnerType;
99
- this._AccountReceivable.RelatedObjectId = accountData.RelatedObjectId;
100
- this._AccountReceivable.RelatedObjectType = accountData.RelatedObjectType;
101
- this._AccountReceivable.CreatedById = accountData.CreatedById;
102
- this._AccountReceivable.CreatedAt = accountData.CreatedAt;
103
- this._AccountReceivable.UpdatedById = accountData.UpdatedById;
104
- this._AccountReceivable.UpdatedAt = accountData.UpdatedAt;
105
- }
106
- else {
107
- this._AccountReceivable.AccountNo = this.ARAccountNo;
108
- this._AccountReceivable.ParentAccountNo = this.ParentARAccountNo;
109
- this._AccountReceivable.AccountType = 'Account Receivable';
110
- this._AccountReceivable.OwnerId = this.CustomerId;
111
- this._AccountReceivable.OwnerType = (0, typeof_1.type)(this);
112
- }
113
- return this._AccountReceivable;
114
- }
115
- }
116
- catch (error) {
117
- throw error;
118
- }
119
- });
120
- }
121
- getAccountPayable() {
122
- return __awaiter(this, void 0, void 0, function* () {
123
- try {
124
- const transaction = this._DbTransaction;
125
- if (this._AccountPayable) {
126
- return this._AccountPayable;
127
- }
128
- else {
129
- const accountData = yield FinanceCustomerBase._AccountRepository.findOne({
130
- where: {
131
- AccountNo: this.APAccountNo,
132
- AccountType: 'Account Payable',
133
- OwnerId: this.CustomerId,
134
- OwnerType: (0, typeof_1.type)(this),
135
- },
136
- transaction,
137
- });
138
- this._AccountPayable = new account_1.default(transaction);
139
- if (accountData) {
140
- this._AccountPayable.AccountNo = accountData.AccountNo;
141
- this._AccountPayable.ParentAccountNo = accountData.ParentAccountNo;
142
- this._AccountPayable.AccountType = accountData.AccountType;
143
- this._AccountPayable.OwnerId = accountData.OwnerId;
144
- this._AccountPayable.OwnerType = accountData.OwnerType;
145
- }
146
- else {
147
- this._AccountPayable.AccountNo = this.APAccountNo;
148
- this._AccountPayable.ParentAccountNo = this.ParentAPAccountNo;
149
- this._AccountPayable.AccountType = 'Account Payable';
150
- this._AccountPayable.OwnerId = this.CustomerId;
151
- this._AccountPayable.OwnerType = (0, typeof_1.type)(this);
152
- }
153
- return this._AccountPayable;
154
- }
155
- }
156
- catch (error) {
157
- throw error;
158
- }
159
- });
160
- }
161
- init(person) {
162
- this.FullName = person.FullName;
163
- this.IDNo = person.IDNo;
164
- this.IDType = person.IDType;
165
- this.Email = person.Email;
166
- this.ContactNo = person.ContactNo;
167
- this.DefaultAddress = person.DefaultAddress;
168
- }
169
- save(accSystemRefId, custSystemCode, custSystemRefId, dbTransaction) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- this.CustSystemCode = custSystemCode;
172
- this.CustSystemRefId = custSystemRefId;
173
- this.AccSystemRefId = accSystemRefId;
174
- if (accSystemRefId !== "REF") {
175
- this.PostedToAccSystemYN = "Y";
176
- this.PostedDateTime = new Date();
177
- }
178
- else {
179
- this.PostedToAccSystemYN = "N";
180
- }
181
- this.CustomerId = this.createId();
182
- const data = yield FinanceCustomerBase._FinanceCustomerRepository.create({
183
- CompanyId: this.CompanyId,
184
- CustomerId: this.CustomerId,
185
- CustSystemCode: this.CustSystemCode,
186
- CustSystemRefId: this.CustSystemRefId,
187
- AccSystemRefId: this.AccSystemRefId,
188
- PostedToAccSystemYN: this.PostedToAccSystemYN,
189
- }, { transaction: dbTransaction });
190
- return data;
191
- });
192
- }
193
- static isFinanceCustomerExist(custSystemRefId, custSystemCode, sFinanceCompanyId, dbTransaction) {
194
- return __awaiter(this, void 0, void 0, function* () {
195
- const data = yield FinanceCustomerBase._FinanceCustomerRepository.findAll({
196
- where: {
197
- CustSystemRefId: custSystemRefId,
198
- CustSystemCode: custSystemCode,
199
- CompanyId: sFinanceCompanyId,
200
- },
201
- transaction: dbTransaction,
202
- });
203
- if (data.length > 0) {
204
- return true;
205
- }
206
- return false;
207
- });
208
- }
209
- getOutstandingBalance(dbTransaction) {
210
- return __awaiter(this, void 0, void 0, function* () {
211
- if (!dbTransaction) {
212
- dbTransaction = yield FinanceDb.getConnection().transaction();
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":["../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