@tomei/finance 0.6.72 → 0.6.74

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.6.72",
3
+ "version": "0.6.74",
4
4
  "description": "NestJS package for finance module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -343,7 +343,7 @@ export default class Document extends AccountSystemEntity {
343
343
 
344
344
  //updated Status to DocumentStatus.SETTLED if Params.AmountToReduce equals to document.Amount.
345
345
  let updatedStatus;
346
- if (AmountToReduce === document.Amount) {
346
+ if (AmountToReduce == document.Amount) {
347
347
  updatedStatus = DocumentStatus.SETTLED;
348
348
  } else {
349
349
  updatedStatus = DocumentStatus.PARTIALSETTLED;
@@ -1084,7 +1084,7 @@ export default class FinanceCompany extends ObjectBase {
1084
1084
  await Document.settleByCreditNote(
1085
1085
  loginUser,
1086
1086
  dbTransaction,
1087
- docItem.DocNo,
1087
+ docItem.ItemId,
1088
1088
  docItem.Amount,
1089
1089
  );
1090
1090
  }