shareneus 1.5.24 → 1.5.26

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.
@@ -191,17 +191,24 @@ class ReceiptPDFService {
191
191
  data = data + Ids[i];
192
192
  }
193
193
  }
194
- if (!tr_utils_1.TrUtils.IsEmpty(data)) {
194
+ if (!tr_utils_1.TrUtils.IsEmpty(data) || RefundAmt > 0) {
195
195
  if (IsRepairOrder) {
196
196
  toward = 'RO - ' + data;
197
197
  }
198
198
  else {
199
- toward = 'INVOICE - ' + data;
200
- if (RefundAmt > 0) {
201
- toward += ' (refunded Rs.' + RefundAmt + ' )';
199
+ if (tr_utils_1.TrUtils.IsEmpty(data)) {
200
+ if (RefundAmt > 0) {
201
+ toward += '(refunded Rs.' + RefundAmt + ' )';
202
+ }
203
+ }
204
+ else {
205
+ toward = 'INVOICE - ' + data;
206
+ if (RefundAmt > 0) {
207
+ toward += ', (refunded Rs.' + RefundAmt + ' )';
208
+ }
202
209
  }
203
210
  if (RemAmt > 0) {
204
- toward += ' (remaining Rs.' + RemAmt + ' as advance)';
211
+ toward += ', (remaining Rs.' + RemAmt + ' as advance)';
205
212
  }
206
213
  }
207
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.24",
3
+ "version": "1.5.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",