@react-pakistan/util-functions 1.23.56 → 1.23.59

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.
@@ -120,11 +120,11 @@ var postPayment = function (_a) { return __awaiter(void 0, [_a], void 0, functio
120
120
  allPaymentsForInvoice = _c.sent();
121
121
  calculateBalance = function () {
122
122
  if (paymentType === 'PARTIAL_AMOUNT') {
123
- return allPaymentsForInvoice && allPaymentsForInvoice
123
+ return allPaymentsForInvoice && invoice.total - Number(amount) - allPaymentsForInvoice
124
124
  .reduce(function (acc, _a) {
125
125
  var paymentAmount = _a.amount;
126
126
  return acc + paymentAmount;
127
- }, 0) - invoice.total;
127
+ }, 0);
128
128
  }
129
129
  return 0;
130
130
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.23.56",
3
+ "version": "1.23.59",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {