//new commitment remarks if (isset($_POST['hcodes'])) { $hcodes = $_POST['hcodes']; } //heat codes for updating if (isset($_POST['bmcid'])) { $bmcid = $_POST['bmcid']; } if (isset($_POST['dddb'])) { $dddb = $_POST['dddb']; } if (isset($_POST['ddremark'])) { $ddremark = $_POST['ddremark']; } if (isset($_POST['batchprogress'])) { $bn->setBatchUnderProgress($_POST['batchprogress']); } $bn->saveBatch(); $i = 0; if (isset($cddb)) { $j = count($cddb); } else { $j = ''; } if ($j != '') { while ($i < $j) { $bn->setBatchID($_POST['Batch_ID']); $bn->setCommitedDate($cddb[$i]); $bn->setCommitedQty($cqty[$i]); $bn->setCommitedRemarks($cremark[$i]); $bn->saveCommitment();