[Reservations]Fix issue in PandE.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Mon, 12 Nov 2012 18:03:04 +0100
changeset 18692 f9f27a33fbda
parent 18691 bbe0fdb1193d
child 18693 7b17189c848b
[Reservations]Fix issue in PandE.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/materialmgmt/ob-reservation.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/materialmgmt/ob-reservation.js	Mon Nov 12 11:59:04 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/materialmgmt/ob-reservation.js	Mon Nov 12 18:03:04 2012 +0100
@@ -29,7 +29,7 @@
       quantity = null,
       reservedQty = BigDecimal.prototype.ZERO,
       totalQty = new BigDecimal(String(item.grid.view.parentWindow.activeView.getContextInfo().inpquantity)),
-      totalReleased = new BigDecimal(String(item.grid.view.parentWindow.activeView.getContextInfo().inpreleasedqty)),
+      totalReleased = isc.isA.Number(item.grid.view.parentWindow.activeView.getContextInfo().inpreleasedqty) ? new BigDecimal(String(item.grid.view.parentWindow.activeView.getContextInfo().inpreleasedqty)) : BigDecimal.prototype.ZERO,
       selectedRecords = item.grid.getSelectedRecords(),
       selectedRecordsLength = selectedRecords.length,
       editedRecord = null,