@tomei/finance 0.3.78 → 0.3.80
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/document/document.js +2 -1
- package/dist/document/document.js.map +1 -1
- package/dist/finance-company/finance-company.js +4 -4
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/models/payment-item.entity.js +1 -0
- package/dist/models/payment-item.entity.js.map +1 -1
- package/dist/payment/payment.js +1 -1
- package/dist/payment/payment.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/finance-payment-item-migration.js +1 -0
- package/package.json +1 -1
- package/src/document/document.ts +2 -1
- package/src/finance-company/finance-company.ts +4 -4
- package/src/models/payment-item.entity.ts +1 -0
- package/src/payment/payment.ts +1 -1
package/package.json
CHANGED
package/src/document/document.ts
CHANGED
|
@@ -132,9 +132,10 @@ export default class Document extends AccountSystemEntity {
|
|
|
132
132
|
this._DbTransaction = dbTransaction;
|
|
133
133
|
}
|
|
134
134
|
if (docNo) {
|
|
135
|
+
this.DocNo = docNo;
|
|
135
136
|
this.RepositoryBase.findOne({
|
|
136
137
|
where: {
|
|
137
|
-
DocNo:
|
|
138
|
+
DocNo: this.DocNo,
|
|
138
139
|
},
|
|
139
140
|
transaction: dbTransaction,
|
|
140
141
|
})
|
|
@@ -1118,7 +1118,7 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
1118
1118
|
{ transaction: dbTransaction },
|
|
1119
1119
|
);
|
|
1120
1120
|
|
|
1121
|
-
|
|
1121
|
+
for (const paymentItem of paymentItems) {
|
|
1122
1122
|
await FinanceCompany._PaymentItemRepository.create(
|
|
1123
1123
|
{
|
|
1124
1124
|
PaymentId: payment.PaymentId,
|
|
@@ -1131,9 +1131,9 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
1131
1131
|
},
|
|
1132
1132
|
{ transaction: dbTransaction },
|
|
1133
1133
|
);
|
|
1134
|
-
}
|
|
1134
|
+
}
|
|
1135
1135
|
|
|
1136
|
-
|
|
1136
|
+
for (const paymentPaidWithItem of paymentPaidWithItems) {
|
|
1137
1137
|
await FinanceCompany._PaymentPaidWithRepository.create(
|
|
1138
1138
|
{
|
|
1139
1139
|
PaymentId: payment.PaymentId,
|
|
@@ -1151,7 +1151,7 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
{ transaction: dbTransaction },
|
|
1153
1153
|
);
|
|
1154
|
-
}
|
|
1154
|
+
}
|
|
1155
1155
|
|
|
1156
1156
|
/*Registering the Journal Entries for the transaction*/
|
|
1157
1157
|
const transactionDate = new Date();
|