@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,90 +1,90 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const swagger_1 = require("@nestjs/swagger");
13
- const sequelize_typescript_1 = require("sequelize-typescript");
14
- const finance_company_entity_1 = require("./finance-company.entity");
15
- let FinanceTaxModel = class FinanceTaxModel extends sequelize_typescript_1.Model {
16
- };
17
- __decorate([
18
- (0, swagger_1.ApiProperty)({ type: String, description: 'TaxCode' }),
19
- (0, sequelize_typescript_1.Column)({
20
- primaryKey: true,
21
- allowNull: false,
22
- type: sequelize_typescript_1.DataType.STRING(30),
23
- }),
24
- __metadata("design:type", String)
25
- ], FinanceTaxModel.prototype, "TaxCode", void 0);
26
- __decorate([
27
- (0, swagger_1.ApiProperty)({ type: Number, description: 'TaxRate' }),
28
- (0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.DECIMAL(10, 2) }),
29
- __metadata("design:type", Number)
30
- ], FinanceTaxModel.prototype, "TaxRate", void 0);
31
- __decorate([
32
- (0, swagger_1.ApiProperty)({ type: String, description: 'Description' }),
33
- (0, sequelize_typescript_1.Column)({ allowNull: true, type: sequelize_typescript_1.DataType.STRING(1000) }),
34
- __metadata("design:type", String)
35
- ], FinanceTaxModel.prototype, "Description", void 0);
36
- __decorate([
37
- (0, sequelize_typescript_1.ForeignKey)(() => finance_company_entity_1.default),
38
- (0, sequelize_typescript_1.Column)({
39
- allowNull: false,
40
- type: sequelize_typescript_1.DataType.STRING(30),
41
- }),
42
- __metadata("design:type", String)
43
- ], FinanceTaxModel.prototype, "CompanyId", void 0);
44
- __decorate([
45
- (0, swagger_1.ApiProperty)({
46
- example: '138140891dd211b288d34bc7b4312a49',
47
- description: 'CreatedById.',
48
- }),
49
- (0, sequelize_typescript_1.Column)({
50
- allowNull: false,
51
- type: sequelize_typescript_1.DataType.STRING(30),
52
- }),
53
- __metadata("design:type", String)
54
- ], FinanceTaxModel.prototype, "CreatedById", void 0);
55
- __decorate([
56
- (0, swagger_1.ApiProperty)({
57
- example: new Date(),
58
- description: 'Timestamp for data creation.',
59
- }),
60
- sequelize_typescript_1.CreatedAt,
61
- __metadata("design:type", Date)
62
- ], FinanceTaxModel.prototype, "CreatedAt", void 0);
63
- __decorate([
64
- (0, swagger_1.ApiProperty)({
65
- example: '138140891dd211b288d34bc7b4312a49',
66
- description: 'UpdatedById.',
67
- }),
68
- (0, sequelize_typescript_1.Column)({
69
- allowNull: false,
70
- type: sequelize_typescript_1.DataType.STRING(30),
71
- }),
72
- __metadata("design:type", String)
73
- ], FinanceTaxModel.prototype, "UpdatedById", void 0);
74
- __decorate([
75
- (0, swagger_1.ApiProperty)({
76
- example: new Date(),
77
- description: 'Timestamp for latest data modification',
78
- }),
79
- sequelize_typescript_1.UpdatedAt,
80
- __metadata("design:type", Date)
81
- ], FinanceTaxModel.prototype, "UpdatedAt", void 0);
82
- __decorate([
83
- (0, sequelize_typescript_1.BelongsTo)(() => finance_company_entity_1.default),
84
- __metadata("design:type", finance_company_entity_1.default)
85
- ], FinanceTaxModel.prototype, "FinanceCompany", void 0);
86
- FinanceTaxModel = __decorate([
87
- (0, sequelize_typescript_1.Table)({ tableName: 'finance_Tax' })
88
- ], FinanceTaxModel);
89
- exports.default = FinanceTaxModel;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const swagger_1 = require("@nestjs/swagger");
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ const finance_company_entity_1 = require("./finance-company.entity");
15
+ let FinanceTaxModel = class FinanceTaxModel extends sequelize_typescript_1.Model {
16
+ };
17
+ __decorate([
18
+ (0, swagger_1.ApiProperty)({ type: String, description: 'TaxCode' }),
19
+ (0, sequelize_typescript_1.Column)({
20
+ primaryKey: true,
21
+ allowNull: false,
22
+ type: sequelize_typescript_1.DataType.STRING(30),
23
+ }),
24
+ __metadata("design:type", String)
25
+ ], FinanceTaxModel.prototype, "TaxCode", void 0);
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'TaxRate' }),
28
+ (0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.DECIMAL(10, 2) }),
29
+ __metadata("design:type", Number)
30
+ ], FinanceTaxModel.prototype, "TaxRate", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Description' }),
33
+ (0, sequelize_typescript_1.Column)({ allowNull: true, type: sequelize_typescript_1.DataType.STRING(1000) }),
34
+ __metadata("design:type", String)
35
+ ], FinanceTaxModel.prototype, "Description", void 0);
36
+ __decorate([
37
+ (0, sequelize_typescript_1.ForeignKey)(() => finance_company_entity_1.default),
38
+ (0, sequelize_typescript_1.Column)({
39
+ allowNull: false,
40
+ type: sequelize_typescript_1.DataType.STRING(30),
41
+ }),
42
+ __metadata("design:type", String)
43
+ ], FinanceTaxModel.prototype, "CompanyId", void 0);
44
+ __decorate([
45
+ (0, swagger_1.ApiProperty)({
46
+ example: '138140891dd211b288d34bc7b4312a49',
47
+ description: 'CreatedById.',
48
+ }),
49
+ (0, sequelize_typescript_1.Column)({
50
+ allowNull: false,
51
+ type: sequelize_typescript_1.DataType.STRING(30),
52
+ }),
53
+ __metadata("design:type", String)
54
+ ], FinanceTaxModel.prototype, "CreatedById", void 0);
55
+ __decorate([
56
+ (0, swagger_1.ApiProperty)({
57
+ example: new Date(),
58
+ description: 'Timestamp for data creation.',
59
+ }),
60
+ sequelize_typescript_1.CreatedAt,
61
+ __metadata("design:type", Date)
62
+ ], FinanceTaxModel.prototype, "CreatedAt", void 0);
63
+ __decorate([
64
+ (0, swagger_1.ApiProperty)({
65
+ example: '138140891dd211b288d34bc7b4312a49',
66
+ description: 'UpdatedById.',
67
+ }),
68
+ (0, sequelize_typescript_1.Column)({
69
+ allowNull: false,
70
+ type: sequelize_typescript_1.DataType.STRING(30),
71
+ }),
72
+ __metadata("design:type", String)
73
+ ], FinanceTaxModel.prototype, "UpdatedById", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({
76
+ example: new Date(),
77
+ description: 'Timestamp for latest data modification',
78
+ }),
79
+ sequelize_typescript_1.UpdatedAt,
80
+ __metadata("design:type", Date)
81
+ ], FinanceTaxModel.prototype, "UpdatedAt", void 0);
82
+ __decorate([
83
+ (0, sequelize_typescript_1.BelongsTo)(() => finance_company_entity_1.default),
84
+ __metadata("design:type", finance_company_entity_1.default)
85
+ ], FinanceTaxModel.prototype, "FinanceCompany", void 0);
86
+ FinanceTaxModel = __decorate([
87
+ (0, sequelize_typescript_1.Table)({ tableName: 'finance_Tax' })
88
+ ], FinanceTaxModel);
89
+ exports.default = FinanceTaxModel;
90
90
  //# sourceMappingURL=tax.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tax.entity.js","sourceRoot":"","sources":["../../src/models/tax.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAS8B;AAC9B,qEAA2D;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAK;CA4DjD,CAAA;AA3DC;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACc;AAEhB;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;;gDAC5C;AAEhB;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;;oDACrC;AAEpB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;IACrC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC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,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAOpB;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,IAAI,IAAI,EAAE;QACnB,WAAW,EAAE,wCAAwC;KACtD,CAAC;IACD,gCAAS;8BACC,IAAI;kDAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;8BACrB,gCAAmB;uDAAC;AA3DjB,eAAe;IADnC,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;GACf,eAAe,CA4DnC;kBA5DoB,eAAe"}
@@ -1,22 +1,22 @@
1
- import { PaymentType, PaymentStatus } from '../../enum';
2
- export declare class IPaymentAttr {
3
- PaymentId: string;
4
- PaymentType: PaymentType;
5
- PaymentDate: Date;
6
- Description: string;
7
- Currency: string;
8
- Amount: number;
9
- Status: PaymentStatus;
10
- ReceivedBy?: string;
11
- IssuedBy?: string;
12
- RelatedObjectId?: string;
13
- RelatedObjectType?: string;
14
- ReceiptDocNo?: string;
15
- Remarks?: string;
16
- UpdatedAt: Date;
17
- UpdatedBy: string;
18
- AccSystemRefId?: string;
19
- PostedToAccSystemYN: string;
20
- PostedById?: string;
21
- PostedDateTime?: Date;
22
- }
1
+ import { PaymentType, PaymentStatus } from '../../enum';
2
+ export declare class IPaymentAttr {
3
+ PaymentId: string;
4
+ PaymentType: PaymentType;
5
+ PaymentDate: Date;
6
+ Description: string;
7
+ Currency: string;
8
+ Amount: number;
9
+ Status: PaymentStatus;
10
+ ReceivedBy?: string;
11
+ IssuedBy?: string;
12
+ RelatedObjectId?: string;
13
+ RelatedObjectType?: string;
14
+ ReceiptDocNo?: string;
15
+ Remarks?: string;
16
+ UpdatedAt: Date;
17
+ UpdatedBy: string;
18
+ AccSystemRefId?: string;
19
+ PostedToAccSystemYN: string;
20
+ PostedById?: string;
21
+ PostedDateTime?: Date;
22
+ }
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IPaymentAttr = void 0;
4
- class IPaymentAttr {
5
- }
6
- exports.IPaymentAttr = IPaymentAttr;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPaymentAttr = void 0;
4
+ class IPaymentAttr {
5
+ }
6
+ exports.IPaymentAttr = IPaymentAttr;
7
7
  //# sourceMappingURL=payment-attr.interface.js.map
@@ -1,7 +1,7 @@
1
- import { PaymentMethod, PaymentType } from '../../enum';
2
- export interface IPaymentParams {
3
- Currency?: string;
4
- Method?: PaymentMethod;
5
- MethodParty?: string;
6
- PaymentType?: PaymentType;
7
- }
1
+ import { PaymentMethod, PaymentType } from '../../enum';
2
+ export interface IPaymentParams {
3
+ Currency?: string;
4
+ Method?: PaymentMethod;
5
+ MethodParty?: string;
6
+ PaymentType?: PaymentType;
7
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=payment-params.interface.js.map
@@ -1,53 +1,53 @@
1
- import { ObjectBase } from '@tomei/general';
2
- import { PaymentType } from '../enum';
3
- import { IPaymentParams } from './interfaces/payment-params.interface';
4
- import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
5
- import { PaymentStatus } from '../enum/payment-status.enum';
6
- import { PaymentRepository } from './payment.repository';
7
- import { PaymentItemRepository } from '../payment-item/payment-item.repository';
8
- import PaymentItem from '../payment-item/payment-item';
9
- import PaymentPaidWith from '../payment-paid-with/payment-paid-with';
10
- export default class Payment extends AccountSystemEntity {
11
- private _PaymentId;
12
- PaymentType: PaymentType;
13
- PaymentDate: Date;
14
- MethodTypeId: string;
15
- Description: string;
16
- Currency: string;
17
- Amount: number;
18
- Status: PaymentStatus;
19
- TransactionId: string;
20
- TransactionApprovalCode: string;
21
- TransactionAccountName: string;
22
- TransactionAccountNo: string;
23
- ReceivedBy: string;
24
- IssuedBy: string;
25
- UpdatedBy: string;
26
- UpdatedAt: Date;
27
- Remarks: string;
28
- RelatedObjectId: string;
29
- RelatedObjectType: string;
30
- ReceiptDocNo: string;
31
- protected _ObjectType: 'Payment';
32
- private static _RepositoryBase;
33
- private static _PaymentItemRepository;
34
- private static _PaymentPaidWithRepository;
35
- private _DbTransaction;
36
- private _PaymentItems;
37
- private _PaymentPaidWith;
38
- paymentItemRepository: PaymentItemRepository;
39
- get PaymentId(): string;
40
- get ObjectType(): "Payment";
41
- set PaymentId(id: string);
42
- get RepositoryBase(): PaymentRepository;
43
- get ObjectId(): string;
44
- get ObjectName(): string;
45
- get TableName(): string;
46
- constructor(dbTransaction?: any, paymentId?: string);
47
- static initPayment(dbTransaction: any, paymentId: string): Promise<Payment>;
48
- getPaymentItems(dbTransaction?: any): Promise<PaymentItem[]>;
49
- getPaymentPaidWith(dbTransaction?: any): Promise<PaymentPaidWith[]>;
50
- newPaymentItem(objectBeingPaidFor: ObjectBase): PaymentItem;
51
- newPaymentPaidWith(paymentMethodTypeId: string): PaymentPaidWith;
52
- init(Params: IPaymentParams): void;
53
- }
1
+ import { ObjectBase } from '@tomei/general';
2
+ import { PaymentType } from '../enum';
3
+ import { IPaymentParams } from './interfaces/payment-params.interface';
4
+ import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
5
+ import { PaymentStatus } from '../enum/payment-status.enum';
6
+ import { PaymentRepository } from './payment.repository';
7
+ import { PaymentItemRepository } from '../payment-item/payment-item.repository';
8
+ import PaymentItem from '../payment-item/payment-item';
9
+ import PaymentPaidWith from '../payment-paid-with/payment-paid-with';
10
+ export default class Payment extends AccountSystemEntity {
11
+ private _PaymentId;
12
+ PaymentType: PaymentType;
13
+ PaymentDate: Date;
14
+ MethodTypeId: string;
15
+ Description: string;
16
+ Currency: string;
17
+ Amount: number;
18
+ Status: PaymentStatus;
19
+ TransactionId: string;
20
+ TransactionApprovalCode: string;
21
+ TransactionAccountName: string;
22
+ TransactionAccountNo: string;
23
+ ReceivedBy: string;
24
+ IssuedBy: string;
25
+ UpdatedBy: string;
26
+ UpdatedAt: Date;
27
+ Remarks: string;
28
+ RelatedObjectId: string;
29
+ RelatedObjectType: string;
30
+ ReceiptDocNo: string;
31
+ protected _ObjectType: 'Payment';
32
+ private static _RepositoryBase;
33
+ private static _PaymentItemRepository;
34
+ private static _PaymentPaidWithRepository;
35
+ private _DbTransaction;
36
+ private _PaymentItems;
37
+ private _PaymentPaidWith;
38
+ paymentItemRepository: PaymentItemRepository;
39
+ get PaymentId(): string;
40
+ get ObjectType(): "Payment";
41
+ set PaymentId(id: string);
42
+ get RepositoryBase(): PaymentRepository;
43
+ get ObjectId(): string;
44
+ get ObjectName(): string;
45
+ get TableName(): string;
46
+ constructor(dbTransaction?: any, paymentId?: string);
47
+ static initPayment(dbTransaction: any, paymentId: string): Promise<Payment>;
48
+ getPaymentItems(dbTransaction?: any): Promise<PaymentItem[]>;
49
+ getPaymentPaidWith(dbTransaction?: any): Promise<PaymentPaidWith[]>;
50
+ newPaymentItem(objectBeingPaidFor: ObjectBase): PaymentItem;
51
+ newPaymentPaidWith(paymentMethodTypeId: string): PaymentPaidWith;
52
+ init(Params: IPaymentParams): void;
53
+ }