@tomei/finance 0.2.12 → 0.2.14
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.js.map +1 -1
- package/dist/account-system-entity/account-system-entity.js +1 -1
- package/dist/account-system-entity/account-system-entity.js.map +1 -1
- 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-item.d.ts +4 -1
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document.d.ts +1 -1
- package/dist/document/entities/document-item.entity.d.ts +3 -0
- package/dist/document/entities/document-item.entity.js +22 -1
- package/dist/document/entities/document-item.entity.js.map +1 -1
- package/dist/document/interfaces/document-item-attr.interface.d.ts +4 -1
- package/dist/document/interfaces/document-item-attr.interface.js.map +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.d.ts +7 -6
- package/dist/finance-company/finance-company.entity.d.ts +13 -0
- package/dist/finance-company/finance-company.entity.js +66 -0
- package/dist/finance-company/finance-company.entity.js.map +1 -0
- package/dist/finance-company/finance-company.js +43 -22
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/finance-company/finance-company.repository.d.ts +5 -0
- package/dist/finance-company/finance-company.repository.js +13 -0
- package/dist/finance-company/finance-company.repository.js.map +1 -0
- package/dist/finance-company/index.d.ts +2 -1
- package/dist/finance-company/index.js +3 -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/entities/journal-entry.entity.d.ts +5 -1
- package/dist/journal-entry/entities/journal-entry.entity.js +37 -6
- package/dist/journal-entry/entities/journal-entry.entity.js.map +1 -1
- package/dist/journal-entry/interfaces/journal-entry-attr.interface.d.ts +6 -4
- package/dist/journal-entry/journal-entry.d.ts +16 -9
- package/dist/journal-entry/journal-entry.js +36 -9
- 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 +43 -0
- package/migrations/finance-customer-migration.js +23 -5
- package/migrations/finance-document-item-migration.js +18 -6
- package/migrations/finance-journal-entry-migration.js +17 -3
- package/package.json +1 -1
- package/src/account/account.ts +0 -3
- package/src/account-system-entity/account-system-entity.ts +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-item.ts +4 -1
- package/src/document/document.ts +1 -1
- package/src/document/entities/document-item.entity.ts +19 -1
- package/src/document/interfaces/document-item-attr.interface.ts +4 -1
- package/src/finance-company/finance-company.entity.ts +41 -0
- package/src/finance-company/finance-company.repository.ts +12 -0
- package/src/finance-company/finance-company.ts +58 -34
- package/src/finance-company/index.ts +2 -1
- package/src/journal-entry/entities/journal-entry.entity.ts +43 -7
- package/src/journal-entry/interfaces/journal-entry-attr.interface.ts +6 -4
- package/src/journal-entry/journal-entry.ts +53 -19
- package/src/ledger-transaction/interfaces/ledger-transaction-attr.interface.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAEA,4CAAgF;AAEhF,oEAA+D;AAC/D,MAAa,OAAQ,SAAQ,2CAAmB;
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAEA,4CAAgF;AAEhF,oEAA+D;AAC/D,MAAa,OAAQ,SAAQ,2CAAmB;IA2B9C,YACE,iBAAiD,EACjD,SAAkB;QAElB,KAAK,EAAE,CAAC;QArBF,gBAAW,GAAG,IAAI,CAAC;QAsBzB,IAAI,iBAAiB,IAAI,SAAS,EAAE;YAClC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;YAC3C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;gBACjD,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE;aAChC,CAAC,CAAC;YACH,IAAI,WAAW,EAAE;gBACf,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;gBACzB,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC;gBACnD,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;gBACzC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;gBAC/C,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;gBACjD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;gBAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;gBAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;gBAC3C,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;gBACjD,IAAI,CAAC,OAAO,GAAG,WAAW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AAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;SACF;IACH,CAAC;CACF;AAvJD,0BAuJC"}
|
|
@@ -45,7 +45,7 @@ class AccountSystemEntity extends general_1.ObjectBase {
|
|
|
45
45
|
}
|
|
46
46
|
async postToAccSystem(dbTransaction, loginUser) {
|
|
47
47
|
try {
|
|
48
|
-
const company = finance_company_1.FinanceCompany.getFinanceCompany(this.CompanyId);
|
|
48
|
+
const company = await finance_company_1.FinanceCompany.getFinanceCompany(this.CompanyId);
|
|
49
49
|
this._PostedToAccSystemYN = 'Y';
|
|
50
50
|
this._PostedById = loginUser.ObjectId;
|
|
51
51
|
this._PostedDateTime = new Date();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-system-entity.js","sourceRoot":"","sources":["../../src/account-system-entity/account-system-entity.ts"],"names":[],"mappings":";;;AAAA,4CAA4E;AAC5E,wDAAoD;AACpD,uEAAkE;AAClE,+BAAwB;AAExB,MAAsB,mBAAoB,SAAQ,oBAAU;IAA5D;;QACU,eAAU,GAAG,KAAK,CAAC;QACnB,yBAAoB,GAAG,GAAG,CAAC;QAC3B,oBAAe,GAAG,EAAE,CAAC;QACrB,gBAAW,GAAG,EAAE,CAAC;IA4F3B,CAAC;IAvFC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD,IAAc,SAAS,CAAC,KAAa;QACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACnC,CAAC;IAED,IAAI,mBAAmB,CAAC,KAAa;QACnC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACpC,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc,CAAC,KAAa;QAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC/B,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,IAAI,UAAU,CAAC,KAAa;QAC1B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc,CAAC,KAAW;QAC5B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,aAAkB,EAAE,SAAwB;QAChE,IAAI;YAGF,MAAM,OAAO,GAAG,gCAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"account-system-entity.js","sourceRoot":"","sources":["../../src/account-system-entity/account-system-entity.ts"],"names":[],"mappings":";;;AAAA,4CAA4E;AAC5E,wDAAoD;AACpD,uEAAkE;AAClE,+BAAwB;AAExB,MAAsB,mBAAoB,SAAQ,oBAAU;IAA5D;;QACU,eAAU,GAAG,KAAK,CAAC;QACnB,yBAAoB,GAAG,GAAG,CAAC;QAC3B,oBAAe,GAAG,EAAE,CAAC;QACrB,gBAAW,GAAG,EAAE,CAAC;IA4F3B,CAAC;IAvFC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAGD,IAAc,SAAS,CAAC,KAAa;QACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACnC,CAAC;IAED,IAAI,mBAAmB,CAAC,KAAa;QACnC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACpC,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc,CAAC,KAAa;QAC9B,IAAI,CAAC,eAAe,GAAG,KAAK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,IAAI,CAAC,WAAW;gBAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;gBACpC,cAAc,EAAE,IAAI,CAAC,eAAe;aACrC,EACD,EAAE,WAAW,EAAE,aAAa,EAAE,CAC/B,CAAC;SACH;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,GAAG,CAAC;SACX;IACH,CAAC;;AA/FH,kDAgGC;AAzFgB,yCAAqB,GAAG,IAAI,+CAAqB,EAAE,CAAC"}
|
|
@@ -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';
|
|
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_1 = require("../../finance-company");
|
|
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_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_1.FinanceCompanyModel),
|
|
105
|
+
__metadata("design:type", finance_company_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;AAC9C,+DAO8B;AAC9B,2DAA4D;AAGrD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,4BAAK;CAgF9C,CAAA;AA/EC;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EA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,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,qCAAmB,CAAC;8BACrB,qCAAmB;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
|
}
|
|
@@ -10,10 +10,13 @@ export declare class DocumentItem {
|
|
|
10
10
|
ItemSerialNo?: string;
|
|
11
11
|
Currency: string;
|
|
12
12
|
UnitPrice?: number;
|
|
13
|
-
Quantity
|
|
13
|
+
Quantity?: number;
|
|
14
14
|
QuantityUOM?: string;
|
|
15
15
|
Amount: number;
|
|
16
16
|
TaxCode?: string;
|
|
17
|
+
TaxAmount?: number;
|
|
18
|
+
TaxRate?: number;
|
|
19
|
+
TaxInclusiveYN?: string;
|
|
17
20
|
DtAccountNo: string;
|
|
18
21
|
CtAccountNo: string;
|
|
19
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-item.js","sourceRoot":"","sources":["../../src/document/document-item.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"document-item.js","sourceRoot":"","sources":["../../src/document/document-item.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;CAqBxB;AArBD,oCAqBC"}
|
|
@@ -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';
|
|
@@ -17,6 +17,9 @@ export declare class DocumentItemModel extends Model {
|
|
|
17
17
|
QuantityUOM: string;
|
|
18
18
|
Amount: number;
|
|
19
19
|
TaxCode: string;
|
|
20
|
+
TaxAmount: number;
|
|
21
|
+
TaxRate: number;
|
|
22
|
+
TaxInclusiveYN: string;
|
|
20
23
|
DtAccountNo: string;
|
|
21
24
|
CtAccountNo: string;
|
|
22
25
|
Document: DocumentModel;
|
|
@@ -97,7 +97,7 @@ __decorate([
|
|
|
97
97
|
__decorate([
|
|
98
98
|
(0, sequelize_typescript_1.Column)({
|
|
99
99
|
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
100
|
-
allowNull:
|
|
100
|
+
allowNull: true,
|
|
101
101
|
}),
|
|
102
102
|
__metadata("design:type", Number)
|
|
103
103
|
], DocumentItemModel.prototype, "Quantity", void 0);
|
|
@@ -122,6 +122,27 @@ __decorate([
|
|
|
122
122
|
}),
|
|
123
123
|
__metadata("design:type", String)
|
|
124
124
|
], DocumentItemModel.prototype, "TaxCode", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, sequelize_typescript_1.Column)({
|
|
127
|
+
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
128
|
+
allowNull: true,
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", Number)
|
|
131
|
+
], DocumentItemModel.prototype, "TaxAmount", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, sequelize_typescript_1.Column)({
|
|
134
|
+
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
135
|
+
allowNull: true,
|
|
136
|
+
}),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], DocumentItemModel.prototype, "TaxRate", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, sequelize_typescript_1.Column)({
|
|
141
|
+
allowNull: true,
|
|
142
|
+
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
143
|
+
}),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], DocumentItemModel.prototype, "TaxInclusiveYN", void 0);
|
|
125
146
|
__decorate([
|
|
126
147
|
(0, sequelize_typescript_1.ForeignKey)(() => account_entity_1.AccountModel),
|
|
127
148
|
(0, sequelize_typescript_1.Column)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-item.entity.js","sourceRoot":"","sources":["../../../src/document/entities/document-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,uDAAkD;AAClD,0EAAqE;AAG9D,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAK;
|
|
1
|
+
{"version":3,"file":"document-item.entity.js","sourceRoot":"","sources":["../../../src/document/entities/document-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAO8B;AAC9B,uDAAkD;AAClD,0EAAqE;AAG9D,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAK;CAkI3C,CAAA;AAjIC;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;KACjB,CAAC;;yDACqB;AAEvB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,+BAAa,CAAC;IAC/B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACY;AAEd;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;QAC1B,SAAS,EAAE,KAAK;KACjB,CAAC;;+CACW;AAEb;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;QAC1B,SAAS,EAAE,KAAK;KACjB,CAAC;;iDACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;QAC3B,SAAS,EAAE,IAAI;KAChB,CAAC;;sDACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CA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
|
ItemSerialNo?: string;
|
|
11
11
|
Currency: string;
|
|
12
12
|
UnitPrice?: number;
|
|
13
|
-
Quantity
|
|
13
|
+
Quantity?: number;
|
|
14
14
|
QuantityUOM?: string;
|
|
15
15
|
Amount: number;
|
|
16
16
|
TaxCode?: string;
|
|
17
|
+
TaxAmount?: number;
|
|
18
|
+
TaxRate?: number;
|
|
19
|
+
TaxInclusiveYN?: string;
|
|
17
20
|
DtAccountNo: string;
|
|
18
21
|
CtAccountNo: string;
|
|
19
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-item-attr.interface.js","sourceRoot":"","sources":["../../../src/document/interfaces/document-item-attr.interface.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"document-item-attr.interface.js","sourceRoot":"","sources":["../../../src/document/interfaces/document-item-attr.interface.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;CAqB7B;AArBD,8CAqBC"}
|
|
@@ -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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6BAAM,EAAC;QACN,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"}
|
|
@@ -7,28 +7,29 @@ import { Customer, FinanceCustomerRepository } from '../customer';
|
|
|
7
7
|
import { AccountSystemEntity } from '../account-system-entity';
|
|
8
8
|
export declare class FinanceCompany extends AccountSystemEntity {
|
|
9
9
|
private _CompSystemCode;
|
|
10
|
-
private
|
|
10
|
+
private _CompSystemRefId;
|
|
11
11
|
private _AccSystemCode;
|
|
12
12
|
protected BaseRepository: IBaseRepository;
|
|
13
13
|
private static _htFinanceCompanyIds;
|
|
14
14
|
private static _htFinanceCompanies;
|
|
15
|
+
private static financeCompanyRepository;
|
|
15
16
|
journalEntryRepository: JournalEntryRepository;
|
|
16
17
|
financeCustomerRepository: FinanceCustomerRepository;
|
|
17
18
|
ledgerTransactionRepository: LedgerTransactionRepository;
|
|
18
19
|
AccountingSystem: IAccountSystem;
|
|
19
20
|
get CompSystemCode(): string;
|
|
20
21
|
private set CompSystemCode(value);
|
|
21
|
-
get
|
|
22
|
-
set
|
|
22
|
+
get CompSystemRefId(): string;
|
|
23
|
+
set CompSystemRefId(id: string);
|
|
23
24
|
get AccSystemCode(): string;
|
|
24
25
|
private set AccSystemCode(value);
|
|
25
26
|
get ObjectId(): string;
|
|
26
27
|
get ObjectName(): string;
|
|
27
28
|
get TableName(): string;
|
|
28
29
|
private constructor();
|
|
29
|
-
static getFinanceCompanyId(compSystemCode: string,
|
|
30
|
-
static getFinanceCompany(companyId: string): FinanceCompany
|
|
31
|
-
static createFinanceCompany(dbTransaction: any, loginUser: LoginUserBase, compSystemCode: string,
|
|
30
|
+
static getFinanceCompanyId(compSystemCode: string, compSystemRefId: string, accSystemCode: string): Promise<string>;
|
|
31
|
+
static getFinanceCompany(companyId: string): Promise<FinanceCompany>;
|
|
32
|
+
static createFinanceCompany(dbTransaction: any, loginUser: LoginUserBase, compSystemCode: string, compSystemRefId: string, accSystemCode: string): Promise<void>;
|
|
32
33
|
createCustomer(dbTransaction: any, custSystemCode: string, custSystemRefId: string, customer: Customer): Promise<Customer>;
|
|
33
34
|
postJournal(dbTransaction: any, journalEntry: JournalEntry): Promise<void>;
|
|
34
35
|
createAccount(dbTransaction: any, account: Account): Promise<Account>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { FinanceCustomerModel } from '../customer';
|
|
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
|
+
}
|