@tomei/finance 0.5.2 → 0.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/finance",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -255,7 +255,6 @@ export default class Account extends AccountSystemEntity {
255
255
  transaction: dbTransaction,
256
256
  },
257
257
  );
258
- //
259
258
  console.log(data, '<><><><><><><> DATA THAT GETS CREATED <><><><><><><>');
260
259
  }
261
260
 
@@ -288,10 +288,12 @@ export default abstract class FinanceCustomerBase
288
288
  dbTransaction = await FinanceDb.getConnection().transaction();
289
289
  }
290
290
 
291
+ const AR = await this.AccountReceivable;
292
+
291
293
  const ledgerTransactions =
292
294
  await FinanceCustomerBase._LedgerTransactionRepository.findAll({
293
295
  where: {
294
- AccountNo: (await this.AccountReceivable).AccountNo,
296
+ AccountNo: AR.AccountNo,
295
297
  },
296
298
  transaction: dbTransaction,
297
299
  });
@@ -456,7 +456,6 @@ export default class FinanceCompany extends ObjectBase {
456
456
  'Finance Company Create Account: After accSystemAccountId Create',
457
457
  );
458
458
 
459
- account.PostedToAccSystemYN = 'Y';
460
459
  console.log('Finance Company Create Account: Before new Account Create');
461
460
  const newAccount = await account.save(
462
461
  this.CompanyId,