@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
|
@@ -1,94 +1,94 @@
|
|
|
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 customer_entity_1 = require("./customer.entity");
|
|
15
|
-
const tax_entity_1 = require("./tax.entity");
|
|
16
|
-
let FinanceCompanyModel = class FinanceCompanyModel extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
20
|
-
(0, sequelize_typescript_1.Column)({ primaryKey: true, allowNull: false, type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], FinanceCompanyModel.prototype, "CompanyId", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ example: 'AB' }),
|
|
25
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(10) }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], FinanceCompanyModel.prototype, "CompSystemCode", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
30
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], FinanceCompanyModel.prototype, "CompSystemRefId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ example: 'AB' }),
|
|
35
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(10) }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], FinanceCompanyModel.prototype, "AccSystemCode", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)({
|
|
40
|
-
type: String,
|
|
41
|
-
description: 'Account id in finance system',
|
|
42
|
-
}),
|
|
43
|
-
(0, sequelize_typescript_1.Column)({
|
|
44
|
-
allowNull: false,
|
|
45
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], FinanceCompanyModel.prototype, "AccSystemRefId", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, swagger_1.ApiProperty)({
|
|
51
|
-
example: 'N',
|
|
52
|
-
description: 'PostedToAccSystemYN',
|
|
53
|
-
}),
|
|
54
|
-
(0, sequelize_typescript_1.Column)({
|
|
55
|
-
allowNull: false,
|
|
56
|
-
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
57
|
-
}),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], FinanceCompanyModel.prototype, "PostedToAccSystemYN", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, swagger_1.ApiProperty)({
|
|
62
|
-
example: '138140891dd211b288',
|
|
63
|
-
description: 'PostedById',
|
|
64
|
-
}),
|
|
65
|
-
(0, sequelize_typescript_1.Column)({
|
|
66
|
-
allowNull: true,
|
|
67
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], FinanceCompanyModel.prototype, "PostedById", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, swagger_1.ApiProperty)({
|
|
73
|
-
example: new Date(),
|
|
74
|
-
description: 'PostedToAccSystem Date',
|
|
75
|
-
}),
|
|
76
|
-
(0, sequelize_typescript_1.Column)({
|
|
77
|
-
allowNull: true,
|
|
78
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
79
|
-
}),
|
|
80
|
-
__metadata("design:type", Date)
|
|
81
|
-
], FinanceCompanyModel.prototype, "PostedDateTime", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, sequelize_typescript_1.HasMany)(() => customer_entity_1.default),
|
|
84
|
-
__metadata("design:type", Array)
|
|
85
|
-
], FinanceCompanyModel.prototype, "FinanceCustomers", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, sequelize_typescript_1.HasMany)(() => tax_entity_1.default),
|
|
88
|
-
__metadata("design:type", Array)
|
|
89
|
-
], FinanceCompanyModel.prototype, "FinanceTaxes", void 0);
|
|
90
|
-
FinanceCompanyModel = __decorate([
|
|
91
|
-
(0, sequelize_typescript_1.Table)({ tableName: 'finance_Company', createdAt: false, updatedAt: false })
|
|
92
|
-
], FinanceCompanyModel);
|
|
93
|
-
exports.default = FinanceCompanyModel;
|
|
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 customer_entity_1 = require("./customer.entity");
|
|
15
|
+
const tax_entity_1 = require("./tax.entity");
|
|
16
|
+
let FinanceCompanyModel = class FinanceCompanyModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
20
|
+
(0, sequelize_typescript_1.Column)({ primaryKey: true, allowNull: false, type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], FinanceCompanyModel.prototype, "CompanyId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ example: 'AB' }),
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(10) }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], FinanceCompanyModel.prototype, "CompSystemCode", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
30
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], FinanceCompanyModel.prototype, "CompSystemRefId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ example: 'AB' }),
|
|
35
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(10) }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], FinanceCompanyModel.prototype, "AccSystemCode", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
type: String,
|
|
41
|
+
description: 'Account id in finance system',
|
|
42
|
+
}),
|
|
43
|
+
(0, sequelize_typescript_1.Column)({
|
|
44
|
+
allowNull: false,
|
|
45
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], FinanceCompanyModel.prototype, "AccSystemRefId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
example: 'N',
|
|
52
|
+
description: 'PostedToAccSystemYN',
|
|
53
|
+
}),
|
|
54
|
+
(0, sequelize_typescript_1.Column)({
|
|
55
|
+
allowNull: false,
|
|
56
|
+
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], FinanceCompanyModel.prototype, "PostedToAccSystemYN", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
example: '138140891dd211b288',
|
|
63
|
+
description: 'PostedById',
|
|
64
|
+
}),
|
|
65
|
+
(0, sequelize_typescript_1.Column)({
|
|
66
|
+
allowNull: true,
|
|
67
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], FinanceCompanyModel.prototype, "PostedById", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
example: new Date(),
|
|
74
|
+
description: 'PostedToAccSystem Date',
|
|
75
|
+
}),
|
|
76
|
+
(0, sequelize_typescript_1.Column)({
|
|
77
|
+
allowNull: true,
|
|
78
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", Date)
|
|
81
|
+
], FinanceCompanyModel.prototype, "PostedDateTime", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, sequelize_typescript_1.HasMany)(() => customer_entity_1.default),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], FinanceCompanyModel.prototype, "FinanceCustomers", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, sequelize_typescript_1.HasMany)(() => tax_entity_1.default),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], FinanceCompanyModel.prototype, "FinanceTaxes", void 0);
|
|
90
|
+
FinanceCompanyModel = __decorate([
|
|
91
|
+
(0, sequelize_typescript_1.Table)({ tableName: 'finance_Company', createdAt: false, updatedAt: false })
|
|
92
|
+
], FinanceCompanyModel);
|
|
93
|
+
exports.default = FinanceCompanyModel;
|
|
94
94
|
//# sourceMappingURL=finance-company.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-company.entity.js","sourceRoot":"","sources":["../../src/models/finance-company.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAA+E;AAC/E,uDAAqD;AACrD,6CAA2C;AAG5B,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CA8DrD,CAAA;
|
|
1
|
+
{"version":3,"file":"finance-company.entity.js","sourceRoot":"","sources":["../../src/models/finance-company.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAA+E;AAC/E,uDAAqD;AACrD,6CAA2C;AAG5B,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CA8DrD,CAAA;AA3DC;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;;sDACxD;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;;2DACjC;AAIvB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;;4DAChC;AAIxB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;;0DAClC;AAUtB;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,8BAA8B;KAC5C,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;2DACqB;AAUvB;IARC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,GAAG;QACZ,WAAW,EAAE,qBAAqB;KACnC,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC;KAC9B,CAAC;;gEAC0B;AAU5B;IARC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EAAE,YAAY;KAC1B,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;uDACiB;AAUnB;IARC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,IAAI,IAAI,EAAE;QACnB,WAAW,EAAE,wBAAwB;KACtC,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACc,IAAI;2DAAC;AAGrB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,yBAAoB,CAAC;;6DACK;AAGzC;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,oBAAe,CAAC;;yDACC;AA7Db,mBAAmB;IADvC,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;GACvD,mBAAmB,CA8DvC;kBA9DoB,mBAAmB"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import LedgerTransactionModel from './ledger-transaction.entity';
|
|
3
|
-
import FinanceCompanyModel from './finance-company.entity';
|
|
4
|
-
export default class JournalEntryModel extends Model {
|
|
5
|
-
CompanyId: string;
|
|
6
|
-
JournalEntryId: string;
|
|
7
|
-
Date: Date;
|
|
8
|
-
Name: string;
|
|
9
|
-
Description: string;
|
|
10
|
-
AccSystemRefId: string;
|
|
11
|
-
PostedToAccSystemYN: string;
|
|
12
|
-
PostedById: string;
|
|
13
|
-
PostedDateTime: Date;
|
|
14
|
-
LedgerTransactions: LedgerTransactionModel[];
|
|
15
|
-
FinanceCompany: FinanceCompanyModel;
|
|
16
|
-
}
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import LedgerTransactionModel from './ledger-transaction.entity';
|
|
3
|
+
import FinanceCompanyModel from './finance-company.entity';
|
|
4
|
+
export default class JournalEntryModel extends Model {
|
|
5
|
+
CompanyId: string;
|
|
6
|
+
JournalEntryId: string;
|
|
7
|
+
Date: Date;
|
|
8
|
+
Name: string;
|
|
9
|
+
Description: string;
|
|
10
|
+
AccSystemRefId: string;
|
|
11
|
+
PostedToAccSystemYN: string;
|
|
12
|
+
PostedById: string;
|
|
13
|
+
PostedDateTime: Date;
|
|
14
|
+
LedgerTransactions: LedgerTransactionModel[];
|
|
15
|
+
FinanceCompany: FinanceCompanyModel;
|
|
16
|
+
}
|
|
@@ -1,128 +1,128 @@
|
|
|
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 ledger_transaction_entity_1 = require("./ledger-transaction.entity");
|
|
15
|
-
const finance_company_entity_1 = require("./finance-company.entity");
|
|
16
|
-
let JournalEntryModel = class JournalEntryModel extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, swagger_1.ApiProperty)({
|
|
20
|
-
example: 'cl6nzvo780000qcw38ihpd8w6',
|
|
21
|
-
description: 'CompanyId',
|
|
22
|
-
}),
|
|
23
|
-
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_entity_1.default),
|
|
24
|
-
(0, sequelize_typescript_1.Column)({
|
|
25
|
-
allowNull: false,
|
|
26
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
27
|
-
}),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], JournalEntryModel.prototype, "CompanyId", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'JournalEntryId' }),
|
|
32
|
-
(0, sequelize_typescript_1.Column)({
|
|
33
|
-
primaryKey: true,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
36
|
-
}),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], JournalEntryModel.prototype, "JournalEntryId", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Date' }),
|
|
41
|
-
(0, sequelize_typescript_1.Column)({
|
|
42
|
-
allowNull: true,
|
|
43
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", Date)
|
|
46
|
-
], JournalEntryModel.prototype, "Date", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, swagger_1.ApiProperty)({
|
|
49
|
-
type: String,
|
|
50
|
-
description: 'Name of the journal entry',
|
|
51
|
-
}),
|
|
52
|
-
(0, sequelize_typescript_1.Column)({
|
|
53
|
-
allowNull: false,
|
|
54
|
-
type: sequelize_typescript_1.DataType.STRING(200),
|
|
55
|
-
}),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], JournalEntryModel.prototype, "Name", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, swagger_1.ApiProperty)({
|
|
60
|
-
type: String,
|
|
61
|
-
description: 'Description of the journal entry',
|
|
62
|
-
}),
|
|
63
|
-
(0, sequelize_typescript_1.Column)({
|
|
64
|
-
allowNull: true,
|
|
65
|
-
type: sequelize_typescript_1.DataType.STRING(1000),
|
|
66
|
-
}),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], JournalEntryModel.prototype, "Description", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, swagger_1.ApiProperty)({
|
|
71
|
-
type: String,
|
|
72
|
-
description: 'Account Customer Id in API',
|
|
73
|
-
}),
|
|
74
|
-
(0, sequelize_typescript_1.Column)({
|
|
75
|
-
allowNull: true,
|
|
76
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
77
|
-
}),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], JournalEntryModel.prototype, "AccSystemRefId", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, swagger_1.ApiProperty)({
|
|
82
|
-
example: 'N',
|
|
83
|
-
description: 'PostedToAccSystemYN',
|
|
84
|
-
}),
|
|
85
|
-
(0, sequelize_typescript_1.Column)({
|
|
86
|
-
allowNull: false,
|
|
87
|
-
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
88
|
-
}),
|
|
89
|
-
__metadata("design:type", String)
|
|
90
|
-
], JournalEntryModel.prototype, "PostedToAccSystemYN", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, swagger_1.ApiProperty)({
|
|
93
|
-
example: '138140891dd211b288',
|
|
94
|
-
description: 'PostedById',
|
|
95
|
-
}),
|
|
96
|
-
(0, sequelize_typescript_1.Column)({
|
|
97
|
-
allowNull: true,
|
|
98
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
99
|
-
}),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], JournalEntryModel.prototype, "PostedById", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, swagger_1.ApiProperty)({
|
|
104
|
-
example: new Date(),
|
|
105
|
-
description: 'PostedToAccSystem Date',
|
|
106
|
-
}),
|
|
107
|
-
(0, sequelize_typescript_1.Column)({
|
|
108
|
-
allowNull: true,
|
|
109
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
110
|
-
}),
|
|
111
|
-
__metadata("design:type", Date)
|
|
112
|
-
], JournalEntryModel.prototype, "PostedDateTime", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, sequelize_typescript_1.HasMany)(() => ledger_transaction_entity_1.default),
|
|
115
|
-
__metadata("design:type", Array)
|
|
116
|
-
], JournalEntryModel.prototype, "LedgerTransactions", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_entity_1.default),
|
|
119
|
-
__metadata("design:type", finance_company_entity_1.default)
|
|
120
|
-
], JournalEntryModel.prototype, "FinanceCompany", void 0);
|
|
121
|
-
JournalEntryModel = __decorate([
|
|
122
|
-
(0, sequelize_typescript_1.Table)({
|
|
123
|
-
tableName: 'finance_JournalEntry',
|
|
124
|
-
timestamps: false,
|
|
125
|
-
})
|
|
126
|
-
], JournalEntryModel);
|
|
127
|
-
exports.default = JournalEntryModel;
|
|
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 ledger_transaction_entity_1 = require("./ledger-transaction.entity");
|
|
15
|
+
const finance_company_entity_1 = require("./finance-company.entity");
|
|
16
|
+
let JournalEntryModel = class JournalEntryModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
example: 'cl6nzvo780000qcw38ihpd8w6',
|
|
21
|
+
description: 'CompanyId',
|
|
22
|
+
}),
|
|
23
|
+
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_entity_1.default),
|
|
24
|
+
(0, sequelize_typescript_1.Column)({
|
|
25
|
+
allowNull: false,
|
|
26
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], JournalEntryModel.prototype, "CompanyId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'JournalEntryId' }),
|
|
32
|
+
(0, sequelize_typescript_1.Column)({
|
|
33
|
+
primaryKey: true,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], JournalEntryModel.prototype, "JournalEntryId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Date' }),
|
|
41
|
+
(0, sequelize_typescript_1.Column)({
|
|
42
|
+
allowNull: true,
|
|
43
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", Date)
|
|
46
|
+
], JournalEntryModel.prototype, "Date", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({
|
|
49
|
+
type: String,
|
|
50
|
+
description: 'Name of the journal entry',
|
|
51
|
+
}),
|
|
52
|
+
(0, sequelize_typescript_1.Column)({
|
|
53
|
+
allowNull: false,
|
|
54
|
+
type: sequelize_typescript_1.DataType.STRING(200),
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], JournalEntryModel.prototype, "Name", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({
|
|
60
|
+
type: String,
|
|
61
|
+
description: 'Description of the journal entry',
|
|
62
|
+
}),
|
|
63
|
+
(0, sequelize_typescript_1.Column)({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: sequelize_typescript_1.DataType.STRING(1000),
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], JournalEntryModel.prototype, "Description", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
type: String,
|
|
72
|
+
description: 'Account Customer Id in API',
|
|
73
|
+
}),
|
|
74
|
+
(0, sequelize_typescript_1.Column)({
|
|
75
|
+
allowNull: true,
|
|
76
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], JournalEntryModel.prototype, "AccSystemRefId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)({
|
|
82
|
+
example: 'N',
|
|
83
|
+
description: 'PostedToAccSystemYN',
|
|
84
|
+
}),
|
|
85
|
+
(0, sequelize_typescript_1.Column)({
|
|
86
|
+
allowNull: false,
|
|
87
|
+
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], JournalEntryModel.prototype, "PostedToAccSystemYN", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
example: '138140891dd211b288',
|
|
94
|
+
description: 'PostedById',
|
|
95
|
+
}),
|
|
96
|
+
(0, sequelize_typescript_1.Column)({
|
|
97
|
+
allowNull: true,
|
|
98
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
99
|
+
}),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], JournalEntryModel.prototype, "PostedById", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiProperty)({
|
|
104
|
+
example: new Date(),
|
|
105
|
+
description: 'PostedToAccSystem Date',
|
|
106
|
+
}),
|
|
107
|
+
(0, sequelize_typescript_1.Column)({
|
|
108
|
+
allowNull: true,
|
|
109
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], JournalEntryModel.prototype, "PostedDateTime", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, sequelize_typescript_1.HasMany)(() => ledger_transaction_entity_1.default),
|
|
115
|
+
__metadata("design:type", Array)
|
|
116
|
+
], JournalEntryModel.prototype, "LedgerTransactions", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_entity_1.default),
|
|
119
|
+
__metadata("design:type", finance_company_entity_1.default)
|
|
120
|
+
], JournalEntryModel.prototype, "FinanceCompany", void 0);
|
|
121
|
+
JournalEntryModel = __decorate([
|
|
122
|
+
(0, sequelize_typescript_1.Table)({
|
|
123
|
+
tableName: 'finance_JournalEntry',
|
|
124
|
+
timestamps: false,
|
|
125
|
+
})
|
|
126
|
+
], JournalEntryModel);
|
|
127
|
+
exports.default = JournalEntryModel;
|
|
128
128
|
//# sourceMappingURL=journal-entry.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-entry.entity.js","sourceRoot":"","sources":["../../src/models/journal-entry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAQ8B;AAC9B,2EAAiE;AACjE,qEAA2D;AAM5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAK;CA4FnD,CAAA;
|
|
1
|
+
{"version":3,"file":"journal-entry.entity.js","sourceRoot":"","sources":["../../src/models/journal-entry.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import AccountModel from './account.entity';
|
|
3
|
-
import DocumentModel from './document.entity';
|
|
4
|
-
import JournalEntryModel from './journal-entry.entity';
|
|
5
|
-
import PaymentModel from './payment.entity';
|
|
6
|
-
export default class LedgerTransactionModel extends Model {
|
|
7
|
-
LedgerNo: string;
|
|
8
|
-
TransactionType: string;
|
|
9
|
-
JournalEntryId: string;
|
|
10
|
-
AccountNo: string;
|
|
11
|
-
Date: Date;
|
|
12
|
-
Description: string;
|
|
13
|
-
Currency: string;
|
|
14
|
-
DebitAmount: number;
|
|
15
|
-
CreditAmount: number;
|
|
16
|
-
RelatedObjectId: string;
|
|
17
|
-
RelatedObjectType: string;
|
|
18
|
-
RelatedDocNo: string;
|
|
19
|
-
RelatedPaymentId: string;
|
|
20
|
-
Account: AccountModel;
|
|
21
|
-
JournalEntry: JournalEntryModel;
|
|
22
|
-
Document: DocumentModel;
|
|
23
|
-
Payment: PaymentModel;
|
|
24
|
-
}
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import AccountModel from './account.entity';
|
|
3
|
+
import DocumentModel from './document.entity';
|
|
4
|
+
import JournalEntryModel from './journal-entry.entity';
|
|
5
|
+
import PaymentModel from './payment.entity';
|
|
6
|
+
export default class LedgerTransactionModel extends Model {
|
|
7
|
+
LedgerNo: string;
|
|
8
|
+
TransactionType: string;
|
|
9
|
+
JournalEntryId: string;
|
|
10
|
+
AccountNo: string;
|
|
11
|
+
Date: Date;
|
|
12
|
+
Description: string;
|
|
13
|
+
Currency: string;
|
|
14
|
+
DebitAmount: number;
|
|
15
|
+
CreditAmount: number;
|
|
16
|
+
RelatedObjectId: string;
|
|
17
|
+
RelatedObjectType: string;
|
|
18
|
+
RelatedDocNo: string;
|
|
19
|
+
RelatedPaymentId: string;
|
|
20
|
+
Account: AccountModel;
|
|
21
|
+
JournalEntry: JournalEntryModel;
|
|
22
|
+
Document: DocumentModel;
|
|
23
|
+
Payment: PaymentModel;
|
|
24
|
+
}
|