@tomei/finance 0.2.12 → 0.2.13
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/customer/customer.d.ts +18 -13
- package/dist/customer/customer.js +18 -13
- package/dist/customer/customer.js.map +1 -1
- package/dist/customer/entities/customer.entity.d.ts +9 -4
- package/dist/customer/entities/customer.entity.js +46 -9
- package/dist/customer/entities/customer.entity.js.map +1 -1
- package/dist/customer/index.d.ts +2 -2
- package/dist/customer/index.js +3 -3
- package/dist/customer/index.js.map +1 -1
- package/dist/customer/interfaces/finance-customer-attr.interface.d.ts +7 -1
- package/dist/document/document.d.ts +1 -1
- package/dist/finance-company/entities/finance-company.entity.d.ts +13 -0
- package/dist/finance-company/entities/finance-company.entity.js +113 -0
- package/dist/finance-company/entities/finance-company.entity.js.map +1 -0
- package/dist/finance-company/finance-company.repository.d.ts +10 -0
- package/dist/finance-company/finance-company.repository.js +38 -0
- package/dist/finance-company/finance-company.repository.js.map +1 -0
- package/dist/finance-company/index.d.ts +5 -1
- package/dist/finance-company/index.js +5 -1
- package/dist/finance-company/index.js.map +1 -1
- package/dist/finance-company/interfaces/finance-company-attr.interface.d.ts +10 -0
- package/dist/finance-company/interfaces/finance-company-attr.interface.js +3 -0
- package/dist/finance-company/interfaces/finance-company-attr.interface.js.map +1 -0
- package/dist/finance-company/interfaces/finance-company.repository.interface.d.ts +3 -0
- package/dist/finance-company/interfaces/finance-company.repository.interface.js +3 -0
- package/dist/finance-company/interfaces/finance-company.repository.interface.js.map +1 -0
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +2 -2
- package/dist/journal-entry/journal-entry.js +2 -2
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/ledger-transaction/interfaces/ledger-transaction-attr.interface.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/finance-company-migration.js +45 -0
- package/migrations/finance-customer-migration.js +23 -5
- package/package.json +1 -1
- package/src/customer/customer.ts +38 -26
- package/src/customer/entities/customer.entity.ts +50 -10
- package/src/customer/index.ts +2 -2
- package/src/customer/interfaces/finance-customer-attr.interface.ts +7 -1
- package/src/document/document.ts +1 -1
- package/src/finance-company/entities/finance-company.entity.ts +88 -0
- package/src/finance-company/finance-company.repository.ts +30 -0
- package/src/finance-company/index.ts +11 -1
- package/src/finance-company/interfaces/finance-company-attr.interface.ts +10 -0
- package/src/finance-company/interfaces/finance-company.repository.interface.ts +4 -0
- package/src/journal-entry/interfaces/journal-entry-attr.interface.ts +2 -2
- package/src/journal-entry/journal-entry.ts +2 -2
- package/src/ledger-transaction/interfaces/ledger-transaction-attr.interface.ts +1 -2
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { IAddress, LoginUserBase } from '@tomei/general';
|
|
1
|
+
import { IAddress, IPerson, LoginUserBase } from '@tomei/general';
|
|
2
|
+
import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
|
|
2
3
|
import { FinanceCustomerModel } from './entities/customer.entity';
|
|
3
4
|
import { IFinanceCustomerRepository } from './interfaces/finance-customer.repository.interface';
|
|
4
|
-
export declare abstract class Customer extends
|
|
5
|
-
FullName: string;
|
|
6
|
-
IDNo: string;
|
|
7
|
-
IDType: string;
|
|
8
|
-
ContactNo: string;
|
|
9
|
-
Email: string;
|
|
10
|
-
DefaultAddress: IAddress;
|
|
5
|
+
export declare abstract class Customer extends AccountSystemEntity implements IPerson {
|
|
6
|
+
abstract FullName: string;
|
|
7
|
+
abstract IDNo: string;
|
|
8
|
+
abstract IDType: string;
|
|
9
|
+
abstract ContactNo: string;
|
|
10
|
+
abstract Email: string;
|
|
11
|
+
abstract DefaultAddress: IAddress;
|
|
12
|
+
getDetails(): Promise<{
|
|
13
|
+
FullName: string;
|
|
14
|
+
IDNo: string;
|
|
15
|
+
IDType: string;
|
|
16
|
+
Email: string;
|
|
17
|
+
ContactNo: string;
|
|
18
|
+
}>;
|
|
11
19
|
financeCustomerRepository: IFinanceCustomerRepository;
|
|
12
20
|
CustomerId: string;
|
|
13
|
-
SystemCode: string;
|
|
14
|
-
AccSystemCode: string;
|
|
15
|
-
AccSystemCustomerId: string;
|
|
16
21
|
CustSystemCode: string;
|
|
17
22
|
CustSystemRefId: string;
|
|
18
|
-
constructor(
|
|
19
|
-
abstract
|
|
23
|
+
constructor(sFinanceCompanyId: string, custSystemCode: string, custSystemRefId: string);
|
|
24
|
+
abstract getBillingAddress(): Promise<IAddress>;
|
|
20
25
|
init(person: LoginUserBase): void;
|
|
21
26
|
save(customerId: string, dbTransaction?: any): Promise<FinanceCustomerModel>;
|
|
22
27
|
}
|
|
@@ -2,21 +2,28 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Customer = void 0;
|
|
4
4
|
const general_1 = require("@tomei/general");
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const account_system_entity_1 = require("../account-system-entity/account-system-entity");
|
|
6
|
+
class Customer extends account_system_entity_1.AccountSystemEntity {
|
|
7
|
+
async getDetails() {
|
|
8
|
+
return {
|
|
9
|
+
FullName: this.FullName,
|
|
10
|
+
IDNo: this.IDNo,
|
|
11
|
+
IDType: this.IDType,
|
|
12
|
+
Email: this.Email,
|
|
13
|
+
ContactNo: this.ContactNo,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(sFinanceCompanyId, custSystemCode, custSystemRefId) {
|
|
7
17
|
super();
|
|
8
18
|
const financeCustomerData = this.financeCustomerRepository.findOne({
|
|
9
19
|
where: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
CustomerRefId: custSystemRefId,
|
|
20
|
+
CompanyId: sFinanceCompanyId,
|
|
21
|
+
CustSystemCode: custSystemCode,
|
|
22
|
+
CustSystemRefId: custSystemRefId,
|
|
14
23
|
},
|
|
15
24
|
});
|
|
16
25
|
if (financeCustomerData) {
|
|
17
|
-
this.
|
|
18
|
-
this.AccSystemCode = accSystemCode;
|
|
19
|
-
this.AccSystemCustomerId = financeCustomerData.AccSystemCustomerId;
|
|
26
|
+
this.CompanyId = sFinanceCompanyId;
|
|
20
27
|
this.CustSystemCode = custSystemCode;
|
|
21
28
|
this.CustSystemRefId = custSystemRefId;
|
|
22
29
|
}
|
|
@@ -36,10 +43,8 @@ class Customer extends general_1.LoginUserBase {
|
|
|
36
43
|
async save(customerId, dbTransaction) {
|
|
37
44
|
const data = await this.financeCustomerRepository.create({
|
|
38
45
|
CustomerId: customerId,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
AccSystemCustomerId: this.AccSystemCustomerId,
|
|
42
|
-
CustomerRefId: this.CustSystemRefId,
|
|
46
|
+
CustSystemCode: this.CustSystemCode,
|
|
47
|
+
CustSystemRefId: this.CustSystemRefId,
|
|
43
48
|
}, dbTransaction);
|
|
44
49
|
return data;
|
|
45
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/customer/customer.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/customer/customer.ts"],"names":[],"mappings":";;;AAAA,4CAKwB;AACxB,0FAAqF;AAGrF,MAAsB,QAAS,SAAQ,2CAAmB;IASxD,KAAK,CAAC,UAAU;QAOd,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAQD,YACE,iBAAyB,EACzB,cAAsB,EACtB,eAAuB;QAEvB,KAAK,EAAE,CAAC;QACR,MAAM,mBAAmB,GAAG,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC;YACjE,KAAK,EAAE;gBACL,SAAS,EAAE,iBAAiB;gBAC5B,cAAc,EAAE,cAAc;gBAC9B,eAAe,EAAE,eAAe;aACjC;SACF,CAAC,CAAC;QACH,IAAI,mBAAmB,EAAE;YACvB,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC;YACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;YACrC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC;aAAM;YACL,MAAM,aAAa,GAAG,IAAI,6BAAmB,CAAC,iBAAiB,CAAC,CAAC;YACjE,MAAM,aAAa,CAAC;SACrB;IACH,CAAC;IAOD,IAAI,CAAC,MAAqB;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,IAAI,CACR,UAAkB,EAClB,aAAmB;QAEnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,MAAM,CACtD;YACE,UAAU,EAAE,UAAU;YACtB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,EACD,aAAa,CACd,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlFD,4BAkFC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { FinanceCompanyModel } from '../../finance-company/entities/finance-company.entity';
|
|
2
3
|
export declare class FinanceCustomerModel extends Model {
|
|
3
4
|
CustomerId: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
CompanyId: string;
|
|
6
|
+
CustSystemCode: string;
|
|
7
|
+
CustSystemRefId: string;
|
|
8
|
+
AccSystemRefId: string;
|
|
9
|
+
PostedToAccSystemYN: string;
|
|
10
|
+
PostedById: string;
|
|
11
|
+
PostedDateTime: Date;
|
|
12
|
+
FinanceCompany: FinanceCompanyModel;
|
|
8
13
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.FinanceCustomerModel = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
15
|
+
const finance_company_entity_1 = require("../../finance-company/entities/finance-company.entity");
|
|
15
16
|
let FinanceCustomerModel = class FinanceCustomerModel extends sequelize_typescript_1.Model {
|
|
16
17
|
};
|
|
17
18
|
__decorate([
|
|
@@ -23,50 +24,86 @@ __decorate([
|
|
|
23
24
|
}),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], FinanceCustomerModel.prototype, "CustomerId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CompanyId' }),
|
|
29
|
+
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_entity_1.FinanceCompanyModel),
|
|
30
|
+
(0, sequelize_typescript_1.Column)({
|
|
31
|
+
allowNull: false,
|
|
32
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], FinanceCustomerModel.prototype, "CompanyId", void 0);
|
|
26
36
|
__decorate([
|
|
27
37
|
(0, swagger_1.ApiProperty)({
|
|
28
38
|
type: String,
|
|
29
|
-
description: 'System Code eg. "EZC", "CRM"',
|
|
39
|
+
description: 'Cust System Code eg. "EZC", "CRM"',
|
|
30
40
|
}),
|
|
31
41
|
(0, sequelize_typescript_1.Column)({
|
|
32
42
|
allowNull: false,
|
|
33
|
-
type: sequelize_typescript_1.DataType.STRING(
|
|
43
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
34
44
|
}),
|
|
35
45
|
__metadata("design:type", String)
|
|
36
|
-
], FinanceCustomerModel.prototype, "
|
|
46
|
+
], FinanceCustomerModel.prototype, "CustSystemCode", void 0);
|
|
37
47
|
__decorate([
|
|
38
48
|
(0, swagger_1.ApiProperty)({
|
|
39
49
|
type: String,
|
|
40
|
-
description: '
|
|
50
|
+
description: 'CustSystemRefId',
|
|
41
51
|
}),
|
|
42
52
|
(0, sequelize_typescript_1.Column)({
|
|
43
53
|
allowNull: false,
|
|
44
54
|
type: sequelize_typescript_1.DataType.STRING(30),
|
|
45
55
|
}),
|
|
46
56
|
__metadata("design:type", String)
|
|
47
|
-
], FinanceCustomerModel.prototype, "
|
|
57
|
+
], FinanceCustomerModel.prototype, "CustSystemRefId", void 0);
|
|
48
58
|
__decorate([
|
|
49
59
|
(0, swagger_1.ApiProperty)({
|
|
50
60
|
type: String,
|
|
51
|
-
description: 'Account Customer Id in
|
|
61
|
+
description: 'Account Customer Id in API',
|
|
52
62
|
}),
|
|
53
63
|
(0, sequelize_typescript_1.Column)({
|
|
54
64
|
allowNull: false,
|
|
55
65
|
type: sequelize_typescript_1.DataType.STRING(30),
|
|
56
66
|
}),
|
|
57
67
|
__metadata("design:type", String)
|
|
58
|
-
], FinanceCustomerModel.prototype, "
|
|
68
|
+
], FinanceCustomerModel.prototype, "AccSystemRefId", void 0);
|
|
59
69
|
__decorate([
|
|
60
70
|
(0, swagger_1.ApiProperty)({
|
|
61
71
|
type: String,
|
|
62
|
-
description: '
|
|
72
|
+
description: 'PostedToAccSystemYN',
|
|
73
|
+
example: 'Y',
|
|
63
74
|
}),
|
|
64
75
|
(0, sequelize_typescript_1.Column)({
|
|
65
76
|
allowNull: false,
|
|
77
|
+
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], FinanceCustomerModel.prototype, "PostedToAccSystemYN", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({
|
|
83
|
+
example: '138140891dd211b288d34bc7b4312a49',
|
|
84
|
+
description: 'PostedById',
|
|
85
|
+
}),
|
|
86
|
+
(0, sequelize_typescript_1.Column)({
|
|
87
|
+
allowNull: true,
|
|
66
88
|
type: sequelize_typescript_1.DataType.STRING(30),
|
|
67
89
|
}),
|
|
68
90
|
__metadata("design:type", String)
|
|
69
|
-
], FinanceCustomerModel.prototype, "
|
|
91
|
+
], FinanceCustomerModel.prototype, "PostedById", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
example: new Date(),
|
|
95
|
+
description: 'PostedToAccSystem Date',
|
|
96
|
+
}),
|
|
97
|
+
(0, sequelize_typescript_1.Column)({
|
|
98
|
+
allowNull: true,
|
|
99
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
100
|
+
}),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], FinanceCustomerModel.prototype, "PostedDateTime", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_entity_1.FinanceCompanyModel),
|
|
105
|
+
__metadata("design:type", finance_company_entity_1.FinanceCompanyModel)
|
|
106
|
+
], FinanceCustomerModel.prototype, "FinanceCompany", void 0);
|
|
70
107
|
FinanceCustomerModel = __decorate([
|
|
71
108
|
(0, sequelize_typescript_1.Table)({ tableName: 'finance_Customer', createdAt: false, updatedAt: false })
|
|
72
109
|
], FinanceCustomerModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.entity.js","sourceRoot":"","sources":["../../../src/customer/entities/customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,+
|
|
1
|
+
{"version":3,"file":"customer.entity.js","sourceRoot":"","sources":["../../../src/customer/entities/customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;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C,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACqB;AAEvB;IAAC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,qBAAqB;QAClC,OAAO,EAAE,GAAG;KACb,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;iEAC0B;AAE5B;IAAC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE,YAAY;KAC1B,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACiB;AAEnB;IAAC,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;4DAAC;AAErB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,4CAAmB,CAAC;8BACrB,4CAAmB;4DAAC;AA/EzB,oBAAoB;IADhC,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;GAChE,oBAAoB,CAgFhC;AAhFY,oDAAoB"}
|
package/dist/customer/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Customer } from './customer';
|
|
1
2
|
import { IFinanceCustomerRepository } from './interfaces/finance-customer.repository.interface';
|
|
2
3
|
import { IFinanceCustomerAttr } from './interfaces/finance-customer-attr.interface';
|
|
3
4
|
import { FinanceCustomerModel } from './entities/customer.entity';
|
|
4
5
|
import { ICustomerRepository } from './interfaces/customer.repository.interface';
|
|
5
6
|
import { FinanceCustomerRepository } from './finance-customer.repository';
|
|
6
|
-
|
|
7
|
-
export { IFinanceCustomerRepository, IFinanceCustomerAttr, FinanceCustomerModel, ICustomerRepository, FinanceCustomerRepository, Customer, };
|
|
7
|
+
export { Customer, IFinanceCustomerRepository, IFinanceCustomerAttr, FinanceCustomerModel, ICustomerRepository, FinanceCustomerRepository, };
|
package/dist/customer/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FinanceCustomerRepository = exports.FinanceCustomerModel = exports.Customer = void 0;
|
|
4
|
+
const customer_1 = require("./customer");
|
|
5
|
+
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return customer_1.Customer; } });
|
|
4
6
|
const customer_entity_1 = require("./entities/customer.entity");
|
|
5
7
|
Object.defineProperty(exports, "FinanceCustomerModel", { enumerable: true, get: function () { return customer_entity_1.FinanceCustomerModel; } });
|
|
6
8
|
const finance_customer_repository_1 = require("./finance-customer.repository");
|
|
7
9
|
Object.defineProperty(exports, "FinanceCustomerRepository", { enumerable: true, get: function () { return finance_customer_repository_1.FinanceCustomerRepository; } });
|
|
8
|
-
const customer_1 = require("./customer");
|
|
9
|
-
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return customer_1.Customer; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/customer/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/customer/index.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAQpC,yFARO,mBAAQ,OAQP;AALV,gEAAkE;AAQhE,qGARO,sCAAoB,OAQP;AANtB,+EAA0E;AAQxE,0GARO,uDAAyB,OAQP"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export interface IFinanceCustomerAttr {
|
|
2
2
|
CustomerId: string;
|
|
3
|
-
|
|
3
|
+
CompanyId: string;
|
|
4
|
+
CustSystemCode: string;
|
|
5
|
+
CustSystemRefId: string;
|
|
6
|
+
AccSystemRefId: string;
|
|
7
|
+
PostedToAccSystemYN: string;
|
|
8
|
+
PostedById: string;
|
|
9
|
+
PostedDateTime?: Date;
|
|
4
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="multer" />
|
|
2
2
|
import { IBaseRepository } from '@tomei/general';
|
|
3
3
|
import { IMediasRepository, CommonService as MediaCommonService } from '@tomei/media';
|
|
4
|
-
import { DocType } from '
|
|
4
|
+
import { DocType } from '../enum';
|
|
5
5
|
import { DocumentRepository } from './document.repository';
|
|
6
6
|
import { IDocumentAttr } from './interfaces/document-attr.interface';
|
|
7
7
|
import { DocumentItemRepository } from './document-item.repository';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { FinanceCustomerModel } from '../../customer/entities/customer.entity';
|
|
3
|
+
export declare class FinanceCompanyModel extends Model {
|
|
4
|
+
CompanyId: string;
|
|
5
|
+
CompSystemCode: string;
|
|
6
|
+
CompSystemRefId: string;
|
|
7
|
+
AccSystemCode: string;
|
|
8
|
+
AccSystemRefId: string;
|
|
9
|
+
PostedToAccSystemYN: string;
|
|
10
|
+
PostedById: string;
|
|
11
|
+
PostedDateTime: Date;
|
|
12
|
+
FinanceCustomers: FinanceCustomerModel[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
exports.FinanceCompanyModel = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
15
|
+
const customer_entity_1 = require("../../customer/entities/customer.entity");
|
|
16
|
+
let FinanceCompanyModel = class FinanceCompanyModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CompanyId' }),
|
|
20
|
+
(0, sequelize_typescript_1.Column)({
|
|
21
|
+
primaryKey: true,
|
|
22
|
+
allowNull: false,
|
|
23
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], FinanceCompanyModel.prototype, "CompanyId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({
|
|
29
|
+
type: String,
|
|
30
|
+
description: 'CompanySystemCode',
|
|
31
|
+
}),
|
|
32
|
+
(0, sequelize_typescript_1.Column)({
|
|
33
|
+
allowNull: false,
|
|
34
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], FinanceCompanyModel.prototype, "CompSystemCode", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
type: String,
|
|
41
|
+
description: 'CompanySystemRefId',
|
|
42
|
+
}),
|
|
43
|
+
(0, sequelize_typescript_1.Column)({
|
|
44
|
+
allowNull: false,
|
|
45
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], FinanceCompanyModel.prototype, "CompSystemRefId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
type: String,
|
|
52
|
+
description: 'Account System Code eg. "EZC", "CRM"',
|
|
53
|
+
}),
|
|
54
|
+
(0, sequelize_typescript_1.Column)({
|
|
55
|
+
allowNull: false,
|
|
56
|
+
type: sequelize_typescript_1.DataType.STRING(10),
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], FinanceCompanyModel.prototype, "AccSystemCode", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
type: String,
|
|
63
|
+
description: 'Account Company Id in API',
|
|
64
|
+
}),
|
|
65
|
+
(0, sequelize_typescript_1.Column)({
|
|
66
|
+
allowNull: false,
|
|
67
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], FinanceCompanyModel.prototype, "AccSystemRefId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
type: String,
|
|
74
|
+
description: 'PostedToAccSystemYN',
|
|
75
|
+
example: 'Y',
|
|
76
|
+
}),
|
|
77
|
+
(0, sequelize_typescript_1.Column)({
|
|
78
|
+
allowNull: false,
|
|
79
|
+
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], FinanceCompanyModel.prototype, "PostedToAccSystemYN", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiProperty)({
|
|
85
|
+
example: '138140891dd211b288d34bc7b4312a49',
|
|
86
|
+
description: 'PostedById',
|
|
87
|
+
}),
|
|
88
|
+
(0, sequelize_typescript_1.Column)({
|
|
89
|
+
allowNull: true,
|
|
90
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], FinanceCompanyModel.prototype, "PostedById", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
example: new Date(),
|
|
97
|
+
description: 'PostedToAccSystem Date',
|
|
98
|
+
}),
|
|
99
|
+
(0, sequelize_typescript_1.Column)({
|
|
100
|
+
allowNull: true,
|
|
101
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", Date)
|
|
104
|
+
], FinanceCompanyModel.prototype, "PostedDateTime", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, sequelize_typescript_1.HasMany)(() => customer_entity_1.FinanceCustomerModel),
|
|
107
|
+
__metadata("design:type", Array)
|
|
108
|
+
], FinanceCompanyModel.prototype, "FinanceCustomers", void 0);
|
|
109
|
+
FinanceCompanyModel = __decorate([
|
|
110
|
+
(0, sequelize_typescript_1.Table)({ tableName: 'finance_Company', createdAt: false, updatedAt: false })
|
|
111
|
+
], FinanceCompanyModel);
|
|
112
|
+
exports.FinanceCompanyModel = FinanceCompanyModel;
|
|
113
|
+
//# sourceMappingURL=finance-company.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-company.entity.js","sourceRoot":"","sources":["../../../src/finance-company/entities/finance-company.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAA+E;AAC/E,6EAA+E;AAGxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CAkF7C,CAAA;AAjFC;IAAC,IAAA,qBAAW,E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N,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;gEAC0B;AAE5B;IAAC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,kCAAkC;QAC3C,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;AAEnB;IAAC,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;AAErB;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,sCAAoB,CAAC;;6DACK;AAjF9B,mBAAmB;IAD/B,IAAA,4BAAK,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;GAC/D,mBAAmB,CAkF/B;AAlFY,kDAAmB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseRepository } from '@tomei/general';
|
|
2
|
+
import { FinanceCompanyModel } from './entities/finance-company.entity';
|
|
3
|
+
import { IFinanceCompanyAttr } from './interfaces/finance-company-attr.interface';
|
|
4
|
+
import { IFinanceCompanyRepository } from './interfaces/finance-company.repository.interface';
|
|
5
|
+
export declare class FinanceCompanyRepository extends BaseRepository<FinanceCompanyModel> implements IFinanceCompanyRepository {
|
|
6
|
+
private readonly financeCompanyModel;
|
|
7
|
+
constructor(financeCompanyModel: typeof FinanceCompanyModel);
|
|
8
|
+
create(data: IFinanceCompanyAttr | any, options?: any): Promise<FinanceCompanyModel> | any;
|
|
9
|
+
findOne(options: any): Promise<FinanceCompanyModel>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FinanceCompanyRepository = void 0;
|
|
16
|
+
const decorators_1 = require("@nestjs/common/decorators");
|
|
17
|
+
const sequelize_1 = require("@nestjs/sequelize");
|
|
18
|
+
const general_1 = require("@tomei/general");
|
|
19
|
+
const finance_company_entity_1 = require("./entities/finance-company.entity");
|
|
20
|
+
let FinanceCompanyRepository = class FinanceCompanyRepository extends general_1.BaseRepository {
|
|
21
|
+
constructor(financeCompanyModel) {
|
|
22
|
+
super(financeCompanyModel);
|
|
23
|
+
this.financeCompanyModel = financeCompanyModel;
|
|
24
|
+
}
|
|
25
|
+
create(data, options) {
|
|
26
|
+
return this.financeCompanyModel.create(data, options);
|
|
27
|
+
}
|
|
28
|
+
findOne(options) {
|
|
29
|
+
return this.financeCompanyModel.findOne(options);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
FinanceCompanyRepository = __decorate([
|
|
33
|
+
(0, decorators_1.Injectable)(),
|
|
34
|
+
__param(0, (0, sequelize_1.InjectModel)(finance_company_entity_1.FinanceCompanyModel)),
|
|
35
|
+
__metadata("design:paramtypes", [Object])
|
|
36
|
+
], FinanceCompanyRepository);
|
|
37
|
+
exports.FinanceCompanyRepository = FinanceCompanyRepository;
|
|
38
|
+
//# sourceMappingURL=finance-company.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-company.repository.js","sourceRoot":"","sources":["../../src/finance-company/finance-company.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAuD;AACvD,iDAAgD;AAChD,4CAAgD;AAChD,8EAAwE;AAKjE,IAAM,wBAAwB,GAA9B,MAAM,wBACX,SAAQ,wBAAmC;IAG3C,YAEmB,mBAA+C;QAEhE,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAFV,wBAAmB,GAAnB,mBAAmB,CAA4B;IAGlE,CAAC;IAED,MAAM,CACJ,IAA+B,EAC/B,OAAa;QAEb,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,CAAC,OAAY;QAClB,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AArBY,wBAAwB;IADpC,IAAA,uBAAU,GAAE;IAMR,WAAA,IAAA,uBAAW,EAAC,4CAAmB,CAAC,CAAA;;GALxB,wBAAwB,CAqBpC;AArBY,4DAAwB"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { FinanceCompany } from './finance-company';
|
|
2
|
-
|
|
2
|
+
import { FinanceCompanyModel } from './entities/finance-company.entity';
|
|
3
|
+
import { IFinanceCompanyAttr } from './interfaces/finance-company-attr.interface';
|
|
4
|
+
import { IFinanceCompanyRepository } from './interfaces/finance-company.repository.interface';
|
|
5
|
+
import { FinanceCompanyRepository } from './finance-company.repository';
|
|
6
|
+
export { FinanceCompany, FinanceCompanyModel, IFinanceCompanyAttr, IFinanceCompanyRepository, FinanceCompanyRepository, };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinanceCompany = void 0;
|
|
3
|
+
exports.FinanceCompanyRepository = exports.FinanceCompanyModel = exports.FinanceCompany = void 0;
|
|
4
4
|
const finance_company_1 = require("./finance-company");
|
|
5
5
|
Object.defineProperty(exports, "FinanceCompany", { enumerable: true, get: function () { return finance_company_1.FinanceCompany; } });
|
|
6
|
+
const finance_company_entity_1 = require("./entities/finance-company.entity");
|
|
7
|
+
Object.defineProperty(exports, "FinanceCompanyModel", { enumerable: true, get: function () { return finance_company_entity_1.FinanceCompanyModel; } });
|
|
8
|
+
const finance_company_repository_1 = require("./finance-company.repository");
|
|
9
|
+
Object.defineProperty(exports, "FinanceCompanyRepository", { enumerable: true, get: function () { return finance_company_repository_1.FinanceCompanyRepository; } });
|
|
6
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/finance-company/index.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/finance-company/index.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAOjD,+FAPO,gCAAc,OAOP;AANhB,8EAAwE;AAOtE,oGAPO,4CAAmB,OAOP;AAJrB,6EAAwE;AAOtE,yGAPO,qDAAwB,OAOP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-company-attr.interface.js","sourceRoot":"","sources":["../../../src/finance-company/interfaces/finance-company-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-company.repository.interface.js","sourceRoot":"","sources":["../../../src/finance-company/interfaces/finance-company.repository.interface.ts"],"names":[],"mappings":""}
|
|
@@ -58,7 +58,7 @@ class JournalEntry extends account_system_entity_1.AccountSystemEntity {
|
|
|
58
58
|
this.Description = params.Description;
|
|
59
59
|
this.PostedById = params.PostedById;
|
|
60
60
|
this.PostedToAccSystemYN = params.PostedToAccSystemYN;
|
|
61
|
-
this.
|
|
61
|
+
this.PostedDateTime = params.PostedDateTime;
|
|
62
62
|
}
|
|
63
63
|
getData() {
|
|
64
64
|
return {
|
|
@@ -94,7 +94,7 @@ class JournalEntry extends account_system_entity_1.AccountSystemEntity {
|
|
|
94
94
|
Description: '',
|
|
95
95
|
PostedById: '',
|
|
96
96
|
PostedToAccSystemYN: 'N',
|
|
97
|
-
|
|
97
|
+
PostedDateTime: null,
|
|
98
98
|
});
|
|
99
99
|
const ledgerTransaction = new ledger_transaction_1.LedgerTransaction(this.ledgerTransactionRepository);
|
|
100
100
|
const newLedgerTransaction = await ledgerTransaction.newLedgerTransaction({ transactionType }, this.JournalEntryId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-entry.js","sourceRoot":"","sources":["../../src/journal-entry/journal-entry.ts"],"names":[],"mappings":";;;AACA,8DAA0D;AAI1D,kCAAiD;AACjD,yCAA+B;AAE/B,oEAA+D;AAE/D,MAAa,YAAa,SAAQ,2CAAmB;IAgBnD,YACE,sBAA+C,EAC/C,2BAAyD;QAEzD,KAAK,EAAE,CAAC;QAPF,uBAAkB,GAAQ,IAAI,CAAC;QAC/B,wBAAmB,GAAQ,IAAI,CAAC;QAOtC,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;QAC/D,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IACvD,CAAC;IAED,IAAW,iBAAiB;QAC1B,IAAI,IAAI,CAAC,kBAAkB,KAAK,IAAI,EAAE;YAIpC,IAAI,IAAI,CAAC,cAAc,KAAK,KAAK,EAAE;gBACjC,IAA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