@tomei/finance 0.3.0 → 0.3.1
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 +24 -27
- package/dist/account/account.js +47 -67
- 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 +1 -1
- package/dist/document/document-item.js +1 -2
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document-item.repository.d.ts +2 -2
- package/dist/document/document-item.repository.js +1 -1
- package/dist/document/document.d.ts +14 -16
- package/dist/document/document.js +50 -38
- 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/finance-company/finance-company.d.ts +5 -8
- package/dist/finance-company/finance-company.js +10 -15
- 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 +5 -7
- package/dist/journal-entry/journal-entry.js +8 -9
- 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/ledger-transaction.d.ts +1 -1
- package/dist/ledger-transaction/ledger-transaction.js +1 -2
- package/dist/ledger-transaction/ledger-transaction.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 +46 -48
- package/dist/payment/payment.js +105 -126
- 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 +22 -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 +10 -0
- package/dist/payment-method/payment-method.js +15 -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 +14 -0
- package/dist/payment-method-type/payment-method-type.js +15 -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 +79 -100
- 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 +2 -2
- package/src/document/document-item.ts +1 -1
- package/src/document/document.repository.ts +5 -35
- package/src/document/document.ts +66 -55
- 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/finance-company/finance-company.repository.ts +3 -3
- package/src/finance-company/finance-company.ts +14 -26
- 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 +13 -16
- package/src/ledger-transaction/ledger-transaction.ts +1 -1
- 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 +150 -179
- 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 +58 -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 +20 -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 +24 -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,38 +1,35 @@
|
|
|
1
|
-
import { IAccountRepository } from './interfaces/account.repository.interface';
|
|
2
|
-
import { ObjectBase, LoginUserBase } from '@tomei/general';
|
|
3
|
-
import { IBaseRepository } from '@tomei/general/dist/interfaces/repository.base.interface';
|
|
4
1
|
import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
|
|
5
2
|
import AccountModel from '../models/account.entity';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ObjectId: string;
|
|
9
|
-
ObjectName: string;
|
|
10
|
-
accountRepository: IAccountRepository;
|
|
3
|
+
import { AccountRepository } from './account.repository';
|
|
4
|
+
export default class Account extends AccountSystemEntity {
|
|
11
5
|
AccountNo: string;
|
|
12
|
-
|
|
13
|
-
RelatedObject: ObjectBase;
|
|
14
|
-
TableName: string;
|
|
15
|
-
private isNewRecord;
|
|
16
|
-
private OwnerId;
|
|
17
|
-
private OwnerType;
|
|
18
|
-
private RelatedObjectId;
|
|
19
|
-
private RelatedObjectType;
|
|
20
|
-
private ParentAccountNo;
|
|
21
|
-
SystemCode: string;
|
|
22
|
-
AccSystemCode: string;
|
|
6
|
+
ParentAccountNo?: string;
|
|
23
7
|
Name: string;
|
|
24
8
|
Description: string;
|
|
25
9
|
AccountType: string;
|
|
26
10
|
AccountSubtype: string;
|
|
27
|
-
|
|
11
|
+
OwnerId: string;
|
|
12
|
+
OwnerType: string;
|
|
13
|
+
RelatedObjectId: string;
|
|
14
|
+
RelatedObjectType: string;
|
|
28
15
|
CreatedById: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
CreatedAt: Date;
|
|
17
|
+
UpdatedAt: Date;
|
|
18
|
+
UpdatedById: string;
|
|
19
|
+
private static _RepositoryBase;
|
|
20
|
+
_TableName: string;
|
|
21
|
+
_ObjectId: string;
|
|
22
|
+
_ObjectName: string;
|
|
23
|
+
private _IsNewRecord;
|
|
24
|
+
private get IsNewRecord();
|
|
25
|
+
private set IsNewRecord(value);
|
|
26
|
+
get RepositoryBase(): AccountRepository;
|
|
27
|
+
get ObjectId(): string;
|
|
28
|
+
get ObjectName(): string;
|
|
29
|
+
get TableName(): string;
|
|
30
|
+
constructor(dbTransaction: any);
|
|
31
|
+
constructor(dbTransaction: any, accountNo: string);
|
|
34
32
|
validateAccountValue(): void;
|
|
35
|
-
|
|
33
|
+
isParentAccountExists(): boolean;
|
|
36
34
|
save(AccSystemRefId: string, userId: string, dbTransaction?: any): Promise<AccountModel>;
|
|
37
|
-
getAccountNo(): Promise<string>;
|
|
38
35
|
}
|
package/dist/account/account.js
CHANGED
|
@@ -9,63 +9,69 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Account = void 0;
|
|
13
12
|
const general_1 = require("@tomei/general");
|
|
14
13
|
const account_system_entity_1 = require("../account-system-entity/account-system-entity");
|
|
14
|
+
const account_repository_1 = require("./account.repository");
|
|
15
15
|
class Account extends account_system_entity_1.AccountSystemEntity {
|
|
16
|
-
|
|
16
|
+
get IsNewRecord() {
|
|
17
|
+
return this._IsNewRecord;
|
|
18
|
+
}
|
|
19
|
+
set IsNewRecord(record) {
|
|
20
|
+
this._IsNewRecord = record;
|
|
21
|
+
}
|
|
22
|
+
get RepositoryBase() {
|
|
23
|
+
return Account._RepositoryBase;
|
|
24
|
+
}
|
|
25
|
+
get ObjectId() {
|
|
26
|
+
return this.AccountNo;
|
|
27
|
+
}
|
|
28
|
+
get ObjectName() {
|
|
29
|
+
return this.Name;
|
|
30
|
+
}
|
|
31
|
+
get TableName() {
|
|
32
|
+
return 'finance_Account';
|
|
33
|
+
}
|
|
34
|
+
constructor(dbTransaction, accountNo) {
|
|
17
35
|
super();
|
|
18
|
-
this.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
this._IsNewRecord = true;
|
|
37
|
+
this.RepositoryBase.findOne({
|
|
38
|
+
where: {
|
|
39
|
+
AccountNo: accountNo,
|
|
40
|
+
},
|
|
41
|
+
transaction: dbTransaction,
|
|
42
|
+
})
|
|
43
|
+
.then((accountData) => {
|
|
25
44
|
if (accountData) {
|
|
26
|
-
this.
|
|
45
|
+
this.IsNewRecord = false;
|
|
46
|
+
this.CompanyId = accountData.CompanyId;
|
|
27
47
|
this.ParentAccountNo = accountData.ParentAccountNo;
|
|
28
|
-
this.SystemCode = accountData.SystemCode;
|
|
29
|
-
this.AccSystemCode = accountData.AccSystemCode;
|
|
30
|
-
this.AccSystemRefId = accountData.AccSystemRefId;
|
|
31
48
|
this.Name = accountData.Name;
|
|
32
49
|
this.Description = accountData.Description;
|
|
33
50
|
this.AccountType = accountData.AccountType;
|
|
34
|
-
this.AccountSubtype = accountData.
|
|
51
|
+
this.AccountSubtype = accountData.AccountSubType;
|
|
35
52
|
this.OwnerId = accountData.OwnerId;
|
|
36
53
|
this.OwnerType = accountData.OwnerType;
|
|
37
54
|
this.RelatedObjectId = accountData.RelatedObjectId;
|
|
38
55
|
this.RelatedObjectType = accountData.RelatedObjectType;
|
|
39
|
-
this.
|
|
56
|
+
this.CreatedById = accountData.CreatedById;
|
|
57
|
+
this.CreatedAt = accountData.CreatedAt;
|
|
58
|
+
this.UpdatedById = accountData.UpdatedById;
|
|
59
|
+
this.UpdatedAt = accountData.UpdatedAt;
|
|
60
|
+
this.AccSystemRefId = accountData.AccSystemRefId;
|
|
61
|
+
this.PostedToAccSystemYN = accountData.PostedToAccSystemYN;
|
|
62
|
+
this.PostedById = accountData.PostedById;
|
|
63
|
+
this.PostedDateTime = accountData.PostedDateTime;
|
|
40
64
|
}
|
|
41
65
|
else {
|
|
42
66
|
const notFoundError = new general_1.RecordNotFoundError('No Record Found.');
|
|
43
67
|
throw notFoundError;
|
|
44
68
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
get name() {
|
|
51
|
-
return this.Name;
|
|
52
|
-
}
|
|
53
|
-
get accountType() {
|
|
54
|
-
return this.AccountType;
|
|
55
|
-
}
|
|
56
|
-
get accountSubType() {
|
|
57
|
-
return this.AccountSubtype;
|
|
58
|
-
}
|
|
59
|
-
get parentAccountNo() {
|
|
60
|
-
return this.ParentAccountNo;
|
|
69
|
+
})
|
|
70
|
+
.catch((err) => {
|
|
71
|
+
console.log('Account Class constructor err: ', err);
|
|
72
|
+
});
|
|
61
73
|
}
|
|
62
74
|
validateAccountValue() {
|
|
63
|
-
if (!this.SystemCode) {
|
|
64
|
-
throw new Error('SystemCode is required.');
|
|
65
|
-
}
|
|
66
|
-
if (!this.AccSystemCode) {
|
|
67
|
-
throw new Error('AccSystemCode is required.');
|
|
68
|
-
}
|
|
69
75
|
if (!this.AccSystemRefId) {
|
|
70
76
|
throw new Error('AccSystemAccountId is required.');
|
|
71
77
|
}
|
|
@@ -73,7 +79,7 @@ class Account extends account_system_entity_1.AccountSystemEntity {
|
|
|
73
79
|
throw new Error('AccountType is required.');
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
|
|
82
|
+
isParentAccountExists() {
|
|
77
83
|
if (this.ParentAccountNo)
|
|
78
84
|
return true;
|
|
79
85
|
return false;
|
|
@@ -81,10 +87,8 @@ class Account extends account_system_entity_1.AccountSystemEntity {
|
|
|
81
87
|
save(AccSystemRefId, userId, dbTransaction) {
|
|
82
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
89
|
this.AccSystemRefId = AccSystemRefId;
|
|
84
|
-
const data = yield this.
|
|
90
|
+
const data = yield this.RepositoryBase.create({
|
|
85
91
|
AccountNo: this.AccountNo,
|
|
86
|
-
SystemCode: this.SystemCode,
|
|
87
|
-
AccSystemCode: this.AccSystemCode,
|
|
88
92
|
AccSystemRefId: this.AccSystemRefId,
|
|
89
93
|
Name: this.Name,
|
|
90
94
|
Description: this.Description,
|
|
@@ -100,31 +104,7 @@ class Account extends account_system_entity_1.AccountSystemEntity {
|
|
|
100
104
|
return data;
|
|
101
105
|
});
|
|
102
106
|
}
|
|
103
|
-
getAccountNo() {
|
|
104
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
if (this.AccountNo) {
|
|
106
|
-
return this.AccountNo;
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
try {
|
|
110
|
-
const account = yield this.accountRepository.findOne({
|
|
111
|
-
OwnerId: this.OwnerId,
|
|
112
|
-
AccSystemRefId: this.AccSystemRefId,
|
|
113
|
-
});
|
|
114
|
-
if (account) {
|
|
115
|
-
this.AccountNo = account.AccountNo;
|
|
116
|
-
return this.AccountNo;
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
throw new Error('Account need to be created first.');
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
catch (error) {
|
|
123
|
-
throw error;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
107
|
}
|
|
129
|
-
exports.
|
|
108
|
+
exports.default = Account;
|
|
109
|
+
Account._RepositoryBase = new account_repository_1.AccountRepository();
|
|
130
110
|
//# sourceMappingURL=account.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IAccountAttr, ICreateAccountAttr } from './interfaces/account-attr.interface';
|
|
3
|
-
import { IAccountRepository } from './interfaces/account.repository.interface';
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
4
2
|
import AccountModel from '../models/account.entity';
|
|
5
|
-
export declare class AccountRepository extends
|
|
6
|
-
|
|
7
|
-
constructor(accountModel: typeof AccountModel);
|
|
8
|
-
create(data: ICreateAccountAttr, options?: any): Promise<AccountModel> | any;
|
|
9
|
-
findAll(options: any): Promise<AccountModel[]>;
|
|
10
|
-
findAllWithPagination(options: any): Promise<{
|
|
11
|
-
count: number;
|
|
12
|
-
rows: AccountModel[];
|
|
13
|
-
}>;
|
|
14
|
-
findOne(options: any): Promise<AccountModel>;
|
|
15
|
-
update(data: IAccountAttr, options?: any): any;
|
|
3
|
+
export declare class AccountRepository extends RepositoryBase<AccountModel> implements IRepositoryBase<AccountModel> {
|
|
4
|
+
constructor();
|
|
16
5
|
}
|
|
@@ -1,47 +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.AccountRepository = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const sequelize_1 = require("@nestjs/sequelize");
|
|
18
4
|
const general_1 = require("@tomei/general");
|
|
19
5
|
const account_entity_1 = require("../models/account.entity");
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
23
|
-
this.accountModel = accountModel;
|
|
6
|
+
class AccountRepository extends general_1.RepositoryBase {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(account_entity_1.default);
|
|
24
9
|
}
|
|
25
|
-
|
|
26
|
-
return this.accountModel.create(Object.assign({}, data), options);
|
|
27
|
-
}
|
|
28
|
-
findAll(options) {
|
|
29
|
-
return this.accountModel.findAll(options);
|
|
30
|
-
}
|
|
31
|
-
findAllWithPagination(options) {
|
|
32
|
-
return this.accountModel.findAndCountAll(options);
|
|
33
|
-
}
|
|
34
|
-
findOne(options) {
|
|
35
|
-
return this.accountModel.findOne(options);
|
|
36
|
-
}
|
|
37
|
-
update(data, options) {
|
|
38
|
-
return this.accountModel.update(Object.assign({}, data), options);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
AccountRepository = __decorate([
|
|
42
|
-
(0, common_1.Injectable)(),
|
|
43
|
-
__param(0, (0, sequelize_1.InjectModel)(account_entity_1.default)),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], AccountRepository);
|
|
10
|
+
}
|
|
46
11
|
exports.AccountRepository = AccountRepository;
|
|
47
12
|
//# sourceMappingURL=account.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.repository.js","sourceRoot":"","sources":["../../src/account/account.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.repository.js","sourceRoot":"","sources":["../../src/account/account.repository.ts"],"names":[],"mappings":";;;AAAA,4CAAiE;AACjE,6DAAoD;AAEpD,MAAa,iBACX,SAAQ,wBAA4B;IAGpC;QACE,KAAK,CAAC,wBAAY,CAAC,CAAC;IACtB,CAAC;CACF;AAPD,8CAOC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { ObjectBase, LoginUserBase } from '@tomei/general';
|
|
2
2
|
export interface IAccountAttr {
|
|
3
3
|
AccountNo: string;
|
|
4
|
-
|
|
4
|
+
CompanyId: string;
|
|
5
|
+
ParentAccountNo?: string;
|
|
5
6
|
Name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Description?: string;
|
|
8
|
+
AccountType: string;
|
|
9
|
+
AccountSubType?: string;
|
|
10
|
+
OwnerId?: string;
|
|
11
|
+
OwnerType?: string;
|
|
12
|
+
RelatedObjectId?: string;
|
|
13
|
+
RelatedObjectType?: string;
|
|
10
14
|
CreatedAt: Date;
|
|
11
15
|
CreatedById: string;
|
|
12
|
-
UpdatedAt
|
|
13
|
-
UpdatedById
|
|
16
|
+
UpdatedAt?: Date;
|
|
17
|
+
UpdatedById?: string;
|
|
18
|
+
AccSystemRefId: string;
|
|
19
|
+
PostedToAccSystemYN: string;
|
|
20
|
+
PostedById?: string;
|
|
21
|
+
PostedDateTime?: Date;
|
|
14
22
|
}
|
|
15
23
|
export interface ICreateAccountAttr {
|
|
16
24
|
Owner: LoginUserBase;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRepositoryBase, LoginUserBase, ObjectBase } from '@tomei/general';
|
|
2
2
|
export declare abstract class AccountSystemEntity extends ObjectBase {
|
|
3
3
|
private _CompanyId;
|
|
4
4
|
private _PostedToAccSystemYN;
|
|
5
5
|
private _AccSystemRefId;
|
|
6
6
|
private _PostedById;
|
|
7
7
|
private _PostedDateTime;
|
|
8
|
-
protected abstract
|
|
8
|
+
protected abstract RepositoryBase: IRepositoryBase<any>;
|
|
9
9
|
private static PostHistoryRepository;
|
|
10
10
|
get CompanyId(): string;
|
|
11
11
|
protected set CompanyId(value: string);
|
|
@@ -66,7 +66,7 @@ let AccountSystemEntity = AccountSystemEntity_1 = class AccountSystemEntity exte
|
|
|
66
66
|
this._PostedToAccSystemYN = 'Y';
|
|
67
67
|
this._PostedById = loginUser.ObjectId;
|
|
68
68
|
this._PostedDateTime = new Date();
|
|
69
|
-
const entity = yield this.
|
|
69
|
+
const entity = yield this.RepositoryBase.findByPk(this.ObjectId);
|
|
70
70
|
const updated = yield entity.update({
|
|
71
71
|
PostedToAccSystemYN: this._PostedToAccSystemYN,
|
|
72
72
|
PostedById: this._PostedById,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
2
|
import FinancePostHistoryModel from '../models/post-history.entity';
|
|
3
|
-
export declare class PostHistoryRepository extends
|
|
3
|
+
export declare class PostHistoryRepository extends RepositoryBase<FinancePostHistoryModel> implements IRepositoryBase<FinancePostHistoryModel> {
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PostHistoryRepository = void 0;
|
|
4
4
|
const general_1 = require("@tomei/general");
|
|
5
5
|
const post_history_entity_1 = require("../models/post-history.entity");
|
|
6
|
-
class PostHistoryRepository extends general_1.
|
|
6
|
+
class PostHistoryRepository extends general_1.RepositoryBase {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(post_history_entity_1.default);
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IAddress,
|
|
1
|
+
import { IAddress, IRepositoryBase, IPerson, LoginUserBase } from '@tomei/general';
|
|
2
2
|
import FinanceCustomerModel from '../models/customer.entity';
|
|
3
3
|
import { IFinanceCustomerRepository } from './interfaces/finance-customer.repository.interface';
|
|
4
4
|
import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
|
|
5
|
-
export
|
|
5
|
+
export default abstract class FinanceCustomerBase extends AccountSystemEntity implements IPerson {
|
|
6
6
|
abstract FullName: string;
|
|
7
7
|
abstract IDNo: string;
|
|
8
8
|
abstract IDType: string;
|
|
@@ -20,7 +20,7 @@ export declare abstract class FinanceCustomerBase extends AccountSystemEntity im
|
|
|
20
20
|
CustomerId: string;
|
|
21
21
|
CustSystemCode: string;
|
|
22
22
|
CustSystemRefId: string;
|
|
23
|
-
|
|
23
|
+
RepositoryBase: IRepositoryBase<any>;
|
|
24
24
|
constructor(custSystemRefId: string, custSystemCode: string, sFinanceCompanyId: string);
|
|
25
25
|
abstract getBillingAddress(): Promise<IAddress>;
|
|
26
26
|
init(person: LoginUserBase): void;
|
|
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FinanceCustomerBase = void 0;
|
|
13
12
|
const general_1 = require("@tomei/general");
|
|
14
13
|
const account_system_entity_1 = require("../account-system-entity/account-system-entity");
|
|
15
14
|
class FinanceCustomerBase extends account_system_entity_1.AccountSystemEntity {
|
|
@@ -62,5 +61,5 @@ class FinanceCustomerBase extends account_system_entity_1.AccountSystemEntity {
|
|
|
62
61
|
});
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
|
-
exports.
|
|
64
|
+
exports.default = FinanceCustomerBase;
|
|
66
65
|
//# sourceMappingURL=customer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/customer/customer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/customer/customer.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4CAMwB;AAGxB,0FAAqF;AAGrF,MAA8B,mBAC5B,SAAQ,2CAAmB;IAWrB,UAAU;;YAOd,OAAO;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,CAAC;QACJ,CAAC;KAAA;IASD,YACE,eAAuB,EACvB,cAAsB,EACtB,iBAAyB;QAEzB,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;IAEK,IAAI,CACR,UAAkB,EAClB,aAAmB;;YAEnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,MAAM,CACtD;gBACE,UAAU,EAAE,UAAU;gBACtB,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,eAAe,EAAE,IAAI,CAAC,eAAe;aACtC,EACD,aAAa,CACd,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;CACF;AAtFD,sCAsFC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RepositoryBase } from '@tomei/general';
|
|
2
2
|
import FinanceCustomerModel from '../models/customer.entity';
|
|
3
3
|
import { IFinanceCustomerAttr } from './interfaces/finance-customer-attr.interface';
|
|
4
4
|
import { IFinanceCustomerRepository } from './interfaces/finance-customer.repository.interface';
|
|
5
|
-
export declare class FinanceCustomerRepository extends
|
|
5
|
+
export declare class FinanceCustomerRepository extends RepositoryBase<FinanceCustomerModel> implements IFinanceCustomerRepository {
|
|
6
6
|
private readonly financeCustomerModel;
|
|
7
7
|
constructor(financeCustomerModel: typeof FinanceCustomerModel);
|
|
8
8
|
create(data: IFinanceCustomerAttr | any, options?: any): Promise<FinanceCustomerModel> | any;
|
|
@@ -17,7 +17,7 @@ const decorators_1 = require("@nestjs/common/decorators");
|
|
|
17
17
|
const sequelize_1 = require("@nestjs/sequelize");
|
|
18
18
|
const general_1 = require("@tomei/general");
|
|
19
19
|
const customer_entity_1 = require("../models/customer.entity");
|
|
20
|
-
let FinanceCustomerRepository = class FinanceCustomerRepository extends general_1.
|
|
20
|
+
let FinanceCustomerRepository = class FinanceCustomerRepository extends general_1.RepositoryBase {
|
|
21
21
|
constructor(financeCustomerModel) {
|
|
22
22
|
super(financeCustomerModel);
|
|
23
23
|
this.financeCustomerModel = financeCustomerModel;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRepositoryBase } from '@tomei/general';
|
|
2
2
|
import FinanceCustomerModel from '../../models/customer.entity';
|
|
3
|
-
export type IFinanceCustomerRepository =
|
|
3
|
+
export type IFinanceCustomerRepository = IRepositoryBase<FinanceCustomerModel>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-item.js","sourceRoot":"","sources":["../../src/document/document-item.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-item.js","sourceRoot":"","sources":["../../src/document/document-item.ts"],"names":[],"mappings":";;AAAA,MAAqB,YAAY;CAqBhC;AArBD,+BAqBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RepositoryBase } from '@tomei/general';
|
|
2
2
|
import DocumentItemModel from '../models/document-item.entity';
|
|
3
3
|
import { IDocumentItemAttr } from './interfaces/document-item-attr.interface';
|
|
4
4
|
import { IDocumentItemRepository } from './interfaces/document-item.repository.interface';
|
|
5
|
-
export declare class DocumentItemRepository extends
|
|
5
|
+
export declare class DocumentItemRepository extends RepositoryBase<DocumentItemModel> implements IDocumentItemRepository {
|
|
6
6
|
private readonly documentItemModel;
|
|
7
7
|
constructor(documentItemModel: typeof DocumentItemModel);
|
|
8
8
|
create(data: IDocumentItemAttr, options?: any): Promise<DocumentItemModel> | any;
|
|
@@ -17,7 +17,7 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const sequelize_1 = require("@nestjs/sequelize");
|
|
18
18
|
const general_1 = require("@tomei/general");
|
|
19
19
|
const document_item_entity_1 = require("../models/document-item.entity");
|
|
20
|
-
let DocumentItemRepository = class DocumentItemRepository extends general_1.
|
|
20
|
+
let DocumentItemRepository = class DocumentItemRepository extends general_1.RepositoryBase {
|
|
21
21
|
constructor(documentItemModel) {
|
|
22
22
|
super(documentItemModel);
|
|
23
23
|
this.documentItemModel = documentItemModel;
|
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
/// <reference types="multer" />
|
|
2
|
-
import { IBaseRepository } from '@tomei/general';
|
|
3
2
|
import { IMediasRepository, CommonService as MediaCommonService, MediasModel } from '@tomei/media';
|
|
4
3
|
import { DocumentStatus, DocType } from '../enum';
|
|
5
4
|
import { IDocumentAttr } from './interfaces/document-attr.interface';
|
|
6
5
|
import { DocumentItemRepository } from './document-item.repository';
|
|
7
|
-
import
|
|
8
|
-
import { IDocumentRepository } from './interfaces/document.repository.interface';
|
|
6
|
+
import DocumentItem from './document-item';
|
|
9
7
|
import { AccountSystemEntity } from '../account-system-entity/account-system-entity';
|
|
10
|
-
import
|
|
11
|
-
export
|
|
8
|
+
import { DocumentRepository } from './document.repository';
|
|
9
|
+
export default class Document extends AccountSystemEntity {
|
|
12
10
|
DocNo: string;
|
|
13
11
|
private _DocType;
|
|
14
12
|
private _DocDate;
|
|
15
13
|
Currency: string;
|
|
16
14
|
Amount: number;
|
|
17
15
|
Description: string;
|
|
16
|
+
private _Status;
|
|
18
17
|
IssuedById: string;
|
|
19
18
|
IssuedToId: string;
|
|
20
19
|
IssuedToType: string;
|
|
21
20
|
CreatedById: string;
|
|
22
21
|
CreatedAt: Date;
|
|
23
|
-
UpdatedById
|
|
24
|
-
UpdatedAt
|
|
22
|
+
UpdatedById: string;
|
|
23
|
+
UpdatedAt: Date;
|
|
25
24
|
UseAccSystemDocYN: string;
|
|
26
|
-
private _documentRepository;
|
|
27
|
-
protected _BaseRepository: IBaseRepository;
|
|
28
|
-
_ObjectId: string;
|
|
29
|
-
_ObjectName: string;
|
|
30
|
-
_TableName: string;
|
|
31
25
|
private _DocHTMLFileMediaId;
|
|
32
26
|
private _DocPDFFileMediaId;
|
|
33
|
-
private
|
|
34
|
-
|
|
27
|
+
private static _RepositoryBase;
|
|
28
|
+
_TableName: string;
|
|
29
|
+
_ObjectId: string;
|
|
30
|
+
_ObjectName: string;
|
|
31
|
+
private _IsNewRecord;
|
|
35
32
|
private _DocumentItems;
|
|
36
|
-
documentRepository: IDocumentRepository;
|
|
37
33
|
documentItemRepository: DocumentItemRepository;
|
|
38
34
|
mediaRepository: IMediasRepository;
|
|
39
35
|
mediaCommonService: MediaCommonService;
|
|
36
|
+
private get IsNewRecord();
|
|
37
|
+
private set IsNewRecord(value);
|
|
40
38
|
get DocType(): DocType;
|
|
41
39
|
private set DocType(value);
|
|
42
40
|
get DocDate(): Date;
|
|
@@ -47,7 +45,7 @@ export declare class Document extends AccountSystemEntity {
|
|
|
47
45
|
private set DocPDFFileMediaId(value);
|
|
48
46
|
get Status(): DocumentStatus;
|
|
49
47
|
private set Status(value);
|
|
50
|
-
get
|
|
48
|
+
get RepositoryBase(): DocumentRepository;
|
|
51
49
|
get ObjectId(): string;
|
|
52
50
|
get ObjectName(): string;
|
|
53
51
|
get TableName(): string;
|