|
- |
+ |
- |
+
+
+
+
+
+ format('d-m-Y');
+ echo $CreatedDate; ?> |
+
+
+
|
|
@@ -1165,6 +1185,8 @@ $(function() {
+
+
@@ -1317,11 +1339,12 @@ $('.addraw').click(function()
{
var rawmaterialcode= $('#rawmaterialcode').val();
var rawSupplierID = $('#rawSupplier').val();
+ //var suppliername = $('#rawsuppliername').val();
var rawQty = $('#rawqty').val();
var rawprice = $('#rawprice').val();
var rawsuppliername = rawSupplier.options[rawSupplier.selectedIndex].text;
- //alert(rawsuppliername);
+ // alert(suppliername);
index = parseInt(index)+1;
var temp = index
@@ -1339,6 +1362,7 @@ $('.addraw').click(function()
addHidden(theForm,"rawQty"+temp,rawQty);
addHidden(theForm,"rawprice"+temp,rawprice);
addHidden(theForm,"type"+temp,"Raw Material");
+ addHidden(theForm,"rawSuppliername"+temp,rawsuppliername);
$('#rawmaterialcode').val('');
$('#rawSupplier').val('');
@@ -1380,8 +1404,11 @@ $('.EditItem').click(function()
//alert("tr"+tr)
//var cellval = tr.cells;
+ var suppliername=$('#rawSuppliername'+userid).val();
+ //alert(suppliername);
+
document.getElementById('rawmaterialedit'+userid).innerHTML = rawmaterialcode;
- document.getElementById('rawsuppliername'+userid).innerHTML = rawSupplierID;
+ document.getElementById('rawsuppliername'+userid).innerHTML = rawSupplierID+"-"+suppliername;
document.getElementById('rawQuantiy'+userid).innerHTML = rawQty;
document.getElementById('rawmaterialPrice'+userid).innerHTML = rawprice;
@@ -1422,6 +1449,7 @@ $('.rootaddClick').click(function()
addHidden(theForm,"consumeQty"+temp,consuQty);
addHidden(theForm,"consumeprice"+temp,consuprice);
addHidden(theForm,"consumetype"+temp,"Consumable");
+ addHidden(theForm,"consumeSuppliername"+temp,rawsuppliername);
$('#consumaterialcode').val('');
$('#consuSupplier').val('');
@@ -1454,6 +1482,7 @@ $('.rootEditItem').click(function()
var editrawprice = $('#Editconsuprice').val();
var tr= document.getElementById(rootuserid);
+ var supname = $('#consumeSuppliername'+rootuserid).val();
// var cellval = tr.cells;
// cellval[1].innerHTML = editconsumaterialcode;
// cellval[2].innerHTML = editconsuSupplierID;
@@ -1462,7 +1491,7 @@ $('.rootEditItem').click(function()
document.getElementById('consumaterial'+rootuserid).innerHTML = editconsumaterialcode;
- document.getElementById('consusuppliername'+rootuserid).innerHTML = editconsuSupplierID;
+ document.getElementById('consusuppliername'+rootuserid).innerHTML = editconsuSupplierID+"-"+supname;
document.getElementById('consuQuantiy'+rootuserid).innerHTML = editconsuQty;
document.getElementById('consumaterialPrice'+rootuserid).innerHTML = editrawprice;
@@ -1497,6 +1526,7 @@ $('.CounteraddClick').click(function()
addHidden(theForm,"packQty"+temp,packQty);
addHidden(theForm,"packprice"+temp,packprice);
addHidden(theForm,"packtype"+temp,"Packaging");
+ addHidden(theForm,"packSuppliernamee"+temp,packsuppliername);
$('#packumaterialcode').val('');
$('#packSupplier').val('');
@@ -1536,6 +1566,7 @@ $('.CounterEditItem').click(function()
var tr= document.getElementById(cuserid);
//var cellval = tr.cells;
//alert(cuserid)
+ var supple = $('#packSuppliernamee'+cuserid).val();
// cellval[1].innerHTML = editpackmaterialcode;
// cellval[2].innerHTML = editpacksuppliername;
@@ -1545,7 +1576,7 @@ $('.CounterEditItem').click(function()
document.getElementById('packmaterial'+cuserid).innerHTML = editpackmaterialcode;
- document.getElementById('packsuppliername'+cuserid).innerHTML = editpackSupplierID;
+ document.getElementById('packsuppliername'+cuserid).innerHTML = editpackSupplierID+"-"+supple;
document.getElementById('packQuantiy'+cuserid).innerHTML = editpackQty;
document.getElementById('packmaterialPrice'+cuserid).innerHTML = editpackprice;
@@ -1581,6 +1612,7 @@ $('.CoaddClick').click(function()
addHidden(theForm,"CopQty"+temp,copQty);
addHidden(theForm,"Copprice"+temp,copprice);
addHidden(theForm,"Coptype"+temp,"CoProduct");
+ addHidden(theForm,"Copmaterialname"+temp,copsuppliername)
$('#coproduct_id').val('');
$('#CopDate').val('');
@@ -1622,6 +1654,8 @@ $('.CoEditItem').click(function()
var tr= document.getElementById(cuserid);
//var cellval = tr.cells;
//alert(cuserid)
+
+ var prname = $('#Copmaterialname'+cuserid).val();
// cellval[1].innerHTML = editcopproduct;
// cellval[2].innerHTML = editcopdate;
@@ -1629,7 +1663,7 @@ $('.CoEditItem').click(function()
// cellval[4].innerHTML = editcopprice;
- document.getElementById('Copmaterial'+cuserid).innerHTML = editcoproductid;
+ document.getElementById('Copmaterial'+cuserid).innerHTML = editcoproductid+"-"+prname;
document.getElementById('Copsuppliername'+cuserid).innerHTML = newdate;
document.getElementById('CopQuantiy'+cuserid).innerHTML = editcopqty;
document.getElementById('CopmaterialPrice'+cuserid).innerHTML = editcopprice;
diff --git a/application/views/editmaterialadjustment.php b/application/views/editmaterialadjustment.php
index 2287315e..c036d0b7 100644
--- a/application/views/editmaterialadjustment.php
+++ b/application/views/editmaterialadjustment.php
@@ -16,7 +16,7 @@ if(!empty($materailAdjustmentlist))
{
$editid = $mat->AdjustmentId;
$supplier = $mat->SupplierID;
- $suppliername=$mat->SupplierName;
+ $suppliername=$mat->SupplierName;
$materialcode = $mat->MaterialCode;
$date = $mat->CreatedOn;
$editquantity= $mat->Quantity;
@@ -24,6 +24,7 @@ if(!empty($materailAdjustmentlist))
// $edit_Adjustable_qty= '';
$edit_Description= $mat->Description;
+ $edit_reason= $mat->Reason;
}
}
@@ -237,7 +238,7 @@ $(function() {
'Select');
+ $options = array("0"=>'Select',"1"=>'Stock on fire',"2"=>'Stolen goods',"3"=>'Damaged Goods',"4"=>'Stock written off',"5"=>'Stock taking results',"6"=>'Inventory revaluation');
// if(!empty($PONO))
// {
@@ -304,6 +305,10 @@ $(function() {