@tomei/finance 0.3.0 → 0.3.2
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/dist/account/account.d.ts +22 -27
- package/dist/account/account.js +89 -77
- package/dist/account/account.js.map +1 -1
- package/dist/account/account.repository.d.ts +3 -14
- package/dist/account/account.repository.js +4 -39
- package/dist/account/account.repository.js.map +1 -1
- package/dist/account/interfaces/account-attr.interface.d.ts +15 -7
- package/dist/account-system-entity/account-system-entity.d.ts +2 -2
- package/dist/account-system-entity/account-system-entity.js +1 -1
- package/dist/account-system-entity/post-history.repository.d.ts +2 -2
- package/dist/account-system-entity/post-history.repository.js +1 -1
- package/dist/customer/customer.d.ts +3 -3
- package/dist/customer/customer.js +1 -2
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/finance-customer.repository.d.ts +2 -2
- package/dist/customer/finance-customer.repository.js +1 -1
- package/dist/customer/interfaces/finance-customer.repository.interface.d.ts +2 -2
- package/dist/document/document-item.d.ts +2 -1
- package/dist/document/document-item.js +2 -2
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +3 -15
- package/dist/document/document-item.repository.js +4 -43
- package/dist/document/document-item.repository.js.map +1 -1
- package/dist/document/document.d.ts +20 -23
- package/dist/document/document.js +85 -54
- package/dist/document/document.js.map +1 -1
- package/dist/document/document.repository.d.ts +3 -14
- package/dist/document/document.repository.js +4 -39
- package/dist/document/document.repository.js.map +1 -1
- package/dist/document/interfaces/document-item.repository.interface.d.ts +2 -2
- package/dist/enum/index.d.ts +2 -1
- package/dist/enum/index.js +3 -1
- package/dist/enum/index.js.map +1 -1
- package/dist/enum/payment-status.enum.d.ts +4 -0
- package/dist/enum/payment-status.enum.js +9 -0
- package/dist/enum/payment-status.enum.js.map +1 -0
- package/dist/enum/transaction-type.enum.d.ts +2 -2
- package/dist/enum/transaction-type.enum.js +2 -2
- package/dist/enum/transaction-type.enum.js.map +1 -1
- package/dist/finance-company/finance-company.d.ts +15 -10
- package/dist/finance-company/finance-company.js +473 -30
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +2 -2
- package/dist/finance-company/finance-company.repository.js +1 -1
- package/dist/index.d.ts +11 -8
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/interfaces/account-system.interface.d.ts +2 -2
- package/dist/journal-entry/journal-entry.d.ts +13 -17
- package/dist/journal-entry/journal-entry.js +83 -35
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/journal-entry/journal-entry.repository.d.ts +3 -13
- package/dist/journal-entry/journal-entry.repository.js +5 -38
- package/dist/journal-entry/journal-entry.repository.js.map +1 -1
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +0 -4
- package/dist/ledger-transaction/ledger-transaction.d.ts +6 -5
- package/dist/ledger-transaction/ledger-transaction.js +6 -9
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.repository.d.ts +3 -8
- package/dist/ledger-transaction/ledger-transaction.repository.js +5 -32
- package/dist/ledger-transaction/ledger-transaction.repository.js.map +1 -1
- package/dist/models/account.entity.d.ts +7 -3
- package/dist/models/account.entity.js +69 -34
- package/dist/models/account.entity.js.map +1 -1
- package/dist/models/finance-company.entity.d.ts +0 -4
- package/dist/models/finance-company.entity.js +0 -20
- package/dist/models/finance-company.entity.js.map +1 -1
- package/dist/models/payment-item.entity.d.ts +1 -0
- package/dist/models/payment-item.entity.js +7 -0
- package/dist/models/payment-item.entity.js.map +1 -1
- package/dist/models/payment-method-type.entity.d.ts +13 -0
- package/dist/models/payment-method-type.entity.js +86 -0
- package/dist/models/payment-method-type.entity.js.map +1 -0
- package/dist/models/payment-method.entity.d.ts +7 -0
- package/dist/models/payment-method.entity.js +46 -0
- package/dist/models/payment-method.entity.js.map +1 -0
- package/dist/models/payment.entity.d.ts +15 -10
- package/dist/models/payment.entity.js +92 -34
- package/dist/models/payment.entity.js.map +1 -1
- package/dist/payment/interfaces/payment-attr.interface.d.ts +11 -8
- package/dist/payment/interfaces/payment-attr.interface.js.map +1 -1
- package/dist/payment/interfaces/payment-item-attr.interface.d.ts +1 -0
- package/dist/payment/interfaces/payment-item-attr.interface.js.map +1 -1
- package/dist/payment/payment-item.repository.d.ts +3 -15
- package/dist/payment/payment-item.repository.js +4 -43
- package/dist/payment/payment-item.repository.js.map +1 -1
- package/dist/payment/payment.d.ts +44 -48
- package/dist/payment/payment.js +122 -133
- package/dist/payment/payment.js.map +1 -1
- package/dist/payment/payment.repository.d.ts +3 -14
- package/dist/payment/payment.repository.js +4 -39
- package/dist/payment/payment.repository.js.map +1 -1
- package/dist/payment-item/interfaces/payment-item-attr.interface.d.ts +8 -0
- package/dist/payment-item/interfaces/payment-item-attr.interface.js +7 -0
- package/dist/payment-item/interfaces/payment-item-attr.interface.js.map +1 -0
- package/{src/payment/interfaces/payment-item.repository.interface.ts → dist/payment-item/interfaces/payment-item.repository.interface.d.ts} +0 -1
- package/dist/payment-item/interfaces/payment-item.repository.interface.js +3 -0
- package/dist/payment-item/interfaces/payment-item.repository.interface.js.map +1 -0
- package/dist/payment-item/payment-item.d.ts +19 -0
- package/dist/payment-item/payment-item.js +42 -0
- package/dist/payment-item/payment-item.js.map +1 -0
- package/dist/payment-item/payment-item.repository.d.ts +5 -0
- package/dist/payment-item/payment-item.repository.js +12 -0
- package/dist/payment-item/payment-item.repository.js.map +1 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.d.ts +4 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.js +3 -0
- package/dist/payment-method/interfaces/payment-method-attr.interface.js.map +1 -0
- package/dist/payment-method/payment-method.d.ts +17 -0
- package/dist/payment-method/payment-method.js +83 -0
- package/dist/payment-method/payment-method.js.map +1 -0
- package/dist/payment-method/payment-method.repository.d.ts +5 -0
- package/dist/payment-method/payment-method.repository.js +12 -0
- package/dist/payment-method/payment-method.repository.js.map +1 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.d.ts +8 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js +3 -0
- package/dist/payment-method-type/interfaces/payment-method-type-attr.interface.js.map +1 -0
- package/dist/payment-method-type/payment-method-type.d.ts +15 -0
- package/dist/payment-method-type/payment-method-type.js +55 -0
- package/dist/payment-method-type/payment-method-type.js.map +1 -0
- package/dist/payment-method-type/payment-method-type.repository.d.ts +5 -0
- package/dist/payment-method-type/payment-method-type.repository.js +12 -0
- package/dist/payment-method-type/payment-method-type.repository.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/finance-account-migration.js +30 -16
- package/migrations/finance-company-migration.js +0 -14
- package/migrations/finance-payment-item-migration.js +4 -0
- package/migrations/finance-payment-method-migration.js +21 -0
- package/migrations/finance-payment-method-type-migration.js +55 -0
- package/migrations/finance-payment-migration.js +42 -25
- package/package.json +4 -4
- package/src/account/account.repository.ts +5 -38
- package/src/account/account.ts +115 -98
- package/src/account/interfaces/account-attr.interface.ts +15 -7
- package/src/account-system-entity/account-system-entity.ts +4 -4
- package/src/account-system-entity/post-history.repository.ts +3 -3
- package/src/customer/customer.ts +3 -3
- package/src/customer/finance-customer.repository.ts +2 -2
- package/src/customer/interfaces/finance-customer.repository.interface.ts +2 -2
- package/src/document/document-item.repository.ts +5 -43
- package/src/document/document-item.ts +5 -1
- package/src/document/document.repository.ts +5 -35
- package/src/document/document.ts +127 -74
- package/src/document/interfaces/document-item.repository.interface.ts +2 -2
- package/src/enum/index.ts +2 -0
- package/src/enum/payment-status.enum.ts +4 -0
- package/src/enum/transaction-type.enum.ts +2 -2
- package/src/finance-company/finance-company.repository.ts +3 -3
- package/src/finance-company/finance-company.ts +685 -48
- package/src/index.ts +13 -7
- package/src/interfaces/account-system.interface.ts +2 -2
- package/src/journal-entry/journal-entry.repository.ts +5 -34
- package/src/journal-entry/journal-entry.ts +163 -63
- package/src/ledger-transaction/interfaces/ledger-transaction-attr.interface.ts +0 -5
- package/src/ledger-transaction/ledger-transaction.repository.ts +5 -24
- package/src/ledger-transaction/ledger-transaction.ts +8 -12
- package/src/models/account.entity.ts +67 -32
- package/src/models/finance-company.entity.ts +0 -16
- package/src/models/payment-item.entity.ts +6 -0
- package/src/models/payment-method-type.entity.ts +70 -0
- package/src/models/payment-method.entity.ts +28 -0
- package/src/models/payment.entity.ts +86 -31
- package/src/payment/interfaces/payment-attr.interface.ts +11 -8
- package/src/payment/payment.repository.ts +5 -35
- package/src/payment/payment.ts +183 -181
- package/src/{payment → payment-item}/interfaces/payment-item-attr.interface.ts +1 -0
- package/src/payment-item/payment-item.repository.ts +11 -0
- package/src/payment-item/payment-item.ts +54 -0
- package/src/payment-method/interfaces/payment-method-attr.interface.ts +4 -0
- package/src/payment-method/payment-method.repository.ts +11 -0
- package/src/payment-method/payment-method.ts +95 -0
- package/src/payment-method-type/interfaces/payment-method-type-attr.interface.ts +8 -0
- package/src/payment-method-type/payment-method-type.repository.ts +11 -0
- package/src/payment-method-type/payment-method-type.ts +58 -0
- package/src/account/interfaces/account.repository.interface.ts +0 -4
- package/src/document/interfaces/document.repository.interface.ts +0 -4
- package/src/journal-entry/interfaces/journal-entry.repository.interface.ts +0 -11
- package/src/payment/interfaces/payment.repository.interface.ts +0 -4
- package/src/payment/payment-item.repository.ts +0 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-transaction.js","sourceRoot":"","sources":["../../src/ledger-transaction/ledger-transaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ledger-transaction.js","sourceRoot":"","sources":["../../src/ledger-transaction/ledger-transaction.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,yEAAuE;AAEvE,iCAAiC;AAEjC,MAAqB,iBAAiB;IAiBpC,YAAY,aAAmB,EAAE,aAAsB,IAAG,CAAC;IAE3D,IAAI,CAAC,MAA+B;QAClC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC1C,IAAI,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AAuC,EACvC,cAAuB;;YAEvB,IAAI,CAAC,IAAI,CAAC;gBACR,aAAa,EAAE,MAAM,EAAE;gBACvB,eAAe,EAAE,eAAe;gBAChC,cAAc,EAAE,EAAE;gBAClB,SAAS,EAAE,EAAE;gBACb,IAAI,EAAE,IAAI,IAAI,EAAE;gBAChB,IAAI,EAAE,EAAE;gBACR,WAAW,EAAE,EAAE;gBACf,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,CAAC;gBACd,YAAY,EAAE,CAAC;gBACf,eAAe,EAAE,EAAE;gBACnB,iBAAiB,EAAE,EAAE;aACtB,CAAC,CAAC;YAEH,IAAI,eAAe,KAAK,8CAAsB,CAAC,KAAK,EAAE;gBACpD,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;aAChC;iBAAM,IAAI,eAAe,KAAK,8CAAsB,CAAC,MAAM,EAAE;gBAC5D,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;aACjC;YAED,IAAI,cAAc,EAAE;gBAClB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;aACtC;YAED,OAAO,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QAC7B,CAAC;KAAA;CACF;AAtFD,oCAsFC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import LedgerTransactionModel from '../models/ledger-transaction.entity';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private readonly ledgerTransactionModel;
|
|
6
|
-
constructor(ledgerTransactionModel: typeof LedgerTransactionModel);
|
|
7
|
-
create(data: ILedgerTransactionAttr | any, options?: any): Promise<LedgerTransactionModel> | any;
|
|
8
|
-
findAll(options?: any): Promise<LedgerTransactionModel[]>;
|
|
9
|
-
findOne(options: any): Promise<LedgerTransactionModel> | any;
|
|
2
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
3
|
+
export declare class LedgerTransactionRepository extends RepositoryBase<LedgerTransactionModel> implements IRepositoryBase<LedgerTransactionModel> {
|
|
4
|
+
constructor();
|
|
10
5
|
}
|
|
@@ -1,39 +1,12 @@
|
|
|
1
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.LedgerTransactionRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const sequelize_1 = require("@nestjs/sequelize");
|
|
18
4
|
const ledger_transaction_entity_1 = require("../models/ledger-transaction.entity");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
const general_1 = require("@tomei/general");
|
|
6
|
+
class LedgerTransactionRepository extends general_1.RepositoryBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(ledger_transaction_entity_1.default);
|
|
22
9
|
}
|
|
23
|
-
|
|
24
|
-
return this.ledgerTransactionModel.create(data, options);
|
|
25
|
-
}
|
|
26
|
-
findAll(options) {
|
|
27
|
-
return this.ledgerTransactionModel.findAll(options);
|
|
28
|
-
}
|
|
29
|
-
findOne(options) {
|
|
30
|
-
return this.ledgerTransactionModel.findOne(options);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
LedgerTransactionRepository = __decorate([
|
|
34
|
-
(0, common_1.Injectable)(),
|
|
35
|
-
__param(0, (0, sequelize_1.InjectModel)(ledger_transaction_entity_1.default)),
|
|
36
|
-
__metadata("design:paramtypes", [Object])
|
|
37
|
-
], LedgerTransactionRepository);
|
|
10
|
+
}
|
|
38
11
|
exports.LedgerTransactionRepository = LedgerTransactionRepository;
|
|
39
12
|
//# sourceMappingURL=ledger-transaction.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-transaction.repository.js","sourceRoot":"","sources":["../../src/ledger-transaction/ledger-transaction.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ledger-transaction.repository.js","sourceRoot":"","sources":["../../src/ledger-transaction/ledger-transaction.repository.ts"],"names":[],"mappings":";;;AAAA,mFAAyE;AACzE,4CAAiE;AAEjE,MAAa,2BACX,SAAQ,wBAAsC;IAG9C;QACE,KAAK,CAAC,mCAAsB,CAAC,CAAC;IAChC,CAAC;CACF;AAPD,kEAOC"}
|
|
@@ -2,12 +2,11 @@ import { Model } from 'sequelize-typescript';
|
|
|
2
2
|
import LedgerTransactionModel from './ledger-transaction.entity';
|
|
3
3
|
import PaymentModel from './payment.entity';
|
|
4
4
|
import DocumentItemModel from './document-item.entity';
|
|
5
|
+
import FinanceCompanyModel from './finance-company.entity';
|
|
5
6
|
export default class AccountModel extends Model {
|
|
6
7
|
AccountNo: string;
|
|
8
|
+
CompanyId: string;
|
|
7
9
|
ParentAccountNo: string;
|
|
8
|
-
SystemCode: string;
|
|
9
|
-
AccSystemCode: string;
|
|
10
|
-
AccSystemRefId: string;
|
|
11
10
|
Name: string;
|
|
12
11
|
Description: string;
|
|
13
12
|
AccountType: string;
|
|
@@ -20,7 +19,12 @@ export default class AccountModel extends Model {
|
|
|
20
19
|
CreatedById: string;
|
|
21
20
|
UpdatedAt: Date;
|
|
22
21
|
UpdatedById: string;
|
|
22
|
+
AccSystemRefId: string;
|
|
23
|
+
PostedToAccSystemYN: string;
|
|
24
|
+
PostedById: string;
|
|
25
|
+
PostedDateTime: Date;
|
|
23
26
|
Payments: PaymentModel[];
|
|
24
27
|
DocumentItems: DocumentItemModel[];
|
|
25
28
|
LedgerTransactions: LedgerTransactionModel[];
|
|
29
|
+
FinanceCompany: FinanceCompanyModel;
|
|
26
30
|
}
|
|
@@ -14,6 +14,7 @@ const sequelize_typescript_1 = require("sequelize-typescript");
|
|
|
14
14
|
const ledger_transaction_entity_1 = require("./ledger-transaction.entity");
|
|
15
15
|
const payment_entity_1 = require("./payment.entity");
|
|
16
16
|
const document_item_entity_1 = require("./document-item.entity");
|
|
17
|
+
const finance_company_entity_1 = require("./finance-company.entity");
|
|
17
18
|
let AccountModel = class AccountModel extends sequelize_typescript_1.Model {
|
|
18
19
|
};
|
|
19
20
|
__decorate([
|
|
@@ -25,53 +26,33 @@ __decorate([
|
|
|
25
26
|
}),
|
|
26
27
|
__metadata("design:type", String)
|
|
27
28
|
], AccountModel.prototype, "AccountNo", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Parent account of this object' }),
|
|
30
|
-
(0, sequelize_typescript_1.Column)({
|
|
31
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
32
|
-
}),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], AccountModel.prototype, "ParentAccountNo", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)({
|
|
37
|
-
type: String,
|
|
38
|
-
description: 'System Code eg. "EZC", "CRM"',
|
|
39
|
-
}),
|
|
40
|
-
(0, sequelize_typescript_1.Column)({
|
|
41
|
-
allowNull: false,
|
|
42
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
43
|
-
}),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], AccountModel.prototype, "SystemCode", void 0);
|
|
46
29
|
__decorate([
|
|
47
30
|
(0, swagger_1.ApiProperty)({
|
|
48
|
-
|
|
49
|
-
description: '
|
|
31
|
+
example: 'cl6nzvo780000qcw38ihpd8w6',
|
|
32
|
+
description: 'CompanyId',
|
|
50
33
|
}),
|
|
34
|
+
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_entity_1.default),
|
|
51
35
|
(0, sequelize_typescript_1.Column)({
|
|
52
36
|
allowNull: false,
|
|
53
|
-
type: sequelize_typescript_1.DataType.STRING(
|
|
37
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
54
38
|
}),
|
|
55
39
|
__metadata("design:type", String)
|
|
56
|
-
], AccountModel.prototype, "
|
|
40
|
+
], AccountModel.prototype, "CompanyId", void 0);
|
|
57
41
|
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)({
|
|
59
|
-
type: String,
|
|
60
|
-
description: 'Account id in finance system',
|
|
61
|
-
}),
|
|
42
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Parent account of this object' }),
|
|
62
43
|
(0, sequelize_typescript_1.Column)({
|
|
63
|
-
|
|
64
|
-
|
|
44
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
45
|
+
allowNull: true,
|
|
65
46
|
}),
|
|
66
47
|
__metadata("design:type", String)
|
|
67
|
-
], AccountModel.prototype, "
|
|
48
|
+
], AccountModel.prototype, "ParentAccountNo", void 0);
|
|
68
49
|
__decorate([
|
|
69
50
|
(0, swagger_1.ApiProperty)({
|
|
70
51
|
type: String,
|
|
71
52
|
description: 'Name of the account',
|
|
72
53
|
}),
|
|
73
54
|
(0, sequelize_typescript_1.Column)({
|
|
74
|
-
allowNull:
|
|
55
|
+
allowNull: false,
|
|
75
56
|
type: sequelize_typescript_1.DataType.STRING(200),
|
|
76
57
|
}),
|
|
77
58
|
__metadata("design:type", String)
|
|
@@ -83,7 +64,7 @@ __decorate([
|
|
|
83
64
|
}),
|
|
84
65
|
(0, sequelize_typescript_1.Column)({
|
|
85
66
|
allowNull: true,
|
|
86
|
-
type: sequelize_typescript_1.DataType.
|
|
67
|
+
type: sequelize_typescript_1.DataType.STRING(2000),
|
|
87
68
|
}),
|
|
88
69
|
__metadata("design:type", String)
|
|
89
70
|
], AccountModel.prototype, "Description", void 0);
|
|
@@ -93,7 +74,7 @@ __decorate([
|
|
|
93
74
|
description: 'Account Type',
|
|
94
75
|
}),
|
|
95
76
|
(0, sequelize_typescript_1.Column)({
|
|
96
|
-
allowNull:
|
|
77
|
+
allowNull: false,
|
|
97
78
|
type: sequelize_typescript_1.DataType.STRING(100),
|
|
98
79
|
}),
|
|
99
80
|
__metadata("design:type", String)
|
|
@@ -160,7 +141,10 @@ __decorate([
|
|
|
160
141
|
example: '138140891dd211b288d34bc7b4312a49',
|
|
161
142
|
description: 'The CreatedById for Media.',
|
|
162
143
|
}),
|
|
163
|
-
(0, sequelize_typescript_1.Column)({
|
|
144
|
+
(0, sequelize_typescript_1.Column)({
|
|
145
|
+
allowNull: false,
|
|
146
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
147
|
+
}),
|
|
164
148
|
__metadata("design:type", String)
|
|
165
149
|
], AccountModel.prototype, "CreatedById", void 0);
|
|
166
150
|
__decorate([
|
|
@@ -176,9 +160,56 @@ __decorate([
|
|
|
176
160
|
example: '138140891dd211b288d34bc7b4312a49',
|
|
177
161
|
description: 'The UpdatedById for Media.',
|
|
178
162
|
}),
|
|
179
|
-
(0, sequelize_typescript_1.Column)({
|
|
163
|
+
(0, sequelize_typescript_1.Column)({
|
|
164
|
+
allowNull: true,
|
|
165
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
166
|
+
}),
|
|
180
167
|
__metadata("design:type", String)
|
|
181
168
|
], AccountModel.prototype, "UpdatedById", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, swagger_1.ApiProperty)({
|
|
171
|
+
type: String,
|
|
172
|
+
description: 'Account id in finance system',
|
|
173
|
+
}),
|
|
174
|
+
(0, sequelize_typescript_1.Column)({
|
|
175
|
+
allowNull: false,
|
|
176
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
177
|
+
}),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], AccountModel.prototype, "AccSystemRefId", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, swagger_1.ApiProperty)({
|
|
182
|
+
example: 'N',
|
|
183
|
+
description: 'PostedToAccSystemYN',
|
|
184
|
+
}),
|
|
185
|
+
(0, sequelize_typescript_1.Column)({
|
|
186
|
+
allowNull: false,
|
|
187
|
+
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
188
|
+
}),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], AccountModel.prototype, "PostedToAccSystemYN", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, swagger_1.ApiProperty)({
|
|
193
|
+
example: '138140891dd211b288',
|
|
194
|
+
description: 'PostedById',
|
|
195
|
+
}),
|
|
196
|
+
(0, sequelize_typescript_1.Column)({
|
|
197
|
+
allowNull: true,
|
|
198
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
199
|
+
}),
|
|
200
|
+
__metadata("design:type", String)
|
|
201
|
+
], AccountModel.prototype, "PostedById", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, swagger_1.ApiProperty)({
|
|
204
|
+
example: new Date(),
|
|
205
|
+
description: 'PostedToAccSystem Date',
|
|
206
|
+
}),
|
|
207
|
+
(0, sequelize_typescript_1.Column)({
|
|
208
|
+
allowNull: true,
|
|
209
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
210
|
+
}),
|
|
211
|
+
__metadata("design:type", Date)
|
|
212
|
+
], AccountModel.prototype, "PostedDateTime", void 0);
|
|
182
213
|
__decorate([
|
|
183
214
|
(0, sequelize_typescript_1.HasMany)(() => payment_entity_1.default),
|
|
184
215
|
__metadata("design:type", Array)
|
|
@@ -191,6 +222,10 @@ __decorate([
|
|
|
191
222
|
(0, sequelize_typescript_1.HasMany)(() => ledger_transaction_entity_1.default),
|
|
192
223
|
__metadata("design:type", Array)
|
|
193
224
|
], AccountModel.prototype, "LedgerTransactions", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_entity_1.default),
|
|
227
|
+
__metadata("design:type", finance_company_entity_1.default)
|
|
228
|
+
], AccountModel.prototype, "FinanceCompany", void 0);
|
|
194
229
|
AccountModel = __decorate([
|
|
195
230
|
(0, sequelize_typescript_1.Table)({ tableName: 'finance_Account', createdAt: false, updatedAt: false })
|
|
196
231
|
], AccountModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.entity.js","sourceRoot":"","sources":["../../src/models/account.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+
|
|
1
|
+
{"version":3,"file":"account.entity.js","sourceRoot":"","sources":["../../src/models/account.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAU8B;AAC9B,2EAAiE;AACjE,qDAA4C;AAC5C,iEAAuD;AACvD,qEAA2D;AAG5C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CA2L9C,CAAA;AA1LC;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;IACvD,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACgB;AAElB;IAAC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,WAAW;KACzB,CAAC;IACD,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;IACrC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MA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;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC;;mDACE;AAEnC;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,mCAAsB,CAAC;;wDACO;AAE7C;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;8BACrB,gCAAmB;oDAAC;AA1LjB,YAAY;IADhC,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;GACvD,YAAY,CA2LhC;kBA3LoB,YAAY"}
|
|
@@ -5,9 +5,5 @@ export default class FinanceCompanyModel extends Model {
|
|
|
5
5
|
CompSystemCode: string;
|
|
6
6
|
CompSystemRefId: string;
|
|
7
7
|
AccSystemCode: string;
|
|
8
|
-
AccSystemRefId: string;
|
|
9
|
-
PostedToAccSystemYN: string;
|
|
10
|
-
PostedById: string;
|
|
11
|
-
PostedDateTime: Date;
|
|
12
8
|
FinanceCustomers: FinanceCustomerModel[];
|
|
13
9
|
}
|
|
@@ -34,26 +34,6 @@ __decorate([
|
|
|
34
34
|
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(10) }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], FinanceCompanyModel.prototype, "AccSystemCode", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
39
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], FinanceCompanyModel.prototype, "AccSystemRefId", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, swagger_1.ApiProperty)({ example: 'N' }),
|
|
44
|
-
(0, sequelize_typescript_1.Column)({ defaultValue: 'N', type: sequelize_typescript_1.DataType.ENUM('Y', 'N') }),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], FinanceCompanyModel.prototype, "PostedToAccSystemYN", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
49
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], FinanceCompanyModel.prototype, "PostedById", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, swagger_1.ApiProperty)({ example: new Date() }),
|
|
54
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE }),
|
|
55
|
-
__metadata("design:type", Date)
|
|
56
|
-
], FinanceCompanyModel.prototype, "PostedDateTime", void 0);
|
|
57
37
|
__decorate([
|
|
58
38
|
(0, sequelize_typescript_1.HasMany)(() => customer_entity_1.default),
|
|
59
39
|
__metadata("design:type", Array)
|
|
@@ -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;AAGtC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;
|
|
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;AAGtC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CAmBrD,CAAA;AAlBC;IAAC,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;AAElB;IAAC,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;AAEvB;IAAC,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;AAExB;IAAC,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;AAEtB;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,yBAAoB,CAAC;;6DACK;AAlBtB,mBAAmB;IADvC,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;GACvD,mBAAmB,CAmBvC;kBAnBoB,mBAAmB"}
|
|
@@ -50,6 +50,13 @@ __decorate([
|
|
|
50
50
|
}),
|
|
51
51
|
__metadata("design:type", Number)
|
|
52
52
|
], PaymentItemModel.prototype, "Amount", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, sequelize_typescript_1.Column)({
|
|
55
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
56
|
+
allowNull: true,
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], PaymentItemModel.prototype, "TaxCode", void 0);
|
|
53
60
|
__decorate([
|
|
54
61
|
(0, sequelize_typescript_1.BelongsTo)(() => payment_entity_1.default),
|
|
55
62
|
__metadata("design:type", payment_entity_1.default)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-item.entity.js","sourceRoot":"","sources":["../../src/models/payment-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAO8B;AAC9B,qDAA4C;AAG7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4BAAK;
|
|
1
|
+
{"version":3,"file":"payment-item.entity.js","sourceRoot":"","sources":["../../src/models/payment-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAO8B;AAC9B,qDAA4C;AAG7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4BAAK;CAyClD,CAAA;AAxCC;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;IAC9B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACqB;AAEvB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;KAC3B,CAAC;;0DACuB;AAEzB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;kDACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;gDACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,IAAI;KAChB,CAAC;;iDACc;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;8BACrB,wBAAY;iDAAC;AAxCH,gBAAgB;IADpC,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;GACvD,gBAAgB,CAyCpC;kBAzCoB,gBAAgB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import AccountModel from './account.entity';
|
|
3
|
+
import PaymentMethodModel from './payment-method.entity';
|
|
4
|
+
export default class PaymentMethodTypeModel extends Model {
|
|
5
|
+
MethodId: string;
|
|
6
|
+
MethodTypeId: string;
|
|
7
|
+
Name: string;
|
|
8
|
+
AccountNo: string;
|
|
9
|
+
ProcessingFeeRate: number;
|
|
10
|
+
ProcessingFeeAccountNo: string;
|
|
11
|
+
Account: AccountModel;
|
|
12
|
+
PaymentMethod: PaymentMethodModel;
|
|
13
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 account_entity_1 = require("./account.entity");
|
|
15
|
+
const payment_method_entity_1 = require("./payment-method.entity");
|
|
16
|
+
let PaymentMethodTypeModel = class PaymentMethodTypeModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, sequelize_typescript_1.ForeignKey)(() => payment_method_entity_1.default),
|
|
20
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
21
|
+
(0, sequelize_typescript_1.Column)({
|
|
22
|
+
allowNull: false,
|
|
23
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PaymentMethodTypeModel.prototype, "MethodId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
29
|
+
(0, sequelize_typescript_1.Column)({
|
|
30
|
+
primaryKey: true,
|
|
31
|
+
allowNull: false,
|
|
32
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PaymentMethodTypeModel.prototype, "MethodTypeId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({ example: 'Cash' }),
|
|
38
|
+
(0, sequelize_typescript_1.Column)({
|
|
39
|
+
allowNull: false,
|
|
40
|
+
type: sequelize_typescript_1.DataType.STRING(100),
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PaymentMethodTypeModel.prototype, "Name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, sequelize_typescript_1.ForeignKey)(() => account_entity_1.default),
|
|
46
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
47
|
+
(0, sequelize_typescript_1.Column)({
|
|
48
|
+
allowNull: false,
|
|
49
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PaymentMethodTypeModel.prototype, "AccountNo", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ example: '100.0' }),
|
|
55
|
+
(0, sequelize_typescript_1.Column)({
|
|
56
|
+
allowNull: false,
|
|
57
|
+
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], PaymentMethodTypeModel.prototype, "ProcessingFeeRate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, sequelize_typescript_1.ForeignKey)(() => account_entity_1.default),
|
|
63
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
64
|
+
(0, sequelize_typescript_1.Column)({
|
|
65
|
+
allowNull: false,
|
|
66
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], PaymentMethodTypeModel.prototype, "ProcessingFeeAccountNo", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, sequelize_typescript_1.BelongsTo)(() => account_entity_1.default),
|
|
72
|
+
__metadata("design:type", account_entity_1.default)
|
|
73
|
+
], PaymentMethodTypeModel.prototype, "Account", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, sequelize_typescript_1.BelongsTo)(() => payment_method_entity_1.default),
|
|
76
|
+
__metadata("design:type", payment_method_entity_1.default)
|
|
77
|
+
], PaymentMethodTypeModel.prototype, "PaymentMethod", void 0);
|
|
78
|
+
PaymentMethodTypeModel = __decorate([
|
|
79
|
+
(0, sequelize_typescript_1.Table)({
|
|
80
|
+
tableName: 'finance_PaymentMethodType',
|
|
81
|
+
createdAt: false,
|
|
82
|
+
updatedAt: false,
|
|
83
|
+
})
|
|
84
|
+
], PaymentMethodTypeModel);
|
|
85
|
+
exports.default = PaymentMethodTypeModel;
|
|
86
|
+
//# sourceMappingURL=payment-method-type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-type.entity.js","sourceRoot":"","sources":["../../src/models/payment-method-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAO8B;AAC9B,qDAA4C;AAC5C,mEAAyD;AAO1C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,4BAAK;CAoDxD,CAAA;AAnDC;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;IACpC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACe;AAEjB;IAAC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,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;;4DACmB;AAErB;IAAC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAChC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;KAC3B,CAAC;;oDACW;AAEb;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;IAC9B,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;yDACgB;AAElB;IAAC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACjC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;iEACwB;AAE1B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;IAC9B,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACrD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;sEAC6B;AAE/B;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,wBAAY,CAAC;8BACrB,wBAAY;uDAAC;AAEtB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACrB,+BAAkB;6DAAC;AAnDf,sBAAsB;IAL1C,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;KACjB,CAAC;GACmB,sBAAsB,CAoD1C;kBApDoB,sBAAsB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 payment_method_type_entity_1 = require("./payment-method-type.entity");
|
|
15
|
+
let PaymentMethodModel = class PaymentMethodModel extends sequelize_typescript_1.Model {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({ example: 'cl6nzvo780000qcw38ihpd8w6' }),
|
|
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
|
+
], PaymentMethodModel.prototype, "MethodId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ example: 'Cash' }),
|
|
28
|
+
(0, sequelize_typescript_1.Column)({
|
|
29
|
+
allowNull: false,
|
|
30
|
+
type: sequelize_typescript_1.DataType.STRING(100),
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PaymentMethodModel.prototype, "Name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, sequelize_typescript_1.HasMany)(() => payment_method_type_entity_1.default),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], PaymentMethodModel.prototype, "PaymentMethodType", void 0);
|
|
38
|
+
PaymentMethodModel = __decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Table)({
|
|
40
|
+
tableName: 'finance_PaymentMethod',
|
|
41
|
+
createdAt: false,
|
|
42
|
+
updatedAt: false,
|
|
43
|
+
})
|
|
44
|
+
], PaymentMethodModel);
|
|
45
|
+
exports.default = PaymentMethodModel;
|
|
46
|
+
//# sourceMappingURL=payment-method.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.entity.js","sourceRoot":"","sources":["../../src/models/payment-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAA+E;AAC/E,6EAAkE;AAOnD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAK;CAkBpD,CAAA;AAjBC;IAAC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,2BAA2B,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;;oDACe;AAEjB;IAAC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAChC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;KAC3B,CAAC;;gDACW;AAEb;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,oCAAsB,CAAC;;6DACM;AAjBzB,kBAAkB;IALtC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,uBAAuB;QAClC,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;KACjB,CAAC;GACmB,kBAAkB,CAkBtC;kBAlBoB,kBAAkB"}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { PaymentType } from '../enum
|
|
3
|
-
import
|
|
2
|
+
import { PaymentType, PaymentStatus } from '../enum';
|
|
3
|
+
import FinanceCompanyModel from './finance-company.entity';
|
|
4
4
|
import PaymentItemModel from './payment-item.entity';
|
|
5
|
+
import PaymentMethodTypeModel from './payment-method-type.entity';
|
|
5
6
|
export default class PaymentModel extends Model {
|
|
6
7
|
PaymentId: string;
|
|
7
|
-
AccountNo: string;
|
|
8
8
|
PaymentType: PaymentType;
|
|
9
9
|
PaymentDate: Date;
|
|
10
|
+
CompanyId: string;
|
|
11
|
+
MethodTypeId: string;
|
|
10
12
|
Currency: string;
|
|
11
13
|
Amount: number;
|
|
12
|
-
Status:
|
|
13
|
-
Method: string;
|
|
14
|
-
MethodParty: string;
|
|
15
|
-
MethodAccountName: string;
|
|
16
|
-
MethodAccountNo: string;
|
|
14
|
+
Status: PaymentStatus;
|
|
17
15
|
TransactionId: string;
|
|
18
|
-
|
|
16
|
+
TransactionApprovalCode: string;
|
|
17
|
+
TransactionAccountName: string;
|
|
18
|
+
TransactionAccountNo: string;
|
|
19
19
|
ReceivedBy: string;
|
|
20
20
|
UpdatedAt: Date;
|
|
21
21
|
UpdatedBy: string;
|
|
22
22
|
Remarks: string;
|
|
23
|
-
|
|
23
|
+
AccSystemRefId: string;
|
|
24
|
+
PostedToAccSystemYN: string;
|
|
25
|
+
PostedById: string;
|
|
26
|
+
PostedDateTime: Date;
|
|
24
27
|
PaymentItems: PaymentItemModel[];
|
|
28
|
+
FinanceCompany: FinanceCompanyModel;
|
|
29
|
+
PaymentMethodType: PaymentMethodTypeModel;
|
|
25
30
|
}
|