igrfile
This commit is contained in:
parent
2dc312f6ef
commit
0dc3ca032d
@ -350,9 +350,6 @@ foreach ($igrvalue as $value) {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ($i = 1; $i <= $RowCount; $i++)
|
for ($i = 1; $i <= $RowCount; $i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -523,6 +520,7 @@ foreach ($igrvalue as $value) {
|
|||||||
$CAD="<tr><td rowspan=". $rowspanvalue .">".$MaterialCode."</td></tr>";
|
$CAD="<tr><td rowspan=". $rowspanvalue .">".$MaterialCode."</td></tr>";
|
||||||
$CAD.=$CAD2;
|
$CAD.=$CAD2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
|
$ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
|
||||||
if(count($ReceivedQty)>0)
|
if(count($ReceivedQty)>0)
|
||||||
{
|
{
|
||||||
@ -544,25 +542,6 @@ foreach ($igrvalue as $value) {
|
|||||||
$RevenueList = $this->purchaseorder_model->addRevenueTax($RevenueTaxList);
|
$RevenueList = $this->purchaseorder_model->addRevenueTax($RevenueTaxList);
|
||||||
|
|
||||||
|
|
||||||
// if($Quantity == $RecQtyvalue )
|
|
||||||
// {
|
|
||||||
|
|
||||||
// $Newstatus = array('Status'=>IGR_CREATED);
|
|
||||||
// $this->purchaseorder_model-> POLineItemsupdatestatus($NewPO,$Newstatus);
|
|
||||||
// $Newstat = array('Status'=>IGR_CREATED);
|
|
||||||
// $this->purchaseorder_model->pomasterupdatestatus($NewPO,$Newstat);
|
|
||||||
|
|
||||||
// }
|
|
||||||
// else if($Quantity != $RecQtyvalue )
|
|
||||||
// {
|
|
||||||
// $Newstatus = array('Status'=>POLINEITEM_IGRPARTIAL_CREATED);
|
|
||||||
// $this->purchaseorder_model->POLineItemsupdatestatus($NewPO,$Newstatus);
|
|
||||||
// $Newstat = array('Status'=>PO_RELEASED);
|
|
||||||
// $this->purchaseorder_model->pomasterupdatestatus($NewPO,$Newstat);
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$qty = $this->purchaseorder_model->getpolineqty($NewPO);
|
$qty = $this->purchaseorder_model->getpolineqty($NewPO);
|
||||||
|
|||||||
@ -37,7 +37,7 @@ class inwardgateregister extends BaseController
|
|||||||
|
|
||||||
function viewIGRDetails()
|
function viewIGRDetails()
|
||||||
{
|
{
|
||||||
$this->load->model('inwardgateregister_model');
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : Inward Gate Register Details';
|
$this->global['pageTitle'] = 'Siddharth : Inward Gate Register Details';
|
||||||
$data['IGR']= $this->inwardgateregister_model->igrListing();
|
$data['IGR']= $this->inwardgateregister_model->igrListing();
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ class inwardgateregister extends BaseController
|
|||||||
|
|
||||||
function addloadfile()
|
function addloadfile()
|
||||||
{
|
{
|
||||||
|
$upfiles = '';
|
||||||
$pono= $this->input->post('PONO');
|
$pono= $this->input->post('PONO');
|
||||||
|
|
||||||
$igr= $this->input->post('igr');
|
$igr= $this->input->post('igr');
|
||||||
|
|||||||
@ -96,9 +96,10 @@
|
|||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{?>
|
||||||
echo "NO FILE";
|
<!-- echo "NO FILE"; -->
|
||||||
}
|
<a target="_blank" data-toggle="modal" data-target="#Fileshow" data-id="<%=index%>" title="Attachment Available for Download/View" data-userid="<?php echo $record->IGRNO.'-'.$record->PONO ?>"><button class="btn btn-info btn-sm " >Addfile</button></a>
|
||||||
|
<?php }
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
@ -497,7 +498,8 @@ $("#hiddenPONO").val(po);
|
|||||||
Filename = item.file;
|
Filename = item.file;
|
||||||
FilePath =item.file;
|
FilePath =item.file;
|
||||||
}
|
}
|
||||||
|
if(item.BillNo != null)
|
||||||
|
{
|
||||||
i=i+1;
|
i=i+1;
|
||||||
trHTML += '<tr id='+i+'>' +
|
trHTML += '<tr id='+i+'>' +
|
||||||
'<td align="right">' + i + '</td>' +
|
'<td align="right">' + i + '</td>' +
|
||||||
@ -509,7 +511,7 @@ $("#hiddenPONO").val(po);
|
|||||||
'<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
'<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
'</tr>';
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$("#tblefile").empty();
|
$("#tblefile").empty();
|
||||||
@ -657,7 +659,7 @@ counter++;
|
|||||||
|
|
||||||
// alert(bil_count);
|
// alert(bil_count);
|
||||||
// alert(file_count);
|
// alert(file_count);
|
||||||
if(bil_count>=5){
|
if(bil_count>=6){
|
||||||
|
|
||||||
alert("You have to upload five files only");//this allows only 5 files;
|
alert("You have to upload five files only");//this allows only 5 files;
|
||||||
return false;
|
return false;
|
||||||
@ -745,7 +747,7 @@ counter++;
|
|||||||
|
|
||||||
function fileupload(counter)
|
function fileupload(counter)
|
||||||
{
|
{
|
||||||
// alert(counter);
|
//alert(counter);
|
||||||
|
|
||||||
var formData = new FormData();
|
var formData = new FormData();
|
||||||
|
|
||||||
@ -776,7 +778,7 @@ counter++;
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(data){
|
if(data){
|
||||||
alert(data);
|
alert(data);
|
||||||
//window.location.reload();
|
|
||||||
$('.content').loader('hide');
|
$('.content').loader('hide');
|
||||||
// $('#spl').find('td').eq(5).text(filename[2]);
|
// $('#spl').find('td').eq(5).text(filename[2]);
|
||||||
$('#billModel').modal('hide');
|
$('#billModel').modal('hide');
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 263 KiB |
Loading…
Reference in New Issue
Block a user