@tomei/finance 0.6.85 → 0.6.87
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 +2 -0
- package/dist/account/account.js.map +1 -1
- package/dist/customer/customer.js +9 -0
- package/dist/customer/customer.js.map +1 -1
- package/dist/finance-company/finance-company.d.ts +1 -1
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/account/account.ts +2 -0
- package/src/customer/customer.ts +9 -0
- package/src/finance-company/finance-company.ts +2 -2
package/package.json
CHANGED
package/src/account/account.ts
CHANGED
|
@@ -238,6 +238,7 @@ export default class Account extends AccountSystemEntity {
|
|
|
238
238
|
this.RelatedObjectId = data.RelatedObjectId;
|
|
239
239
|
this.RelatedObjectType = data.RelatedObjectType;
|
|
240
240
|
this.PostedToAccSystemYN = data.PostedToAccSystemYN;
|
|
241
|
+
this.ParentAccountNo = data.ParentAccountNo;
|
|
241
242
|
this.CreatedAt = data.CreatedAt;
|
|
242
243
|
this.CreatedById = data.CreatedById;
|
|
243
244
|
this.UpdatedAt = new Date();
|
|
@@ -258,6 +259,7 @@ export default class Account extends AccountSystemEntity {
|
|
|
258
259
|
RelatedObjectId: this.RelatedObjectId,
|
|
259
260
|
RelatedObjectType: this.RelatedObjectType,
|
|
260
261
|
PostedToAccSystemYN: this.PostedToAccSystemYN,
|
|
262
|
+
ParentAccountNo: this.ParentAccountNo,
|
|
261
263
|
CreatedAt: new Date(),
|
|
262
264
|
UpdatedAt: new Date(),
|
|
263
265
|
CreatedById: userId,
|
package/src/customer/customer.ts
CHANGED
|
@@ -134,10 +134,19 @@ export default abstract class FinanceCustomerBase
|
|
|
134
134
|
this._AccountReceivable = new Account(transaction);
|
|
135
135
|
if (accountData) {
|
|
136
136
|
this._AccountReceivable.AccountNo = accountData.AccountNo;
|
|
137
|
+
this._AccountReceivable.AccSystemRefId = accountData.AccSystemRefId;
|
|
138
|
+
this._AccountReceivable.Name = accountData.Name;
|
|
139
|
+
this._AccountReceivable.Description = accountData.Description;
|
|
137
140
|
this._AccountReceivable.ParentAccountNo = accountData.ParentAccountNo;
|
|
138
141
|
this._AccountReceivable.AccountType = accountData.AccountType;
|
|
139
142
|
this._AccountReceivable.OwnerId = accountData.OwnerId;
|
|
140
143
|
this._AccountReceivable.OwnerType = accountData.OwnerType;
|
|
144
|
+
this._AccountReceivable.RelatedObjectId = accountData.RelatedObjectId;
|
|
145
|
+
this._AccountReceivable.RelatedObjectType = accountData.RelatedObjectType;
|
|
146
|
+
this._AccountReceivable.CreatedById = accountData.CreatedById;
|
|
147
|
+
this._AccountReceivable.CreatedAt = accountData.CreatedAt;
|
|
148
|
+
this._AccountReceivable.UpdatedById = accountData.UpdatedById;
|
|
149
|
+
this._AccountReceivable.UpdatedAt = accountData.UpdatedAt;
|
|
141
150
|
} else {
|
|
142
151
|
// this._AccountReceivable.AccountNo = `${this.CustSystemCode}-AR-123456789`;
|
|
143
152
|
// this._AccountReceivable.ParentAccountNo = `${this.CustSystemCode}-AR`;
|
|
@@ -282,11 +282,11 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
282
282
|
return FinanceCompany._htFinanceCompanies.get(companyId);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
async createCustomer(
|
|
285
|
+
async createCustomer<T extends FinanceCustomerBase>(
|
|
286
286
|
dbTransaction: any,
|
|
287
287
|
custSystemCode: string,
|
|
288
288
|
custSystemRefId: string,
|
|
289
|
-
customer:
|
|
289
|
+
customer: T,
|
|
290
290
|
loginUser: LoginUser,
|
|
291
291
|
) {
|
|
292
292
|
try {
|