stock issue

This commit is contained in:
venbatechnologies@gmail.com 2018-11-14 12:07:16 +05:30
parent 7429e62d0d
commit e3fd4d6af8
2 changed files with 15 additions and 6 deletions

View File

@ -1318,6 +1318,9 @@ class batchcard extends BaseController
$data['packsupplier'] = $this->batchcard_model->Pacsupplier();
//print_r($data['packagematerial']);die();
$this->global['pageTitle'] = 'Siddharth : Finished Product Batch Card';
$this->loadViews("editFinalProduct", $this->global,$data,NULL);
// $this->loadViews("finaledit", $this->global,$data,NULL);
@ -1941,6 +1944,9 @@ class batchcard extends BaseController
$packvalue = $this->input->post('packprice'.$i);
$packlineId = $this->input->post('packId'.$i);
//echo $packmaterial;echo $packsupplier;
$beforepacqty = $this->input->post('beforepackQty'.$i);

View File

@ -433,7 +433,10 @@ $(function() {
foreach($rawmaterial as $raw){
$index= $index+1;
$basicPrice = ($raw->Quantity)*($raw->Price);
$rawtotal = number_format(( $rawtotal+$basicPrice),2); ?>
$rawtotal = $rawtotal+$basicPrice;
?>
<tr id="rawmat<?php echo $index ; ?>">
<td><?php echo $index;?></td>
<td id="rawmaterialedit<?php echo $index?>"><?php echo $raw->MaterialCode."-".$raw->MaterialName?></td>
@ -1960,8 +1963,8 @@ $('.CounterEditItem').click(function()
document.getElementById('packmaterialbasic'+cuserid).innerHTML = basicprice.toFixed(2);
$('#packmaterialcode'+cuserid).val(editpackmaterialcode);
$('#packSupplierID'+cuserid).val(editpackSupplierID);
//$('#packmaterialcode'+cuserid).val(editpackmaterialcode);
//$('#packSupplierID'+cuserid).val(editpackSupplierID);
$('#packQty'+cuserid).val(editpackQty);
$('#packprice'+cuserid).val(editpackprice);