@tomei/finance 0.6.85 → 0.6.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer/customer.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/customer/customer.ts +9 -0
- package/src/finance-company/finance-company.ts +2 -2
package/package.json
CHANGED
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 {
|