@tomei/finance 0.2.13 → 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/entities/customer.entity.d.ts +1 -1
- package/dist/customer/entities/customer.entity.js +4 -4
- package/dist/customer/entities/customer.entity.js.map +1 -1
- package/dist/document/document-item.d.ts +4 -1
- package/dist/document/document-item.js.map +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/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 +4 -9
- package/dist/finance-company/finance-company.repository.js +5 -30
- package/dist/finance-company/finance-company.repository.js.map +1 -1
- package/dist/finance-company/index.d.ts +2 -5
- package/dist/finance-company/index.js +2 -4
- package/dist/finance-company/index.js.map +1 -1
- 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 +4 -2
- package/dist/journal-entry/journal-entry.d.ts +16 -9
- package/dist/journal-entry/journal-entry.js +34 -7
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/finance-company-migration.js +1 -3
- 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/entities/customer.entity.ts +1 -1
- package/src/document/document-item.ts +4 -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 +5 -23
- package/src/finance-company/finance-company.ts +58 -34
- package/src/finance-company/index.ts +2 -11
- package/src/journal-entry/entities/journal-entry.entity.ts +43 -7
- package/src/journal-entry/interfaces/journal-entry-attr.interface.ts +4 -2
- package/src/journal-entry/journal-entry.ts +51 -17
- package/src/finance-company/entities/finance-company.entity.ts +0 -88
- package/src/finance-company/interfaces/finance-company-attr.interface.ts +0 -10
- package/src/finance-company/interfaces/finance-company.repository.interface.ts +0 -4
|
@@ -12,9 +12,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.JournalEntryModel = 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
|
const ledger_transaction_entity_1 = require("../../ledger-transaction/entities/ledger-transaction.entity");
|
|
16
17
|
let JournalEntryModel = class JournalEntryModel extends sequelize_typescript_1.Model {
|
|
17
18
|
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
example: 'cl6nzvo780000qcw38ihpd8w6',
|
|
22
|
+
description: 'CompanyId',
|
|
23
|
+
}),
|
|
24
|
+
(0, sequelize_typescript_1.ForeignKey)(() => finance_company_1.FinanceCompanyModel),
|
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
|
26
|
+
allowNull: false,
|
|
27
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], JournalEntryModel.prototype, "CompanyId", void 0);
|
|
18
31
|
__decorate([
|
|
19
32
|
(0, swagger_1.ApiProperty)({ type: String, description: 'JournalEntryId' }),
|
|
20
33
|
(0, sequelize_typescript_1.Column)({
|
|
@@ -56,23 +69,37 @@ __decorate([
|
|
|
56
69
|
], JournalEntryModel.prototype, "Description", void 0);
|
|
57
70
|
__decorate([
|
|
58
71
|
(0, swagger_1.ApiProperty)({
|
|
59
|
-
|
|
60
|
-
description: '
|
|
72
|
+
type: String,
|
|
73
|
+
description: 'Account Customer Id in API',
|
|
74
|
+
}),
|
|
75
|
+
(0, sequelize_typescript_1.Column)({
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
61
78
|
}),
|
|
62
|
-
(0, sequelize_typescript_1.Column)({ allowNull: false, type: sequelize_typescript_1.DataType.STRING(30) }),
|
|
63
79
|
__metadata("design:type", String)
|
|
64
|
-
], JournalEntryModel.prototype, "
|
|
80
|
+
], JournalEntryModel.prototype, "AccSystemRefId", void 0);
|
|
65
81
|
__decorate([
|
|
66
82
|
(0, swagger_1.ApiProperty)({
|
|
67
|
-
|
|
83
|
+
example: 'N',
|
|
68
84
|
description: 'PostedToAccSystemYN',
|
|
69
85
|
}),
|
|
70
86
|
(0, sequelize_typescript_1.Column)({
|
|
71
87
|
allowNull: false,
|
|
72
|
-
type: sequelize_typescript_1.DataType.
|
|
88
|
+
type: sequelize_typescript_1.DataType.ENUM('Y', 'N'),
|
|
73
89
|
}),
|
|
74
90
|
__metadata("design:type", String)
|
|
75
91
|
], JournalEntryModel.prototype, "PostedToAccSystemYN", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
example: '138140891dd211b288',
|
|
95
|
+
description: 'PostedById',
|
|
96
|
+
}),
|
|
97
|
+
(0, sequelize_typescript_1.Column)({
|
|
98
|
+
allowNull: false,
|
|
99
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
100
|
+
}),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], JournalEntryModel.prototype, "PostedById", void 0);
|
|
76
103
|
__decorate([
|
|
77
104
|
(0, swagger_1.ApiProperty)({
|
|
78
105
|
example: new Date(),
|
|
@@ -88,6 +115,10 @@ __decorate([
|
|
|
88
115
|
(0, sequelize_typescript_1.HasMany)(() => ledger_transaction_entity_1.LedgerTransactionModel),
|
|
89
116
|
__metadata("design:type", Array)
|
|
90
117
|
], JournalEntryModel.prototype, "LedgerTransactions", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, sequelize_typescript_1.BelongsTo)(() => finance_company_1.FinanceCompanyModel),
|
|
120
|
+
__metadata("design:type", finance_company_1.FinanceCompanyModel)
|
|
121
|
+
], JournalEntryModel.prototype, "FinanceCompany", void 0);
|
|
91
122
|
JournalEntryModel = __decorate([
|
|
92
123
|
(0, sequelize_typescript_1.Table)({
|
|
93
124
|
tableName: 'finance_JournalEntry',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-entry.entity.js","sourceRoot":"","sources":["../../../src/journal-entry/entities/journal-entry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,+
|
|
1
|
+
{"version":3,"file":"journal-entry.entity.js","sourceRoot":"","sources":["../../../src/journal-entry/entities/journal-entry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,+DAQ8B;AAC9B,2DAA4D;AAC5D,2GAAqG;AAM9F,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAK;CA4F3C,CAAA;AA3FC;IAAC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,WAAW;KACzB,CAAC;IACD,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qCAAmB,CAAC;IACrC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;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E,GAAG;QACZ,WAAW,EAAE,qBAAqB;KACnC,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC;KAC9B,CAAC;;8DAC0B;AAE5B;IAAC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EAAE,YAAY;KAC1B,CAAC;IACD,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;qDACiB;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;yDAAC;AAErB;IAAC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,kDAAsB,CAAC;;6DACO;AAE7C;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qCAAmB,CAAC;8BACrB,qCAAmB;yDAAC;AA3FzB,iBAAiB;IAJ7B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,KAAK;KAClB,CAAC;GACW,iBAAiB,CA4F7B;AA5FY,8CAAiB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export interface IJournalEntryAttr {
|
|
2
|
+
CompanyId: string;
|
|
2
3
|
JournalEntryId: string;
|
|
3
|
-
Date
|
|
4
|
+
Date?: Date;
|
|
4
5
|
Name: string;
|
|
5
6
|
Description?: string;
|
|
6
|
-
|
|
7
|
+
AccSystemRefId?: string;
|
|
7
8
|
PostedToAccSystemYN: string;
|
|
9
|
+
PostedById?: string;
|
|
8
10
|
PostedDateTime?: Date;
|
|
9
11
|
}
|
|
@@ -4,22 +4,29 @@ import { JournalEntryRepository } from './journal-entry.repository';
|
|
|
4
4
|
import { IJournalEntryAttr } from './interfaces/journal-entry-attr.interface';
|
|
5
5
|
import { JournalEntryModel } from './entities/journal-entry.entity';
|
|
6
6
|
import { AccountSystemEntity } from '../account-system-entity';
|
|
7
|
+
import { IBaseRepository } from '@tomei/general';
|
|
7
8
|
export declare class JournalEntry extends AccountSystemEntity {
|
|
8
|
-
|
|
9
|
-
protected BaseRepository: any;
|
|
10
|
-
ObjectId: string;
|
|
11
|
-
ObjectName: string;
|
|
12
|
-
JournalEntryId: string;
|
|
9
|
+
private _JournalEntryId;
|
|
13
10
|
Date: Date;
|
|
14
11
|
Name: string;
|
|
15
12
|
Description: string;
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
private _JournalEntryModel;
|
|
14
|
+
protected _BaseRepository: IBaseRepository;
|
|
15
|
+
_TableName: string;
|
|
16
|
+
_ObjectId: string;
|
|
17
|
+
_ObjectName: string;
|
|
18
18
|
journalEntryRepository: JournalEntryRepository;
|
|
19
19
|
ledgerTransactionRepository: LedgerTransactionRepository;
|
|
20
20
|
private _DebitTransactions;
|
|
21
21
|
private _CreditTransactions;
|
|
22
|
-
|
|
22
|
+
get JournalEntryId(): string;
|
|
23
|
+
private set JournalEntryId(value);
|
|
24
|
+
get BaseRepository(): IBaseRepository<JournalEntryModel>;
|
|
25
|
+
get TableName(): string;
|
|
26
|
+
get ObjectName(): string;
|
|
27
|
+
get ObjectId(): string;
|
|
28
|
+
constructor(dbTransaction: any);
|
|
29
|
+
constructor(dbTransaction: any, journalEntryId: string);
|
|
23
30
|
get DebitTransactions(): any;
|
|
24
31
|
get CreditTransactions(): any;
|
|
25
32
|
init(params: IJournalEntryAttr): void;
|
|
@@ -30,7 +37,7 @@ export declare class JournalEntry extends AccountSystemEntity {
|
|
|
30
37
|
Description: string;
|
|
31
38
|
PostedById: string;
|
|
32
39
|
PostedToAccSystemYN: string;
|
|
33
|
-
|
|
40
|
+
PostedDateTime: Date;
|
|
34
41
|
};
|
|
35
42
|
create(): Promise<any>;
|
|
36
43
|
save(userId: string, dbTransaction?: any): Promise<JournalEntryModel>;
|
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.JournalEntry = void 0;
|
|
4
|
+
const cuid = require("cuid");
|
|
5
|
+
const sequelize_1 = require("sequelize");
|
|
4
6
|
const ledger_transaction_1 = require("../ledger-transaction");
|
|
5
7
|
const enum_1 = require("../enum");
|
|
6
|
-
const
|
|
8
|
+
const journal_entry_entity_1 = require("./entities/journal-entry.entity");
|
|
7
9
|
const account_system_entity_1 = require("../account-system-entity");
|
|
8
10
|
class JournalEntry extends account_system_entity_1.AccountSystemEntity {
|
|
9
|
-
|
|
11
|
+
get JournalEntryId() {
|
|
12
|
+
return this._JournalEntryId;
|
|
13
|
+
}
|
|
14
|
+
set JournalEntryId(id) {
|
|
15
|
+
this._JournalEntryId = id;
|
|
16
|
+
}
|
|
17
|
+
get BaseRepository() {
|
|
18
|
+
return this._JournalEntryModel;
|
|
19
|
+
}
|
|
20
|
+
get TableName() {
|
|
21
|
+
return 'finance_JournalEntry';
|
|
22
|
+
}
|
|
23
|
+
get ObjectName() {
|
|
24
|
+
return this.Name;
|
|
25
|
+
}
|
|
26
|
+
get ObjectId() {
|
|
27
|
+
return this._JournalEntryId;
|
|
28
|
+
}
|
|
29
|
+
constructor(dbTransaction, journalEntryId) {
|
|
10
30
|
super();
|
|
31
|
+
this._JournalEntryModel = new journal_entry_entity_1.JournalEntryModel();
|
|
11
32
|
this._DebitTransactions = null;
|
|
12
33
|
this._CreditTransactions = null;
|
|
13
|
-
this.
|
|
14
|
-
|
|
34
|
+
this.journalEntryRepository = this.ledgerTransactionRepository.findOne({
|
|
35
|
+
where: {
|
|
36
|
+
JournalEntryId: journalEntryId,
|
|
37
|
+
},
|
|
38
|
+
transaction: dbTransaction,
|
|
39
|
+
});
|
|
15
40
|
}
|
|
16
41
|
get DebitTransactions() {
|
|
17
42
|
if (this._DebitTransactions === null) {
|
|
@@ -68,7 +93,7 @@ class JournalEntry extends account_system_entity_1.AccountSystemEntity {
|
|
|
68
93
|
Description: this.Description,
|
|
69
94
|
PostedById: this.PostedById,
|
|
70
95
|
PostedToAccSystemYN: this.PostedToAccSystemYN,
|
|
71
|
-
|
|
96
|
+
PostedDateTime: this.PostedDateTime,
|
|
72
97
|
};
|
|
73
98
|
}
|
|
74
99
|
async create() {
|
|
@@ -82,18 +107,20 @@ class JournalEntry extends account_system_entity_1.AccountSystemEntity {
|
|
|
82
107
|
Description: this.Description,
|
|
83
108
|
PostedById: userId,
|
|
84
109
|
PostedToAccSystemYN: this.PostedToAccSystemYN,
|
|
85
|
-
|
|
110
|
+
PostedDateTime: this.PostedDateTime,
|
|
86
111
|
}, dbTransaction);
|
|
87
112
|
return data;
|
|
88
113
|
}
|
|
89
114
|
async newLedgerTransaction({ transactionType, }) {
|
|
90
115
|
this.init({
|
|
116
|
+
CompanyId: cuid(),
|
|
91
117
|
JournalEntryId: 'New',
|
|
92
118
|
Date: new Date(),
|
|
93
119
|
Name: '',
|
|
94
120
|
Description: '',
|
|
95
|
-
|
|
121
|
+
AccSystemRefId: '',
|
|
96
122
|
PostedToAccSystemYN: 'N',
|
|
123
|
+
PostedById: '',
|
|
97
124
|
PostedDateTime: null,
|
|
98
125
|
});
|
|
99
126
|
const ledgerTransaction = new ledger_transaction_1.LedgerTransaction(this.ledgerTransactionRepository);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-entry.js","sourceRoot":"","sources":["../../src/journal-entry/journal-entry.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"journal-entry.js","sourceRoot":"","sources":["../../src/journal-entry/journal-entry.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,yCAA+B;AAE/B,8DAA0D;AAI1D,kCAAiD;A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