uploadfile
This commit is contained in:
parent
dd19057792
commit
9e356ffcc4
@ -400,16 +400,16 @@ function addfile1()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($POStatus==SPECIAL_PO){
|
|
||||||
|
|
||||||
$file =$this->addfile1();
|
|
||||||
|
|
||||||
$myfile = array('FilePath'=>$file,'MaterialCode'=>$MaterialCode,'PONO'=>$PONO);
|
|
||||||
$result= $this->purchaseorder_model->fileupload($myfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if($POStatus==SPECIAL_PO){
|
||||||
|
|
||||||
|
$file =$this->addfile1();
|
||||||
|
|
||||||
|
$myfile = array('FilePath'=>$file,'PONO'=>$PONO); //'MaterialCode'=>$MaterialCode,
|
||||||
|
$result= $this->purchaseorder_model->fileupload($myfile);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($POStatus == REQ_DRAFT)
|
if($POStatus == REQ_DRAFT)
|
||||||
|
|||||||
@ -195,7 +195,7 @@ var statuscheck='<?php echo $PONOStatus;?>';
|
|||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
if(statuscheck=="<?php echo SPECIAL_PO;?>")
|
if(statuscheck=="<?php echo SPECIAL_PO;?>" )//|| statuscheck=="<?php echo PO_AWAITING_RELEASE;?>" )
|
||||||
{
|
{
|
||||||
$('#splpodiv').show();
|
$('#splpodiv').show();
|
||||||
}
|
}
|
||||||
@ -2447,7 +2447,14 @@ $(document).ready(function () {
|
|||||||
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a> <?php }?>
|
<a class="btn btn-primary Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a> <?php }?>
|
||||||
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
<a class="btn btn-primary Save" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||||
<a class="btn btn-primary Save" ID="Cancel" href="<?php echo base_url().'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
<a class="btn btn-primary Save" ID="Cancel" href="<?php echo base_url().'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
||||||
<?php }else {?>
|
<?php }
|
||||||
|
|
||||||
|
else if ($PONOStatus == SPECIAL_PO){?>
|
||||||
|
<a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>"> <span class="bold">OK</span></a>
|
||||||
|
|
||||||
|
<a class="btn btn-primary Save" ID="Submit" onclick="Save(3)" > <span class="bold">Submit</span></a> <?php }
|
||||||
|
|
||||||
|
else {?>
|
||||||
<a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>"> <span class="bold">OK</span></a>
|
<a class="btn btn-primary" ID="OK" href="<?php echo base_url().'purchaseorderListing'; ?>"> <span class="bold">OK</span></a>
|
||||||
|
|
||||||
<a class="btn btn-primary Save" ID="Submit" onclick="Save(2)" > <span class="bold">Submit</span></a> <?php } ?>
|
<a class="btn btn-primary Save" ID="Submit" onclick="Save(2)" > <span class="bold">Submit</span></a> <?php } ?>
|
||||||
@ -3130,6 +3137,11 @@ else if(status == '2')
|
|||||||
{
|
{
|
||||||
stat = '<?php echo PO_AWAITING_RELEASE; ?>';
|
stat = '<?php echo PO_AWAITING_RELEASE; ?>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if(status == '3')
|
||||||
|
{
|
||||||
|
stat = '<?php echo SPECIAL_PO; ?>';
|
||||||
|
}
|
||||||
var splinstr = $('#txtSpcialInstruction').val();
|
var splinstr = $('#txtSpcialInstruction').val();
|
||||||
var deladd = $('#DeliveryAddr').val();
|
var deladd = $('#DeliveryAddr').val();
|
||||||
$('#txtStatus').val(stat);
|
$('#txtStatus').val(stat);
|
||||||
|
|||||||
0
uploads/BillFiles/download_(2).jpg
Normal file → Executable file
0
uploads/BillFiles/download_(2).jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue
Block a user