ps-toolkit-ui 1.14.61 → 1.14.63

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.
@@ -1449,6 +1449,9 @@
1449
1449
  var d = parseInt(dt.substring(6, dt.length - 2), 10);
1450
1450
  return moment__namespace(d).locale('fa').format('jYYYY/jMM/jDD HH:mm');
1451
1451
  };
1452
+ HelperClass.ToPrice = function (l, cv) {
1453
+ return parseFloat(cv).toLocaleString() + ' ' + l('Rial');
1454
+ };
1452
1455
  HelperClass.getFileSize = function (bytes) {
1453
1456
  var suffix = ['B', 'KB', 'MB', 'GB', 'TB'];
1454
1457
  var dblSByte = bytes;
@@ -3478,7 +3481,7 @@
3478
3481
  }
3479
3482
  else if (col.type === exports.TableCollType.Price) {
3480
3483
  try {
3481
- return parseFloat(cv).toLocaleString() + ' ' + this.table.l('Rial');
3484
+ return HelperClass.ToPrice(this.table.l, cv);
3482
3485
  }
3483
3486
  catch (_a) { }
3484
3487
  }