Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme

This commit is contained in:
Gowtham M 2025-03-10 14:10:15 +05:30
commit 3dbc2b48ea
12 changed files with 803 additions and 246 deletions

View File

@ -1226,6 +1226,7 @@ class Purchaseorder extends BaseController
$AfterSgst = $this->request->getPost('RevenueAfterSgst' . $i);
$AfterIgst = $this->request->getPost('RevenueAfterIgst' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
if($itemRate != 0){
$this->purchaseorder_model->updateMaterialRate($MaterialCode, $itemRate); }
$SkipInsert = "False";
@ -1421,6 +1422,7 @@ class Purchaseorder extends BaseController
$POLineItemNo = $this->request->getPost('LineItemNo' . $i);
$CostCenter = $this->request->getPost('costCode' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
$LineItemNo = '';
/*---------start---------------------*/
@ -2112,7 +2114,7 @@ class Purchaseorder extends BaseController
$specialinstruction = $this->request->getPost('Addinstruction' . $i);
$per = $this->request->getPost('Per' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
if($itemRate != 0){
$this->purchaseorder_model->updateMaterialRate($MaterialCode, $itemRate); }
$SkipInsert = "False";
@ -2419,6 +2421,8 @@ class Purchaseorder extends BaseController
$per = $this->request->getPost('Per' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
// echo $per;
//die();
$LineItemNo = '';
@ -2845,6 +2849,8 @@ class Purchaseorder extends BaseController
$CapitalItemDescription = $this->request->getPost('CapitalItemDescrition' . $i);
$Per = $this->request->getPost('per' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
if($itemRate != 0){
$this->purchaseorder_model->updateMaterialRate($MaterialCode, $itemRate); }
$SkipInsert = "False";
@ -3153,6 +3159,7 @@ class Purchaseorder extends BaseController
$Freightrateloc = $this->request->getPost('Fvalue' . $i);
$FreightAmountloc = $this->request->getPost('Afvalue' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
// echo $FreightTypeloc;
// echo 'n';
// echo $FreightNoofTriploc;

View File

@ -290,6 +290,7 @@ class Servicepurchaseorder extends BaseController
$OtherAmt = $this->request->getPost('OtherAmt' . $i);
$TotalOrderValue = $this->request->getPost('TotalOrderValue' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
$SkipInsert = "False";
if (count($comma_separated) > 0) {
@ -316,6 +317,7 @@ class Servicepurchaseorder extends BaseController
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $CreateBy, 'CreatedDate' => $createddt, 'CostCenterCode' => $CostCenter, 'ServiceFrequency' => $ServiceFrequency, 'ServiceMaterialDescription' => $ItemDescription, 'Per' => $Per, 'ItemNo' => $ItemNo,'LineitemAuditorNotes' => $LineitemAuditorNotes);
print_r($POLineItemList);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
@ -341,12 +343,13 @@ class Servicepurchaseorder extends BaseController
}
}
}
die;
echo 'Service Purchase Order Created Successfully! PO Number Is: ' . $PONO;
}
//update service po
function UpdateServicePurchaseOrder()
{
// print_r($this->request->getPost());die;
// echo "<pre>"; print_r($this->request->getPost()); echo "</pre>"; die;
$PONO = $this->request->getPost('txtPONO');
$newsup = $this->request->getPost('newsup');
// $newSupId = split("[ - ]+", $newsup);
@ -381,40 +384,34 @@ class Servicepurchaseorder extends BaseController
$InsuranceNumber = $this->request->getPost('InsuranceNumber');
$ServiceTypeOptions = $this->request->getPost('PoTypeOptions');
$DescriptionOfPo = $this->request->getPost('editdescofpo');
$PaymentTerms = $this->request->getPost('PaymentTerms');
$OtherPayment = $this->request->getPost('Otherpayment');
$POType = $this->request->getPost('POType');
$BudgetType = $this->request->getPost('Budget');
$SpcialInstruction = $this->request->getPost('ScopeofWork');
$TotalOrderValueSummary = $this->request->getPost('txtTotalOrderValueSummary');
$POStatus = $this->request->getPost('txtStatus');
$updatedBy = $this->session->get('userId');
$RowCount = $this->request->getPost('txtRowCount');
$DeletedRow = $this->request->getPost('txtDeletedRow');
$comma_separated = explode(':', (string)$DeletedRow);
$updateddt = get_current_date_time();
$WorkStatus = $this->request->getPost('workstatus');
$IsOpenOrder = ($this->request->getPost('IsOpenOrder') !== null && !empty($this->request->getPost('IsOpenOrder')) && $this->request->getPost('IsOpenOrder') === '1') ? $this->request->getPost('IsOpenOrder') : null;
// $lastPONO = $this->purchaseorder_model->lastPONO();
// $newPONO = generate_po_number($lastPONO);
// PO Master
$POList = array('SupplierID' => $SupplierID, 'TotalOrderValue' => $TotalOrderValueSummary, 'PODate' => $PODate, 'Status' => $POStatus, 'DeliverySchedule' => $DeliverySchedule, 'DeliveryOption' => $DeliveryOption, 'ServiceDescription' => $SpcialInstruction, 'UpdateBY' => $updatedBy, 'DeliveryAddress' => $DeliveryAddr, 'DeliveryDate' => $Deliverydt, 'UpdatedOn' => $updateddt, 'PaymentTerms' => $PaymentTerms, 'ServiceWorkStatus' => $WorkStatus, 'PaymentOtherDescription' => $OtherPayment, 'Supplier_Reference' => $SupplierReference, 'Mode_Of_Shipment' => $ModeOfShipment, 'Supplier_Offer_No' => $SuppliersOfferNo, 'Other_Reference' => $OtherReferences, 'Fincap' => $Fincap, 'Description_Of_Service' => $DescriptionOfPo, 'InsuranceStatus' => $InsuranceOptions, 'InsuranceNumber' => $InsuranceNumber, 'POSubType' => $ServiceTypeOptions, 'BudgetType' => $BudgetType, 'IsOpenOrder' => $IsOpenOrder);
if ($POStatus == 'ST026') {
$POList['ApprovedOn'] = get_current_date_time();
$POList['ApprovedBy'] = $this->session->get('userId');
$POList['ReleasedOn'] = get_current_date_time();
$POList['ReleasedBy'] = $this->session->get('userId');
}
// echo "<pre>"; print_r($POList); echo "</pre>"; die;
$file = $this->request->getFile('POFile');
if ($file !== null) {
@ -441,15 +438,13 @@ class Servicepurchaseorder extends BaseController
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO, $POList);
// echo "pomaster".$POMaster;die;
$LineItemStatus = REQITEM_NEW;
if ($PODate != $b4podate) {
$logpo = array('PONO' => $PONO, 'LineItemNos' => '-', 'UpdateBy' => $updatedBy, 'UpdatedOn' => $updateddt, 'oldValue' => $b4podate, 'newValue' => $PODate, 'entity' => 'PO DateChanged');
$this->purchaseorder_model->insertlogpo($logpo);
}
@ -458,12 +453,10 @@ class Servicepurchaseorder extends BaseController
//$newsupname = $newSupId[0].'-'.$newSupId[1];
//echo $newsup;die;
$logpo = array('PONO' => $PONO, 'LineItemNos' => '-', 'UpdateBy' => $updatedBy, 'UpdatedOn' => $updateddt, 'oldValue' => $b4supplier, 'newValue' => $newsup, 'entity' => 'Supplier Changed');
$this->purchaseorder_model->insertlogpo($logpo);
}
}
// echo "<pre>"; echo($RowCount); echo "</pre>"; die;
for ($i = 1; $i <= $RowCount; $i++) {
$MaterialCode = $this->request->getPost('materialCode' . $i);
$Quantity = $this->request->getPost('quantity' . $i);
@ -487,23 +480,16 @@ class Servicepurchaseorder extends BaseController
$OtherAmt = $this->request->getPost('OtherAmt' . $i);
$Per = $this->request->getPost('per' . $i);
$LineitemAuditorNotes = $this->request->getPost('LineItemNoteForAuditor' . $i);
$LineitemAuditorNotes = ($LineitemAuditorNotes === null || $LineitemAuditorNotes === '') ? '-' : $LineitemAuditorNotes;
/*------------------------------*/
/*------------------------------ Quantity update the req details --*/
//if($MaterialCode!= ''){
$ReqDetails = array('Quantity' => $Quantity, 'UpdatedBy' => $updatedBy, 'UpdatedOn' => $updateddt);
//print_r($ReqDetails);
$this->purchaseorder_model->updateReqDetails($Reqnumber, $MaterialCode, $ReqDetails);
// }
/*------------------------------------------------------------------*/
/*------------------------------*/
/*---------start---------------------*/
// if(($PODate != $b4podate )||($SupplierID != $b4supplier) || ($itemRate!=$b4rate) ||
// ($Quantity != $b4qty ))
@ -515,24 +501,24 @@ class Servicepurchaseorder extends BaseController
// }
/*--------- Quantity log start ---------------------*/
if ($Quantity != $b4qty) {
$logpo = array('PONO' => $PONO, 'LineItemNos' => $POLineItemNo, 'UpdateBy' => $updatedBy, 'UpdatedOn' => $updateddt, 'oldValue' => $b4qty, 'newValue' => $Quantity, 'entity' => 'Quantity Changed');
$this->purchaseorder_model->insertlogpo($logpo);
}
/*--------- Quantity log ends ---------------------*/
/*--------- Rate log start ---------------------*/
if ($itemRate != $b4rate) {
$logpo = array('PONO' => $PONO, 'LineItemNos' => $POLineItemNo, 'UpdateBy' => $updatedBy, 'UpdatedOn' => $updateddt, 'oldValue' => $b4rate, 'newValue' => $itemRate, 'entity' => 'Rate Changed');
$this->purchaseorder_model->insertlogpo($logpo);
}
/*--------- Rate log ends ---------------------*/
/*----------end--------------------*/
/*--------- Lineitem Section starts ---------------------*/
$POLineItem = array();
$LineItemNo = '';
@ -552,7 +538,6 @@ class Servicepurchaseorder extends BaseController
if ($SkipInsert == "False") {
if (strlen((string)$POLineItemNo) == 0) {
$this->requistion_model = new requistion_model();
$RetItemNo = $this->requistion_model->getItemNumber($Reqnumber, $MaterialCode);
$ItemNo = '';
@ -560,8 +545,10 @@ class Servicepurchaseorder extends BaseController
$ItemNo = $RetItemNo[0]['ItemNo'];
}
$POLineItemList = array('PONO' => $PONO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $updatedBy, 'CreatedDate' => $updateddt, 'CostCenterCode' => $CostCenter, 'ServiceFrequency' => $ServiceFrequency, 'ServiceMaterialDescription' => $ItemDescription, 'Per' => $Per, 'ItemNo' => $ItemNo,'LineitemAuditorNotes' => $LineitemAuditorNotes);
// print_r($POLineItemList);die;
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
// print_r($POLineItem);die;
if (count($POLineItem) > 0) {
$LineItemNo = $POLineItem[0]['LineItemNo'];
}
@ -619,18 +606,13 @@ class Servicepurchaseorder extends BaseController
}
}
}
/*--------- Lineitem Section starts ---------------------*/
}
echo 'Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
}
/*-----------------------------------*/
function uploadfile()
{

View File

@ -346,16 +346,13 @@ if (!empty($getlogpodtl)) {
/*****************************/
var update = '<?php echo json_encode($update) ?>';
if (update != 'null')
{
$('#editpodiv').show();
} else {
$('#editpodiv').hide();
}
// var update = '<?php echo json_encode($update) ?>';
// if (update != 'null')
// {
// $('#editpodiv').show();
// } else {
// $('#editpodiv').hide();
// }
/*****************************/
@ -1536,7 +1533,7 @@ if (!empty($getlogpodtl)) {
</div>
<?php if (!empty($update)) { ?>
<div class="form-group col-md-12" id="editpodiv">
<!-- <div class="form-group col-md-12" id="editpodiv">
<div class="form-group col-md-12"><label>Editable POScreen</label>
<table id="edittable" class="table table-striped table-hover mb-0" style="font-size:12px;">
@ -1544,8 +1541,8 @@ if (!empty($getlogpodtl)) {
<tr>
<th>Sno</th>
<th>PONO</th>
<!-- <th>Material</th> -->
<!-- <th>Date</th> -->
<!- - <th>Material</th> - ->
<!- - <th>Date</th> - ->
<th>LineItemNo</th>
<th>Entity</th>
<th>OldValue</th>
@ -1570,14 +1567,14 @@ if (!empty($getlogpodtl)) {
<td><?php echo $inde; ?></td>
<td><?php echo $oldpo->PONO ?></td>
<!--
<!- -
<?php // if ($oldpo->logDate != '-') {
// $logdate = date('d-m-Y', strtotime($oldpo->logDate));
// } else {
// $logdate = '-';
// }
?>
-->
- ->
<td><?php echo $oldpo->LineItemNos; ?></td>
<td><?php echo $oldpo->entity ?></td>
<?php if ($oldpo->entity == 'PO DateChanged') {
@ -1605,10 +1602,9 @@ if (!empty($getlogpodtl)) {
}
?>
</tbody>
<?php } else {} ?>
</table>
</div>
</div>
</div> <?php } else {} ?> -->
<div class="form-group col-md-12 px-4" align="left">
@ -2626,7 +2622,7 @@ if (!empty($getlogpodtl)) {
var rowHtml = `
<tr id="${temp}">
<td align="left">${temp}</td>
<td align="left">${Reqnumber}</td>
<td align="center">${Reqnumber}</td>
<td align="left">${materialCode}</td>
<td align="left">${shorten}</td>`;
if (PONOStatus === "PO_DRAFT" || PONOStatus === "PO_CREATED") {

View File

@ -370,13 +370,13 @@ if (!empty($INRSYMBOL)) {
alert('Please Enter the Dispatch Instruction');
$('#Deliverydate').focus();
return false;
} else if ($('#ExchangeRate').val() == '') {
} else if ($('#ExchangeRt').val() == '') {
alert('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
$('#ExchangeRt').focus();
return false;
} else if ($('#ExchangeRate').val() == 0) {
} else if ($('#ExchangeRt').val() == 0) {
alert('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
$('#ExchangeRt').focus();
return false;
} else if ($('#PlaceOforigin').val() == '') {
alert('Please Enter Place Of Origin');
@ -1293,9 +1293,9 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="form-row">
<div class="form-row" id="TripsValueloc" style="display:none;">
<div class="form-group col-md-9"></div>
<div class="form-group col-md-3" id="TripsValueloc" style="display:none;">
<div class="form-group col-md-3">
<label>NO Of Trips</label>
<?php
$data = array('name' => 'NOOfTripsloc', 'value' => set_value('NOOfTripsloc'), 'id' => 'NOOfTripsloc', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
@ -1306,7 +1306,6 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="form-row">
<div class="form-group col-md-6" align="right">
<label> CGST In % </label>
@ -1584,6 +1583,14 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-4" id="TripsValue" style="display:none;">
<label>NO Of Trips</label>
<?php
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<label>Freight Rate </label>
@ -1592,6 +1599,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="padding-left: 0px;">
<label>Freight Amt <?php echo "($INR)" ?></label>
<?php
@ -1601,27 +1609,15 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="form-row">
<div class="form-group col-md-9"></div>
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
<label>NO Of Trips</label>
<?php
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
</div>
<br>
<center> <label><h4>Cost of the product Per UOM<h4></label></center>
<hr />
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-6">
<label>Duty Impact</label>
<label>Duty Impact</label>
<?php
$data = array('name' => 'DutyImpact', 'value' => set_value('DutyImpact'), 'id' => 'DutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange();', 'readonly' => 'true');
echo form_input($data);
@ -1933,9 +1929,9 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="form-row">
<div class="form-row" id="TripsValuelocedit" style="display:none;">
<div class="form-group col-md-9"></div>
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
<div class="form-group col-md-3">
<label>NO Of Trips</label>
<?php
$data = array('name' => 'NOOfTripslocedit', 'value' => set_value('NOOfTripslocedit'), 'id' => 'NOOfTripslocedit', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocaddper(0);');
@ -2277,6 +2273,13 @@ if (!empty($INRSYMBOL)) {
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control"');
?>
</div>
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
<span>NO Of Trips</span>
<?php
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<span>Freight Rate </span>
@ -2297,92 +2300,65 @@ if (!empty($INRSYMBOL)) {
</div>
<!--End of Adding of freight in edit model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-9"></div>
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
<span>NO Of Trips</span>
<div class="form-group col-md-6">
<label>Duty Impact</label>
<?php
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
$data = array('name' => 'EditDutyImpact', 'value' => set_value('EditDutyImpact'), 'id' => 'EditDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="form-group col-md-6">
<label>Quantity</label>
<?php
$data = array('name' => 'EditPurQuantity', 'value' => set_value('EditPurQuantity'), 'id' => 'EditPurQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label> Custom Duty<?php echo " ($INR)/UOM" ?></label>
<?php
$data = array('name' => 'EditCustomDutyExpenses ', 'value' => set_value('EditCustomDutyExpenses'), 'id' => 'EditCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<center> <label>Cost of the product Per UOM</label></center>
<hr />
<div class="form-row">
<div class="form-group col-md-4">
<label> Duty Impact </label>
</div>
<div class="form-group col-md-4">
<div>
<?php
$data = array('name' => 'EditDutyImpact', 'value' => set_value('EditDutyImpact'), 'id' => 'EditDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4" style="margin-top: -3.1%">
<label>Quantity</label>
<div>
<?php
$data = array('name' => 'EditPurQuantity', 'value' => set_value('EditPurQuantity'), 'id' => 'EditPurQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label>
Custom Duty <?php echo "($INR)/UOM" ?>
</label>
</div>
<div class="form-group col-md-4">
</div>
<div class="form-group col-md-4">
<div>
<?php
$data = array('name' => 'EditCustomDutyExpenses ', 'value' => set_value('EditCustomDutyExpenses'), 'id' => 'EditCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="form-group col-md-6">
<label> Clearing Charges <?php echo "($INR)" ?></label>
<?php
$data = array('name' => 'EditClearingCharges', 'value' => set_value('EditClearingCharges'), 'id' => 'EditClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label>
Clearing Charges<?php echo "($INR)" ?>
</label>
</div>
<div class="form-group col-md-4">
<div>
<?php
$data = array('name' => 'EditClearingCharges', 'value' => set_value('EditClearingCharges'), 'id' => 'EditClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<!-- RMC Including Customers -->
<div class="form-group col-md-6">
<label><?php echo "Net per Uom($INR)"; ?></label>
<div>
<?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>

View File

@ -2231,7 +2231,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-3">
<div class="form-group col-md-4">
<label for="drpamendFreight">Freight Type</label>
<?php
$options = array("0" => 'Select Freight Type');
@ -2243,14 +2243,14 @@ if (!empty($POItem) && $CapitalRange == '1') {
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-3" id="AmendTripsValue" style="display:none;">
<div class="form-group col-md-4" id="AmendTripsValue" style="display:none;">
<label for="AmendNOOfTrips">NO Of Trips</label>
<?php
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-4">
<label for="AmendtxtFreight">Freight Rate</label>
<?php
$data = array('name' => 'AmendtxtFreight', 'value' => set_value('AmendtxtFreight'), 'id' => 'AmendtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(3);');
@ -2258,7 +2258,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-3" style="padding-left: 0px;">
<div class="form-group col-md-4" style="padding-left: 0px;">
<label for="AmendtxtAfterFreight"> Freight Amt </label>
<?php
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
@ -2269,9 +2269,10 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<!--End of Adding of freight in edit model -->
<br>
<center> <label>Cost of the product Per UOM</label></center>
<hr />
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-4">

View File

@ -390,11 +390,11 @@ if (!empty($getlogpodtl)) {
var update = '<?php echo json_encode($update) ?>';
if (update != 'null') {
$('#editpodiv').show();
} else {
$('#editpodiv').hide();
}
// if (update != 'null') {
// $('#editpodiv').show();
// } else {
// $('#editpodiv').hide();
// }
/*****************************/
@ -1459,7 +1459,7 @@ if (!empty($getlogpodtl)) {
<!--################################################################## -->
<?php if (!empty($update)) { ?>
<div id="editpodiv">
<!-- <div id="editpodiv">
<div class="form-row"><label>Editable POScreen</label>
<table id="edittable" class="table table-hover table-bordered"
style="background-color:#fff;font-size:12px;">
@ -1467,8 +1467,8 @@ if (!empty($getlogpodtl)) {
<tr>
<th>Sno</th>
<th>PONO</th>
<!-- <th>Material</th> -->
<!-- <th>Date</th> -->
<!- - <th>Material</th> - ->
<!- - <th>Date</th> - ->
<th>LineItemNo</th>
<th>Entity</th>
<th>OldValue</th>
@ -1493,7 +1493,7 @@ if (!empty($getlogpodtl)) {
<td><?php echo $inde; ?></td>
<td><?php echo $oldpo->PONO ?></td>
<!--
<!- -
<?php
if (isset($oldpo->logDate) && $oldpo->logDate != '-' && !empty($oldpo->logDate)) {
$logdate = date('d-m-Y', strtotime($oldpo->logDate));
@ -1503,7 +1503,7 @@ if (!empty($getlogpodtl)) {
?>
<td><?= $logdate; ?></td> -->
<td><?= $logdate; ?></td> - ->
<td><?php echo $oldpo->LineItemNos; ?></td>
<td><?php echo $oldpo->entity ?></td>
<?php if ($oldpo->entity == 'PO DateChanged') {
@ -1533,7 +1533,7 @@ if (!empty($getlogpodtl)) {
</tbody>
</table>
</div>
</div>
</div> -->
<?php } else {
} ?>
@ -2279,7 +2279,7 @@ if (!empty($getlogpodtl)) {
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-3">
<div class="form-group col-md-4">
<span>Freight Type </span>
<?php
$options = array("0" => 'Select Freight Type');
@ -2291,14 +2291,14 @@ if (!empty($getlogpodtl)) {
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight"', 'class="form-control "');
?>
</div>
<div class="form-group col-md-3" id="AddTripsValue" style="display:none;">
<div class="form-group col-md-4" id="AddTripsValue" style="display:none;">
<span>NO Of Trips</span>
<?php
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-4">
<span>Freight Rate </span>
<?php
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);');
@ -2306,7 +2306,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
<div class="form-group col-md-3" style="padding-left: 0px;">
<div class="form-group col-md-4" style="padding-left: 0px;">
<span>Freight Amt <?php echo "($INR)" ?></span>
<?php
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
@ -2318,10 +2318,10 @@ if (!empty($getlogpodtl)) {
<!--End of Adding of freight in edit model -->
<div class="form-row">
<center> <label>Cost of the product Per UOM</label></center>
<hr />
</div>
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-4">
Duty Impact
@ -2419,7 +2419,7 @@ if (!empty($getlogpodtl)) {
<!-- 2nd modal -->
<div id="EDITCAPITAL" class="modal fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
style="display: none;">
<div class="modal-dialog modal-full-width" style="width: 1060px !important;">
@ -2990,10 +2990,10 @@ if (!empty($getlogpodtl)) {
</div>
<!--End of Adding of freight in edit model -->
<div class="form-row">
<center> <label>Cost of the product Per UOM</label></center>
<hr />
</div>
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-4">
Duty Impact
@ -3088,9 +3088,615 @@ if (!empty($getlogpodtl)) {
</div>
</div><!-- /.modal -->
<!-- 3rd modal new-->
<div id="VIEWCAPITAL" class="modal fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
style="display: none;">
<div class="modal-dialog modal-full-width" style="width: 1060px !important;">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">View Capital Purchase Order Item</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<form>
<div class="modal-body p-4">
<div class="form-row">
<div class="form-group col-md-3">
<label>Req No<span class="text-danger">*</span></label>
<div>
<?php
$data = array('name' => 'ViewReqnumber', 'value' => set_value('ViewReqnumber'), 'id' => 'ViewReqnumber', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Req No -->
<div class="form-group col-md-3">
<label>Department Name</label>
<div>
<?php
$data = array('name' => 'ViewCapitalDepartmentName', 'value' => set_value('ViewCapitalDepartmentName'), 'id' => 'ViewCapitalDepartmentName', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Department Name -->
<div class="form-group col-md-3">
<label>Cost Center Code</label>
<div>
<?php
$data = array('name' => 'ViewCostCenter', 'value' => set_value('ViewCostCenter'), 'id' => 'ViewCostCenter', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Cost Center Code -->
<div class="form-group col-md-3">
<label>Avail Bud Amount<?php echo "($INR)" ?></label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCapitalbudAmt', 'value' => set_value('ViewCapitalbudAmt'), 'id' => 'ViewCapitalbudAmt', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Avail Bud Amount -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-9"></div>
<div class="form-group col-md-3" id="ExchangeRateModalEditDiv" style="display:none;">
<label> Exchange Rate</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewExchangeRtModal', 'value' => set_value('ViewExchangeRtModal'), 'id' => 'ViewExchangeRtModal', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row" style="padding: 0px;">
<div class="form-group col-md-3">
<label>Item Code<span class="text-danger">*</span></label>
<div>
<?php
$data = array('name' => 'ViewMaterialCode', 'value' => set_value('ViewMaterialCode'), 'id' => 'ViewMaterialCode', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Item Code -->
<div class="form-group col-md-3">
<label>Item Name</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCapitalItemName', 'value' => set_value('ViewCapitalItemName'), 'id' => 'ViewCapitalItemName', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Item Name -->
<div class="form-group col-md-3">
<label>UOM</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPUOM', 'value' => set_value('ViewCPUOM'), 'id' => 'ViewCPUOM', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- UOM -->
<div class="form-group col-md-3">
<label>Quantity<span class="text-danger">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPQuantity', 'value' => set_value('ViewCPQuantity'), 'id' => 'ViewCPQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Quantity -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-3"></div>
<div class="form-group col-md-3" style="padding: 0px;">
<label id="EditRateIn">Rate(in INR/UOM)</label><span class="text-danger">*</span>
<div class="form-group">
<?php
$data = array('name' => 'ViewCPRate', 'value' => set_value('ViewCPRate'), 'id' => 'ViewCPRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Rate(in INR/UOM) -->
<div class="form-group col-md-3">
<label>Per</label>
<?php $data = array('name' => 'ViewPer', 'value' => set_value('ViewPer'), 'id' => 'ViewPer', 'class' => 'form-control', 'readonly' => 'true');
echo form_input($data); ?>
</div><!--Per -->
<div class="form-group col-md-3" style="padding-right: 0px;">
<label id="ViewTotalAmount">Basic value <?php echo "($INR)" ?></label>
<?php
$data = array('name' => 'ViewCPTotalAmount', 'value' => set_value('ViewCPTotalAmount'), 'id' => 'ViewCPTotalAmount', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div><!-- Basic value -->
</div><!-- form-row -->
<div class="form-row" style="padding:0px;" id="VIEWCAPdiv">
<div class="form-group col-md-3">
</div>
<div class="form-group col-md-3">
<label>Discount Type </label>
<div>
<?php
$data = array('name' => 'ViewDiscountType', 'value' => set_value('ViewDiscountType'), 'id' => 'ViewDiscountType', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Discount Type -->
<div class="form-group col-md-3">
<label>Discount Rate </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewDiscount', 'value' => set_value('txtViewDiscount'), 'id' => 'txtViewDiscount', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();calculateDiscount(1);', 'style' => 'text-align:right;', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- Discount Rate -->
<div class="form-group col-md-3" style="padding:0px;">
<label>Discounted Amt <?php echo "($INR)" ?> </label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewAfterDiscount', 'value' => set_value('txtViewAfterDiscount'), 'id' => 'txtViewAfterDiscount', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
echo form_input($data);
?>
</div>
</div><!-- Discounted Amt -->
<div class="form-group col-md-3">
</div>
<div class="form-group col-md-3">
<label>Freight Type </label>
<?php
$options = array("0" => 'Select Freight Type');
//print_r( $options);
if (!empty($FreightType)) {
foreach ($FreightType as $SID):
$options[$SID->ConfigValue] = $SID->ConfigValue;
endforeach;
}
echo form_dropdown('drpFreightviewloc', $options, set_value(field: 'drpFreightviewloc'), 'id="drpFreightviewloc" disabled class="form-control "');
?>
</div><!-- Freight Type -->
<div class="form-group col-md-3" id="TripsValuelocedit" style="display:none;">
<label>NO Of Trips</label>
<?php
$data = array('name' => 'NOOfTripslocview', 'value' => set_value('NOOfTripslocview'), 'id' => 'NOOfTripslocview', 'class' => 'form-control num', 'onchange' => 'calculateFreightlocviewper();', 'disabled' => 'disabled');
echo form_input($data);
?>
</div><!-- NO Of Trips -->
<div class="form-group col-md-3">
<label>Freight Rate </label>
<?php
$data = array('name' => 'txtFreightlocview', 'value' => set_value('txtFreightlocview'), 'id' => 'txtFreightlocview', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreightlocviewper();', 'disabled' => 'disabled');
echo form_input($data);
?>
</div><!-- Freight Rate -->
<div class="form-group col-md-3" style="padding: 1px;">
<label>Freight Amt <?php echo "($INR)"; ?></label>
<?php
$data = array('name' => 'txtAfterFreightlocview', 'value' => set_value('txtAfterFreightlocview'), 'id' => 'txtAfterFreightlocview', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div><!-- Freight Amt -->
<div class="form-group col-md-6" style="text-align:right !important">
<label> CGST In % <label>
</div><!-- CGST -->
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewCgst', 'value' => set_value('ViewCgst'), 'id' => 'ViewCgst', 'class' => 'form-control num', 'placeholder' => 'CGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- CGST -->
<div class="form-group col-md-3">
<?php
$data = array('name' => 'ViewAfterCgst', 'value' => set_value('ViewAfterCgst'), 'id' => 'ViewAfterCgst', 'class' => 'form-control num', 'placeholder' => 'After CGST', 'readonly' => 'true');
echo form_input($data);
?>
</div><!-- CGST -->
</div><!-- VIEWCAPdiv form-row -->
<div class="form-row" id="VIEWCAPdiv1">
<div class="form-group col-md-6" style="text-align:right !important">
<label> SGST In % </label>
</div><!-- SGST -->
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewSgst', 'value' => set_value('ViewSgst'), 'id' => 'ViewSgst', 'class' => 'form-control num', 'placeholder' => 'SGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- SGST1 -->
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterSgst', 'value' => set_value('ViewAfterSgst'), 'id' => 'ViewAfterSgst', 'class' => 'form-control num', 'placeholder' => 'After SGST', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- SGST2 -->
</div><!-- VIEWCAPdiv1 form-row -->
<div class="form-row" id="VIEWCAPdiv2">
<div class="form-group col-md-6" style="text-align:right !important">
<label> IGST In % </label>
</div><!-- IGST -->
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewIgst', 'value' => set_value('ViewIgst'), 'id' => 'ViewIgst', 'class' => 'form-control num', 'placeholder' => 'IGST TAX PERCENTAGE', 'onchange' => 'EditRatechange()', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- IGST 1 -->
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterIgst', 'value' => set_value('ViewAfterIgst'), 'id' => 'ViewAfterIgst', 'class' => 'form-control num', 'placeholder' => 'After IGST', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div><!-- IGST 2 -->
</div><!-- VIEWCAPdiv2 form-row -->
<div class="form-row" id="VIEWCAPdiv3">
<div class="col-md-9 col-md-offset-4" style="text-align:right !important">
<label>Other Allowances <?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewOtherAllowances', 'value' => set_value('ViewOtherAllowances'), 'id' => 'ViewOtherAllowances', 'class' => 'form-control num', 'placeholder' => 'Other Allowances', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-9 col-md-offset-4" style="text-align:right !important">
<label>Total Amount <?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-3">
<div class="form-group">
<?php
$data = array('name' => 'ViewTotalAmountlocal', 'value' => set_value('ViewTotalAmountlocal'), 'id' => 'ViewTotalAmountlocal', 'class' => 'form-control num', 'placeholder' => 'Total Amount', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- VIEWCAPdiv3 form-row -->
<div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide" style="display:none;">
<br />
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
<div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'ViewBasicPriceTax', 'value' => set_value('ViewBasicPriceTax'), 'id' => 'ViewBasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterBasicPriceTax', 'value' => set_value('ViewAfterBasicPriceTax'), 'id' => 'ViewAfterBasicPriceTax', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Landing charge <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewLandingCharge', 'value' => set_value('ViewLandingCharge'), 'id' => 'ViewLandingCharge', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Assessable Value (A) <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group" style="display: none;">
<?php
$data = array('name' => 'ViewHighseas ', 'value' => set_value('ViewHighseas'), 'id' => 'ViewHighseas', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterAssessable', 'value' => set_value('ViewAfterAssessable'), 'id' => 'ViewAfterAssessable', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Custom duty (B)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomduty', 'value' => set_value('ViewCustomduty'), 'id' => 'ViewCustomduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'viewAfterCustomduty', 'value' => set_value('viewAfterCustomduty'), 'id' => 'viewAfterCustomduty', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Custom ED_cess (C)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomEDcess', 'value' => set_value('ViewCustomEDcess'), 'id' => 'ViewCustomEDcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Custom S & H cess (D)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomSHcess', 'value' => set_value('ViewCustomSHcess'), 'id' => 'ViewCustomSHcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
</div><!-- 1st form-group col-md-6 -->
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
<div class="form-group col-md-4">
Subtotal (E) <?php echo "($INR) (A+B+C+D)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group" style="display: none;">
<?php
$data = array('name' => 'ViewAdditionalExciseduty ', 'value' => set_value('ViewAdditionalExciseduty'), 'id' => 'ViewAdditionalExciseduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewSubtotal', 'value' => set_value('ViewSubtotal'), 'id' => 'ViewSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
IGST on (E): (F) <?php echo " ($INR)"; ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewIgstInt ', 'value' => set_value('ViewIgstInt', 0), 'id' => 'ViewIgstInt', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true', 'onchange' => 'EditCalculateIgst()');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterIgstInt', 'value' => set_value('ViewAfterIgstInt', 0), 'id' => 'ViewAfterIgstInt', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-8">
Total Duty (G) <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewGrossdutypayable ', 'value' => set_value('ViewGrossdutypayable'), 'id' => 'ViewGrossdutypayable', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<!--Start of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-4">
<span>Freight Type </span>
<?php
$options = array("0" => 'Select Freight Type');
if (!empty($FreightType)) {
foreach ($FreightType as $SID):
$options[$SID->ConfigValue] = $SID->ConfigValue;
endforeach;
}
echo form_dropdown('drpViewFreight', $options, set_value('drpViewFreight'), 'id="drpViewFreight"', 'class="form-control "');
?>
</div>
<div class="form-group col-md-4" id="ViewTripsValue" style="display:none;">
<span>NO Of Trips</span>
<?php
$data = array('name' => 'ViewNOOfTrips', 'value' => set_value('ViewNOOfTrips'), 'id' => 'ViewNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(2);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<span>Freight Rate </span>
<?php
$data = array('name' => 'txtViewFreight', 'value' => set_value('txtViewFreight'), 'id' => 'txtViewFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(2);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="padding-left: 0px;">
<span>Freight Amt <?php echo "($INR)" ?></span>
<?php
$data = array('name' => 'txtViewAfterFreight', 'value' => set_value('txtViewAfterFreight'), 'id' => 'txtViewAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!--End of Adding of freight in view model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-6">
<label>Duty Impact</label>
<?php
$data = array('name' => 'ViewDutyImpact', 'value' => set_value('ViewDutyImpact'), 'id' => 'ViewDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="form-group col-md-6">
<label>Quantity</label>
<?php
$data = array('name' => 'ViewPurQuantity', 'value' => set_value('ViewPurQuantity'), 'id' => 'ViewPurQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label> Custom Duty Expenses <?php echo "($INR)/UOM" ?></label>
<?php
$data = array('name' => 'ViewCustomDutyExpenses ', 'value' => set_value('ViewCustomDutyExpenses'), 'id' => 'ViewCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label> Clearing Charges <?php echo "($INR)" ?></label>
<?php
$data = array('name' => 'ViewClearingCharges', 'value' => set_value('ViewClearingCharges'), 'id' => 'ViewClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="form-group col-md-6">
<label><?php echo "Net per UOM($INR)"; ?></span>
<?php
$data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<!-- <div class="form-group col-md-6" style="text-align:right !important" style="display:none;"> <label>Total Order Amount :</label></div> -->
<div class="form-group col-md-6" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'ViewtxtTotalOrderValue', 'value' => set_value('ViewtxtTotalOrderValue'), 'id' => 'ViewtxtTotalOrderValue', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div id="VIEWCAPITAL" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
</div>
</div><!-- 2nd form-group col-md-6 -->
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-12">
<label>Capital Description </label>
<?php
$data = array('name' => 'ViewItemDescription', 'value' => set_value('ViewItemDescription'), 'id' => 'ViewItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?>
</div>
</div>
</div><!-- form-row -->
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px">Cancel</a>
<?php if ($CapitalRange == 1 || $CapitalRange == 0) { ?>
<!-- <a class="btn btn-success font ViewCapital" ID="ViewUpdateCapital">&nbsp;&nbsp;<span class="bold">Update Capital</span></a> -->
<?php } ?>
</div>
</form>
</div>
</div>
</div><!-- /.modal -->
<!-- 3rd modal old-->
<div id="VIEWCAPITALOLD" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
style="display: none;">
<div class="modal-dialog modal-full-width">
<div class="modal-content">

View File

@ -1058,7 +1058,13 @@ if (!empty($RequistionDetails)) {
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-4" id="AmendTripsValue" style="display:block;">
<span>NO Of Trips</span>
<?php
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<span>Freight Rate </span>
<?php
@ -1076,22 +1082,12 @@ if (!empty($RequistionDetails)) {
</div>
</div>
<div class="form-row">
<div class="form-group col-md-8"></div>
<div class="form-group col-md-4" id="AmendTripsValue" style="display:block;">
<span>NO Of Trips</span>
<?php
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
</div>
<!--End of Adding of freight in edit model -->
<br>
<center> <label>Cost of the product Per UOM</label></center>
<hr />
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-6">

View File

@ -1218,7 +1218,6 @@ if (!empty($INRSYMBOL)) {
</div>
<br>
<div class="form-row">
<div class="scrollable-table">
<div class="table-responsive" style="padding-bottom: 30px;">
<table id="revenueTax" class="table table-bordered table-hover" style="font-size:12px;">
<thead>
@ -1456,7 +1455,6 @@ if (!empty($INRSYMBOL)) {
</tbody>
</table>
</div>
</div>
</div>
<br>
<div class="form-row">

View File

@ -368,12 +368,12 @@ if (!empty($getlogpodtl)) {
$('#splpodiv').hide();
}
/*****************************/
var update = '<?php echo json_encode($update) ?>';
if (update != 'null') {
$('#editpodiv').show();
} else {
$('#editpodiv').hide();
}
// var update = '<?php echo json_encode($update) ?>';
// if (update != 'null') {
// $('#editpodiv').show();
// } else {
// $('#editpodiv').hide();
// }
/*****************************/
$('#PoTypeOptions').attr("style", "pointer-events: none;");
if (DelOpt == "0") {
@ -2830,8 +2830,8 @@ if (!empty($getlogpodtl)) {
</div>
<!--################################################################## -->
<?php if (!empty($update)) { ?>
<div class="form-row" id="editpodiv">
<!-- <div class="form-row"> -->
<!-- <div class="form-row" id="editpodiv">
<!- - <div class="form-row"> - ->
<label>Editable POScreen</label>
<table id="edittable" class="table table-hover table-bordered"
style="background-color:#fff;font-size:12px;">
@ -2890,8 +2890,8 @@ if (!empty($getlogpodtl)) {
?>
</tbody>
</table>
<!-- </div> -->
</div>
<!- - </div> - ->
</div> -->
<?php } else {
} ?>

View File

@ -396,16 +396,13 @@ if (!empty($getlogpodtl)) {
/*****************************/
var update = '<?php echo json_encode($update) ?>';
if (update != 'null')
{
$('#editpodiv').show();
} else {
$('#editpodiv').hide();
}
// var update = '<?php echo json_encode($update) ?>';
// if (update != 'null')
// {
// $('#editpodiv').show();
// } else {
// $('#editpodiv').hide();
// }
/*****************************/
//Initialize Select2 Elements
@ -1188,15 +1185,15 @@ if (!empty($getlogpodtl)) {
<!-- ################################################################## -->
<?php if (!empty($update)) { ?>
<div class="form-row" id="editpodiv">
<!-- <div class="form-row" id="editpodiv">
<div class="form-group col-md-12"><label>Editable POScreen</label>
<table id="edittable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;">
<thead>
<tr>
<th>Sno</th>
<th>PONO</th>
<!-- <th>Material</th> -->
<!-- <th>Date</th> -->
<!- - <th>Material</th> - ->
<!- - <th>Date</th> - ->
<th>LineItemNo</th>
<th>Entity</th>
<th>OldValue</th>
@ -1221,14 +1218,14 @@ if (!empty($getlogpodtl)) {
<td><?php echo $inde; ?></td>
<td><?php echo $oldpo->PONO ?></td>
<!--
<!- -
<?php if (isset($oldpo->logDate) && $oldpo->logDate != '-') {
$logdate = date('d-m-Y', strtotime($oldpo->logDate));
} else {
$logdate = '-';
} ?>
<td><?= $logdate; ?></td> -->
<td><?= $logdate; ?></td> - ->
<td><?php echo $oldpo->LineItemNos; ?></td>
<td><?php echo $oldpo->entity ?></td>
<?php if ($oldpo->entity == 'PO DateChanged') {
@ -1258,7 +1255,7 @@ if (!empty($getlogpodtl)) {
</tbody>
</table>
</div>
</div>
</div> -->
<?php } ?>
@ -1870,10 +1867,10 @@ if (!empty($getlogpodtl)) {
</div>
<!--End of Adding of freight in edit model -->
<br>
<center> <label>Cost of the product Per UOM</label></center>
<hr>
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row mt-3">
<div class="form-group col-md-6">
@ -2434,15 +2431,13 @@ if (!empty($getlogpodtl)) {
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="padding-left: 0px;">
<span>Freight Amt <?php echo $INR; ?></span>
<div class="form-group col-md-4">
<label>Freight Amt <?php echo $INR; ?> </label>
<?php
$data = array('name' => 'edittxtAfterFreight', 'value' => set_value('edittxtAfterFreight'), 'id' => 'edittxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!--End of Adding of freight in edit model -->
@ -4297,10 +4292,10 @@ if (!empty($getlogpodtl)) {
} else {
rowHtml += `<td>-</td>`;
}
rowHtml += `<td align="left">${quantity}</td>
rowHtml += `<td align="right">${quantity}</td>
<td align="left">${uom}</td>
<td align="left">${itemRate}</td>
<td align="left">${BasicAmt}</td>
<td align="right">${itemRate}</td>
<td align="right">${BasicAmt}</td>
<td>
<a data-target='#editimportpomodel' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#editimportpomodel">
<i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the ${Reqnumber} Requisition details"></i>

View File

@ -1451,7 +1451,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-3" id="TripsValue" style="display:none;">
<div class="form-group col-md-4" id="TripsValue" style="display:none;">
<label>NO Of Trips</label>
<?php
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');

View File

@ -198,13 +198,13 @@ function capitalValidate(){
alert('Please Enter the Dispatch Instruction');
$('#Deliverydate').focus();
return false;
} else if ($('#ExchangeRate').val() == '') {
} else if ($('#ExchangeRt').val() == '') {
alert('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
$('#ExchangeRt').focus();
return false;
} else if ($('#ExchangeRate').val() == 0) {
} else if ($('#ExchangeRt').val() == 0) {
alert('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
$('#ExchangeRt').focus();
return false;
} else if ($('#PlaceOforigin').val() == '') {
alert('Please Enter Place Of Origin');