@tomei/finance 0.6.44 → 0.6.45
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/finance-company/finance-company.js +4 -4
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/finance-journal-entry-migration.js +4 -0
- package/migrations/finance-ledger-transaction-migration.js +0 -4
- package/package.json +1 -1
- package/src/finance-company/finance-company.ts +4 -4
package/package.json
CHANGED
|
@@ -1396,8 +1396,8 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
1396
1396
|
debitLT.Date = transactionDate;
|
|
1397
1397
|
debitLT.Description = 'Payment Received'; //customer.FullName;
|
|
1398
1398
|
debitLT.Name = customer.FullName;
|
|
1399
|
-
debitLT.RelatedObjectId =
|
|
1400
|
-
debitLT.RelatedObjectType = payment
|
|
1399
|
+
debitLT.RelatedObjectId = payment.PaymentId;
|
|
1400
|
+
debitLT.RelatedObjectType = type(payment);
|
|
1401
1401
|
debitLT.RelatedPaymentId = payment.PaymentId;
|
|
1402
1402
|
|
|
1403
1403
|
const creditLT = await journalEntry.newLedgerTransaction(
|
|
@@ -1415,8 +1415,8 @@ export default class FinanceCompany extends ObjectBase {
|
|
|
1415
1415
|
creditLT.Date = transactionDate;
|
|
1416
1416
|
creditLT.Description = 'Payment Received'; //paymentMethodType.Name;
|
|
1417
1417
|
creditLT.Name = paymentMethodType.Name;
|
|
1418
|
-
creditLT.RelatedObjectId =
|
|
1419
|
-
creditLT.RelatedObjectType = payment
|
|
1418
|
+
creditLT.RelatedObjectId = payment.PaymentId;
|
|
1419
|
+
creditLT.RelatedObjectType = type(payment);
|
|
1420
1420
|
creditLT.RelatedPaymentId = payment.PaymentId;
|
|
1421
1421
|
|
|
1422
1422
|
await this.postJournal(dbTransaction, journalEntry, loginUser);
|