diff --git a/application/controllers/inwardgateregister.php b/application/controllers/inwardgateregister.php index 475ef28d..2d866bb5 100755 --- a/application/controllers/inwardgateregister.php +++ b/application/controllers/inwardgateregister.php @@ -129,13 +129,13 @@ class inwardgateregister extends BaseController for ($i = 1; $i <= $RowCount; $i++) { - $MaterialCode = $this->input->post('MaterialCode'.$i); + $MaterialCode = trim($this->input->post('MaterialCode'.$i)); - $QuantityAsPerInvoice = $this->input->post('txtQuantityAsPerInvoice'.$i); + $QuantityAsPerInvoice = trim($this->input->post('txtQuantityAsPerInvoice'.$i)); - $OrderedQuantity = $this->input->post('OrderedQuantity'.$i); + $OrderedQuantity = trim($this->input->post('OrderedQuantity'.$i)); - $ReceivedQty = $this->input->post('txtReceivedQuantity'.$i); + $ReceivedQty = trim($this->input->post('txtReceivedQuantity'.$i)); $PendingQty = $this->input->post('txtPendingQty'.$i); //echo $QuantityAsPerInvoice;