From d78bd11df43a1358d61ea7e69b56b3da65c73b9f Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 2 Sep 2024 02:33:00 +0000 Subject: [PATCH] po unit test --- app/Views/EditservicePurchaseorder.php | 61 +- app/Views/capitalpurchaseorder.php | 2993 ++++++----- app/Views/editCapitalAmendPO.php | 3339 ++++++------ app/Views/editCapitalPo.php | 6577 ++++++++++++------------ app/Views/editImportAmendPO.php | 31 +- app/Views/editRevenueAmendPO.php | 18 +- app/Views/editRevenuepurchaseorder.php | 16 +- app/Views/editServiceAmendPO.php | 10 +- app/Views/editimportpo.php | 5569 ++++++++++---------- app/Views/importpo.php | 6 +- app/Views/purchaseorder.php | 6 +- app/Views/servicePurchaseorder.php | 8 +- 12 files changed, 9081 insertions(+), 9553 deletions(-) diff --git a/app/Views/EditservicePurchaseorder.php b/app/Views/EditservicePurchaseorder.php index a3d424eb..116e905e 100644 --- a/app/Views/EditservicePurchaseorder.php +++ b/app/Views/EditservicePurchaseorder.php @@ -143,8 +143,8 @@ if (!empty($getlogpodtl)) { }); $("#PODate").on("change", function() { - var minDate = $(this).datepicker("getDate"); - var maxDate = new Date(minDate.getFullYear() + 1, minDate.getMonth(), minDate.getDate()); + // var minDate = $(this).datepicker("getDate"); + // var maxDate = new Date(minDate.getFullYear() + 1, minDate.getMonth(), minDate.getDate()); }); --> @@ -3035,13 +3034,13 @@ $('#ServiceAppend').append(rowHtml); // this function is used to clear data changing schedule option $('#Scheduleby').change(function() { - $("#Deliverydt").datepicker({ - minDate: 'now', - dateFormat: 'mm/dd/yy', - changeMonth: true, - changeYear: true, - yearRange: '0:+10' - }); + // $("#Deliverydt").datepicker({ + // minDate: 'now', + // dateFormat: 'mm/dd/yy', + // changeMonth: true, + // changeYear: true, + // yearRange: '0:+10' + // }); }); diff --git a/app/Views/capitalpurchaseorder.php b/app/Views/capitalpurchaseorder.php index 5ba38180..bbdf2950 100644 --- a/app/Views/capitalpurchaseorder.php +++ b/app/Views/capitalpurchaseorder.php @@ -263,7 +263,7 @@

- Back + Back
@@ -395,7 +395,8 @@
'date','name' => 'Deliverydate', 'value' => set_value('Deliverydate', $CurrentDate), 'id' => 'Deliverydate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); + $formattedDate = $dt->format('Y-m-d'); + $data = array('type' => 'date', 'name' => 'Deliverydate', 'value' => set_value('Deliverydate', $formattedDate), 'id' => 'Deliverydate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); echo form_input($data); ?>
@@ -419,7 +420,8 @@
'Exchangerateon', 'value' => set_value('Exchangerateon', $CurrentDate), 'id' => 'Exchangerateon', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;'); + $formattedDate = $dt->format('Y-m-d'); + $data = array('type' => 'date', 'name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $formattedDate), 'id' => 'Exchangerateon', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;'); echo form_input($data); ?>
@@ -452,7 +454,8 @@
"date",'name' => 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); + $formattedDate = $dt->format('Y-m-d'); + $data = array('type' => "date", 'name' => 'PODate', 'value' => set_value('PODate', $formattedDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); echo form_input($data); ?>
@@ -596,7 +599,7 @@ Add Line Item - +
@@ -814,1557 +817,1399 @@
- - - - - - - - -
-
- -
- -
-
- -
- - - - - - - - - - - - - - - - - - - - Rate * $record->Quantity); - - ?> - - - - - - - - - - - - - - - - - - - - - - - - $record->MaterialCode, "ReqNo" => $record->ReqNo); - array_push($res_arr_values, $row); - ?> - - - - - " /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - After_CGST; - $TotalSgst = $TotalSgst + $record->After_SGST; - $TotalIgst = $TotalIgst + $record->After_IGST; - $OtherAmt = $OtherAmt + $record->otherallowance; - $TotalFreightvalue = $TotalFreightvalue + $record->Afvalue; - - - $TotalSummary = $TotalSummary + $record->ServiceTaxamount; - - $TotalDiscountedAmt = $record->Afterdiscountval; - - $ExitDiscountedAmt = $ExitDiscountedAmt + $record->Afterdiscountval; - - $totalCapitalOrder = $totalCapitalOrder + $record->Rate * $record->Quantity + $record->After_CGST + $record->After_SGST + $record->After_IGST + $record->otherallowance + $record->Afvalue - $TotalDiscountedAmt; - } - $TotalBasicAmount = $TotalBasicAmount + $record->BasicValue; - $ServiceDescription = $ServiceDescription; - - - if ($CapitalRange == '0') { - $TotalLanding = $TotalLanding + $record->AfterLandingCharge; - $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; - $totcustom = $totcustom + $record->AfterCustomDuty; - $totexciseduty = $totexciseduty + $record->AfterExciseDuty; - $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; - $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; - $totcustomED = $totcustomED + $record->AfterCustomEdCess; - - $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; - $totaddtnlexcise = $totaddtnlexcise + $record->AfterAddlExciseDuty; - $totgrossduty = $totgrossduty + $record->Grossdutypayable; - $totavlmodvat = $totavlmodvat + $record->AvailableModvat; - $TotalFreightAmt = $TotalFreightAmt + $record->AfterFreightValue; - - $totgrossexpense = $totgrossexpense + $record->Grossexpensesduetocustomduty; - $ExchangeRate = $record->ExchangeRate; - $totalCapitalOrder = $totalCapitalOrder + $record->Rate * $record->Quantity; - - - $totassesable = $totassesable + $record->AssessableValue; - $totSubtotal = $totSubtotal + $record->SubTotal; - $totigst = $totigst + $record->AfterIGST; - } - - - // $totorder=$totorder+$record->TotalOrderValue; - - - - - } - ?> - - - - - - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
ReqNo ?>MaterialCode ?>MaterialName ?>Quantity ?>UOM ?>Rate ?>Rate * $record->Quantity, 2, '.', '') ?>ServiceTaxamount; ?>Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?>Rate * $record->Quantity, 2, '.', '') ?>     - -    
-
- -
- -
-
- -
- - - - - - - -
-
-
-
- - - 'CapitalBasicOrder', 'value' => set_value('CapitalBasicOrder', number_format($ExitTotalBasicOrderValue, 2, '.', '')), 'id' => 'CapitalBasicOrder', 'class' => 'form-control num', 'readonly' => 'true',); - echo form_input($data); - ?> -
-
- - - 'txtTotalDiscount', 'value' => set_value('txtTotalDiscount', number_format($ExitDiscountedAmt, 2, '.', '')), 'id' => 'txtTotalDiscount', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> - -
-
- - 'txtTotCgst', 'value' => set_value('txtTotCgst', number_format($TotalCgst, 2, '.', '')), 'id' => 'txtTotCgst', 'class' => 'form-control num', 'readonly' => 'true'); - echo form_input($data); - ?> -
- - -
- - 'txtTotSgst', 'value' => set_value('txtTotSgst', number_format($TotalSgst, 2, '.', '')), 'id' => 'txtTotSgst', 'class' => 'form-control num', 'readonly' => 'true'); - echo form_input($data); - ?> -
-
- - 'txtTotIgst', 'value' => set_value('txtTotIgst', number_format($TotalIgst, 2, '.', '')), 'id' => 'txtTotIgst', 'class' => 'form-control num', 'readonly' => 'true'); - echo form_input($data); - ?> -
- -
- - 'TotalOtherAllowances', 'value' => set_value('TotalOtherAllowances', number_format($OtherAmt, 2, '.', '')), 'id' => 'TotalOtherAllowances', 'class' => 'form-control num', 'readonly' => 'true'); - echo form_input($data); - ?> - -
- - -
- - 'TotalFreight', 'value' => set_value('TotalFreight', number_format($TotalFreightvalue, 2, '.', '')), 'id' => 'TotalFreight', 'class' => 'form-control num', 'readonly' => 'true'); - echo form_input($data); - ?> - -
- - - -
- -
- -
- - - 'txttotallanding', 'value' => set_value('txttotallanding', number_format($TotalLanding, 2, '.', '')), 'id' => 'txttotallanding', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalAssessable', 'value' => set_value('txttotalAssessable', $totassesable), 'id' => 'txttotalAssessable', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustom', 'value' => set_value('txttotalcustom', number_format($totcustom, 2, '.', '')), 'id' => 'txttotalcustom', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalSubtotal', 'value' => set_value('txttotalSubtotal', $totSubtotal), 'id' => 'txttotalSubtotal', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - - - -
- - - 'txttotalIgst', 'value' => set_value('txttotalIgst', $totigst), 'id' => 'txttotalIgst', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - -
- - - 'txttotalcustomED', 'value' => set_value('txttotalcustomED', number_format($totcustomED, 2, '.', '')), 'id' => 'txttotalcustomED', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomSH', 'value' => set_value('txttotalcustomSH', number_format($totcustomSH, 2, '.', '')), 'id' => 'txttotalcustomSH', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txttotalgrossduty', 'value' => set_value('txttotalgrossduty', number_format($totgrossduty, 2, '.', '')), 'id' => 'txttotalgrossduty', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txtTotalFreight', 'value' => set_value('txtTotalFreight', number_format($TotalFreightAmt, 2, '.', '')), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> - -
- - - -
- -
-
- - - 'CapitalToatlOrder', 'value' => set_value('CapitalToatlOrder', number_format($totalCapitalOrder, 2, '.', '')), 'id' => 'CapitalToatlOrder', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
-
- - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - entity == 'PO DateChanged') { - $oldValue = date('d-m-Y', strtotime($oldpo->oldValue)); - } else { - $oldValue = $oldpo->oldValue; - } ?> - - - entity == 'PO DateChanged') { - $newValue = date('d-m-Y', strtotime($oldpo->newValue)); - } else { - $newValue = $oldpo->newValue; - } ?> - - - - - - - - - -
SnoPONOLineItemNoEntityOldValueNewValueUpdatedByUpdateOn
PONO ?>LineItemNos; ?>entity ?>SupplierName; ?>FirstName ?>UpdatedOn); - echo $date->format('d-m-Y'); ?>
-
-
- - -
- 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction', strip_tags($ServiceDescription)), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40'); - echo form_textarea($data); - ?> -
- -
- - - - -
+ 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
- - - - - - - - - -   Cancel - -   Save as Draft - -   Submit -   Approve - - OK - -   Submit -   OK - -   Submit -   OK - - - -
+ + + + +
+ + + 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); + // echo form_input($data); + + $data = array('name' => 'Dispatch', 'value' => set_value('Dispatch', $Import_DispatchDetails), 'id' => 'Dispatch', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110'); + echo Form_textarea($data); + ?> +
+
+ + + 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> + +
+ + + +
+ + + +
+ + +
+ 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + // echo form_input($data); + $data = array('name' => 'PlaceOforigin', 'value' => set_value('PlaceOforigin', $Import_PlaceofOrgin), 'id' => 'PlaceOforigin', 'class' => 'form-control', 'required' => 'true'); + echo form_input($data); + ?>
- - +
+
+
+ + + 'date', 'name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;'); + echo form_input($data); + ?> + +
+
+ + + + 'editmodeofshipment', 'value' => set_value('editmodeofshipment', $ModeOfShipment), 'id' => 'editmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> + +
+
+ + + + 'editsupplierreference', 'value' => set_value('editsupplierreference', $SupplierReference), 'id' => 'editsupplierreference', 'class' => 'form-control', 'maxlength' => '40'); + echo form_input($data); + ?> + +
+
+
+ + 'editsupplierofferno', 'value' => set_value('editsupplierofferno', $SuppliersOfferNo), 'id' => 'editsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + + ?> +
+
+
+ + +
+
+ +
+ + 'editotherreference', 'value' => set_value('editotherreference', $OtherReferences), 'id' => 'editotherreference', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ + + 'Select Work Status'); + + if (!empty($PoTypeOptions)) { + foreach ($PoTypeOptions as $POpt) : + if ($ServiceTypeOptions == $POpt->ConfigValue) { + $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; + } + endforeach; + foreach ($PoTypeOptions as $POpt1) : + if ($ServiceTypeOptions != $POpt1->ConfigValue) { + $optionsPO[$POpt1->ConfigValue] = $POpt1->ConfigValue; + } + endforeach; + } + + echo form_dropdown('PoTypeOptions', $optionsPO, set_value('PoTypeOptions'), 'id="PoTypeOptions" required="true" class="form-control select2"'); + + + ?> +
+
+ + PaymentTerms) { + $options6[$rl->PaymentID] = $rl->PaymentTerms; + } + endforeach; + + + if (!empty($Payment)) { + foreach ($Payment as $rl2) : + if ($PaymentTerms != $rl2->PaymentTerms) { + $options6[$rl2->PaymentID] = $rl2->PaymentTerms; + } + + endforeach; + } + + echo form_dropdown('PaymentMethod', $options6, set_value('PaymentMethod', $PaymentTerms), 'id="PaymentMethod"', 'required="true"', 'class="form-control select2"'); + + ?> + + + +
+ +
+ +
+
+ + + +
+
+ + 'InsuranceNumber', 'value' => set_value('InsuranceNumber', $InsuranceNumber), 'id' => 'InsuranceNumber', 'class' => 'form-control', 'required' => 'true'); + echo form_input($data); + ?> +
+
+ + +
+
+ +
+
+ + + + + + + + + + +
+
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + Rate * $record->Quantity); + + ?> + + + + + + + + + + + + + + + + + + + + + + + + $record->MaterialCode, "ReqNo" => $record->ReqNo); + array_push($res_arr_values, $row); + ?> + + + + + " /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + After_CGST; + $TotalSgst = $TotalSgst + $record->After_SGST; + $TotalIgst = $TotalIgst + $record->After_IGST; + $OtherAmt = $OtherAmt + $record->otherallowance; + $TotalFreightvalue = $TotalFreightvalue + $record->Afvalue; + + + $TotalSummary = $TotalSummary + $record->ServiceTaxamount; + + $TotalDiscountedAmt = $record->Afterdiscountval; + + $ExitDiscountedAmt = $ExitDiscountedAmt + $record->Afterdiscountval; + + $totalCapitalOrder = $totalCapitalOrder + $record->Rate * $record->Quantity + $record->After_CGST + $record->After_SGST + $record->After_IGST + $record->otherallowance + $record->Afvalue - $TotalDiscountedAmt; + } + $TotalBasicAmount = $TotalBasicAmount + $record->BasicValue; + $ServiceDescription = $ServiceDescription; + + + if ($CapitalRange == '0') { + $TotalLanding = $TotalLanding + $record->AfterLandingCharge; + $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; + $totcustom = $totcustom + $record->AfterCustomDuty; + $totexciseduty = $totexciseduty + $record->AfterExciseDuty; + $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; + $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; + $totcustomED = $totcustomED + $record->AfterCustomEdCess; + + $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; + $totaddtnlexcise = $totaddtnlexcise + $record->AfterAddlExciseDuty; + $totgrossduty = $totgrossduty + $record->Grossdutypayable; + $totavlmodvat = $totavlmodvat + $record->AvailableModvat; + $TotalFreightAmt = $TotalFreightAmt + $record->AfterFreightValue; + + $totgrossexpense = $totgrossexpense + $record->Grossexpensesduetocustomduty; + $ExchangeRate = $record->ExchangeRate; + $totalCapitalOrder = $totalCapitalOrder + $record->Rate * $record->Quantity; + + + $totassesable = $totassesable + $record->AssessableValue; + $totSubtotal = $totSubtotal + $record->SubTotal; + $totigst = $totigst + $record->AfterIGST; + } + + + // $totorder=$totorder+$record->TotalOrderValue; + + + + + } + ?> + + + + + + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
ReqNo ?>MaterialCode ?>MaterialName ?>Quantity ?>UOM ?>Rate ?>Rate * $record->Quantity, 2, '.', '') ?>ServiceTaxamount; ?>Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?>Rate * $record->Quantity, 2, '.', '') ?>     + +    
+
+ + + + + + + +
+
+ + + 'CapitalBasicOrder', 'value' => set_value('CapitalBasicOrder', number_format($ExitTotalBasicOrderValue, 2, '.', '')), 'id' => 'CapitalBasicOrder', 'class' => 'form-control num', 'readonly' => 'true',); + echo form_input($data); + ?> +
+
+ + + 'txtTotalDiscount', 'value' => set_value('txtTotalDiscount', number_format($ExitDiscountedAmt, 2, '.', '')), 'id' => 'txtTotalDiscount', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> + +
+
+ + 'txtTotCgst', 'value' => set_value('txtTotCgst', number_format($TotalCgst, 2, '.', '')), 'id' => 'txtTotCgst', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + 'txtTotSgst', 'value' => set_value('txtTotSgst', number_format($TotalSgst, 2, '.', '')), 'id' => 'txtTotSgst', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + 'txtTotIgst', 'value' => set_value('txtTotIgst', number_format($TotalIgst, 2, '.', '')), 'id' => 'txtTotIgst', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + 'TotalOtherAllowances', 'value' => set_value('TotalOtherAllowances', number_format($OtherAmt, 2, '.', '')), 'id' => 'TotalOtherAllowances', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+ + 'TotalFreight', 'value' => set_value('TotalFreight', number_format($TotalFreightvalue, 2, '.', '')), 'id' => 'TotalFreight', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+ +
+ +
+ + + 'txttotallanding', 'value' => set_value('txttotallanding', number_format($TotalLanding, 2, '.', '')), 'id' => 'txttotallanding', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalAssessable', 'value' => set_value('txttotalAssessable', $totassesable), 'id' => 'txttotalAssessable', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustom', 'value' => set_value('txttotalcustom', number_format($totcustom, 2, '.', '')), 'id' => 'txttotalcustom', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalSubtotal', 'value' => set_value('txttotalSubtotal', $totSubtotal), 'id' => 'txttotalSubtotal', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalIgst', 'value' => set_value('txttotalIgst', $totigst), 'id' => 'txttotalIgst', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomED', 'value' => set_value('txttotalcustomED', number_format($totcustomED, 2, '.', '')), 'id' => 'txttotalcustomED', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH', 'value' => set_value('txttotalcustomSH', number_format($totcustomSH, 2, '.', '')), 'id' => 'txttotalcustomSH', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalgrossduty', 'value' => set_value('txttotalgrossduty', number_format($totgrossduty, 2, '.', '')), 'id' => 'txttotalgrossduty', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txtTotalFreight', 'value' => set_value('txtTotalFreight', number_format($TotalFreightAmt, 2, '.', '')), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> + +
+ + + +
+ +
+
+ + + 'CapitalToatlOrder', 'value' => set_value('CapitalToatlOrder', number_format($totalCapitalOrder, 2, '.', '')), 'id' => 'CapitalToatlOrder', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity == 'PO DateChanged') { + $oldValue = date('d-m-Y', strtotime($oldpo->oldValue)); + } else { + $oldValue = $oldpo->oldValue; + } ?> + + + entity == 'PO DateChanged') { + $newValue = date('d-m-Y', strtotime($oldpo->newValue)); + } else { + $newValue = $oldpo->newValue; + } ?> + + + + + + + + + +
SnoPONOLineItemNoEntityOldValueNewValueUpdatedByUpdateOn
PONO ?>LineItemNos; ?>entity ?>SupplierName; ?>FirstName ?>UpdatedOn); + echo $date->format('d-m-Y'); ?>
+
+
+ + +
+
+ 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction', strip_tags($ServiceDescription)), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40'); + echo form_textarea($data); + ?> +
+
+ +
+
+ + + + +
+
+ + + + + + + + + +   Cancel + +   Save as Draft + +   Submit +   Approve + + OK + +   Submit +   OK + +   Submit +   OK + + + + +
+ +
+
+ + 'AWAITING APPROVE', + 'AWAITING RELEASE' => 'AWAITING APPROVE', + 'RELEASER ONHOLD' => 'APPROVER ONHOLD', + 'PO RELEASED' => 'PO APPROVED', + ]; + + if (isset($PoStatusName) && !empty($PoStatusName)) { + if (isset($statusMappings[$PoStatusName])) { + echo $statusMappings[$PoStatusName]; + } else { + echo $PoStatusName; + } + } else { + echo "Status not provided"; + } + ?> + + + + + - + + + +
+
+
+
+
+
+ Basic Price +
+ +
+
+ 'EditAfterBasicPriceTax', 'value' => set_value('EditAfterBasicPriceTax'), 'id' => 'EditAfterBasicPriceTax', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
+
+ Landing charge +
+
+
+ 'EditLandingCharge', 'value' => set_value('EditLandingCharge'), 'id' => 'EditLandingCharge', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();'); + echo form_input($data); + ?> +
+
+
+
+ 'EditAfterLandingCharge', 'value' => set_value('EditAfterLandingCharge'), 'id' => 'EditAfterLandingCharge', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
+
+ Assessable Value (A) +
+
+ +
+
+
+ 'EditAfterAssessable', 'value' => set_value('EditAfterAssessable'), 'id' => 'EditAfterAssessable', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
+
+ Custom duty (B) +
+
+
+ 'EditCustomduty', 'value' => set_value('EditCustomduty'), 'id' => 'EditCustomduty', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();'); + echo form_input($data); + ?> +
+
+
+
+ 'EditAfterCustomduty', 'value' => set_value('EditAfterCustomduty'), 'id' => 'EditAfterCustomduty', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + +
+
+ Custom ED_cess (C) +
+
+
+ 'EditCustomEDcess', 'value' => set_value('EditCustomEDcess'), 'id' => 'EditCustomEDcess', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();'); + echo form_input($data); + ?> +
+
+
+
+ 'EditAfterCustomEDcess', 'value' => set_value('EditAfterCustomEDcess'), 'id' => 'EditAfterCustomEDcess', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
+
+ Custom S & H cess (D) +
+
+
+ 'EditCustomSHcess', 'value' => set_value('EditCustomSHcess'), 'id' => 'EditCustomSHcess', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();'); + echo form_input($data); + ?> +
+
+
+
+ 'EditAfterCustomSHcess', 'value' => set_value('EditAfterCustomSHcess'), 'id' => 'EditAfterCustomSHcess', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
+
+
+
+ Subtotal (E) +
+
+ +
+
+
+ 'EditSubtotal', 'value' => set_value('EditSubtotal'), 'id' => 'EditSubtotal', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + + + + +
+
+ + IGST on (E): (F) +
+
+
+ 'EditIgstInt ', 'value' => set_value('EditIgstInt', 0), 'id' => 'EditIgstInt', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateIgst()'); + echo form_input($data); + ?> +
+
+
+
+ 'EditAfterIgstInt', 'value' => set_value('EditAfterIgstInt', 0), 'id' => 'EditAfterIgstInt', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + + + + + +
+
+ Total Duty (G) +
+
+
+ 'EditGrossdutypayable ', 'value' => set_value('EditGrossdutypayable'), 'id' => 'EditGrossdutypayable', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + +
+
+ Freight Type +
+ 'Select Freight Type'); + //print_r( $options); + + if (!empty($FreightType)) { + foreach ($FreightType as $SID) : + + + $options[$SID->ConfigValue] = $SID->ConfigValue; + + endforeach; + } + + echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "'); + + ?> +
+
+ +
+ Freight Rate +
+ 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);'); + echo form_input($data); + ?> +
+
+ +
+ Freight Amt +
+ 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ +
+ + +
+
+
+
+
+
+ Duty Impact +
+
+
+ 'EditDutyImpact', 'value' => set_value('EditDutyImpact'), 'id' => 'EditDutyImpact', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ Quantity +
+ 'EditPurQuantity', 'value' => set_value('EditPurQuantity'), 'id' => 'EditPurQuantity', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();'); + echo form_input($data); + ?> +
+
+ +
+
+ +
+ Custom Duty Expenses +
+
+
+ 'EditCustomDutyExpenses ', 'value' => set_value('EditCustomDutyExpenses'), 'id' => 'EditCustomDutyExpenses', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ +
+
+
+ Clearing Charges +
+
+
+ 'EditClearingCharges', 'value' => set_value('EditClearingCharges'), 'id' => 'EditClearingCharges', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();'); + echo form_input($data); + ?> +
+
+ + + + +
+ + +
+
+
+ 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + + +
+ + +
+ +
+
+ + + + 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40'); + echo form_textarea($data); ?> + +
+ + + + + + + -

+

- -
'EditimBasicPrice', 'value' => set_value('EditimBasicPrice'), 'id' => 'EditimBasicPrice', 'class' => 'form-control num', 'placeholder ' => 'basic price', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true'); echo form_input($data); ?> -
+
@@ -844,7 +842,7 @@ if (!empty($RequistionDetails)) {
-->
-
+
@@ -1093,10 +1091,10 @@ if (!empty($RequistionDetails)) {
-
+
-
-
+
+
Duty Impact @@ -1109,7 +1107,7 @@ if (!empty($RequistionDetails)) { ?>
-
+
Quantity
- - - +
+
@@ -1198,7 +1195,7 @@ if (!empty($RequistionDetails)) {
@@ -1357,7 +1354,7 @@ if (!empty($RequistionDetails)) { // if($PONOStatus == PO_DRAFT) // { ?> -     +     @@ -2435,7 +2432,7 @@ if (!empty($RequistionDetails)) { - + $(document).ready(function() { $('#editimportpomodel').on("shown.bs.modal", function(e) { userid = $(e.relatedTarget).data('userid'); @@ -2580,7 +2577,7 @@ if (!empty($RequistionDetails)) { }); } - }); + });}); $('.EditImport').click(function() { diff --git a/app/Views/editRevenueAmendPO.php b/app/Views/editRevenueAmendPO.php index efc5eef4..0a32d1ac 100644 --- a/app/Views/editRevenueAmendPO.php +++ b/app/Views/editRevenueAmendPO.php @@ -1289,9 +1289,9 @@ if (!empty($INRSYMBOL)) { - + - @@ -1426,7 +1426,7 @@ if (!empty($INRSYMBOL)) {
- + @@ -1527,7 +1527,7 @@ if (!empty($INRSYMBOL)) {
@@ -1885,7 +1885,7 @@ if (!empty($INRSYMBOL)) {
@@ -1977,7 +1977,7 @@ if (!empty($INRSYMBOL)) { @@ -1985,7 +1985,7 @@ if (!empty($INRSYMBOL)) { - --> @@ -329,13 +313,13 @@ if (!empty($getlogpodtl)) { var t = ''; var m = new Date(t); - $("#PODate").datepicker({ - //minDate : d, - //maxDate : 'now', - dateFormat: 'dd-mm-yy', - changeMonth: true, - changeYear: true - }); //,yearRange: '-100:+0' + // $("#PODate").datepicker({ + // //minDate : d, + // //maxDate : 'now', + // dateFormat: 'dd-mm-yy', + // changeMonth: true, + // changeYear: true + // }); //,yearRange: '-100:+0' // $("#PayableAT").datepicker({ // minDate : m, @@ -347,2730 +331,2699 @@ if (!empty($getlogpodtl)) { // dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10' // }); - $("#Requeston").datepicker({ - //minDate : d, - maxDate: 'now', - dateFormat: 'dd/mm/yy', - changeMonth: true, - changeYear: true, - yearRange: '-100:+0' - }); + // $("#Requeston").datepicker({ + // //minDate : d, + // maxDate: 'now', + // dateFormat: 'dd/mm/yy', + // changeMonth: true, + // changeYear: true, + // yearRange: '-100:+0' + // }); - $("#Exchangerateon").datepicker({ - minDate: m, - //maxDate : 'now', - dateFormat: 'dd-mm-yy', - changeMonth: true, - changeYear: true, - yearRange: '-100:+0' - }); + // $("#Exchangerateon").datepicker({ + // minDate: m, + // //maxDate : 'now', + // dateFormat: 'dd-mm-yy', + // changeMonth: true, + // changeYear: true, + // yearRange: '-100:+0' + // }); });
-
- -
- -
-
-
- -

- -

- - Back -
-
-
- - -
-
-
-
- -
- -
- 'form-label-left ImportPO ', 'name' => 'ImportPO', 'id' => 'ImportPO', 'enctype' => 'multipart/form-data'); - - echo form_open(base_url() . '/purchaseorder/addPO/', $attributes); ?> - - - - -
-
- - +
+ +
+ +
+
+
+ +

+ +

+ + Back +
+
-
-
-
-
- - + +
+
+
+
- $options = array("0" => 'Selected Requisition Numbers'); - if (!empty($ReqList)) { - foreach ($ReqList as $SID) : - $options[$SID->ReqNo] = $SID->ReqNo; - // print_r($SID->ReqNo); - // $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; - //$ReqType = $SID->ReqType; - endforeach; - } - //echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); - echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"', 'height="400px"'); - - ?> -
-
- -
- - 'POType', 'value' => set_value('POType', IMPORT), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true'); - echo form_input($data); - ?> -
-
-
- 'Select Supplier'); - //print_r( $options); - if (!empty($Suplist)) { - foreach ($Suplist as $SID) : - $options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName; - endforeach; - } + $attributes = array('class' => 'form-label-left ImportPO ', 'name' => 'ImportPO', 'id' => 'ImportPO', 'enctype' => 'multipart/form-data'); - //echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); - - echo form_dropdown('drpSupplier', $options, set_value('drpSupplier', $SupId), 'id="drpSupplier"', 'required="true"', 'class="form-control select2'); - - ?> - - -
-
- -
- 'SupAddress', 'value' => set_value('SupAddress', $Address), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); + echo form_open(base_url() . '/purchaseorder/addPO/', $attributes); ?> - ?> -
-
-
-
-
-
-
- - Currency_Code) { - $options1[$Cur->Currency_Code] = $Cur->Currency_Code . ' ' . ' - ' . ' ' . $Cur->Country_and_Currency; +
+
+ + 'Selected Requisition Numbers'); + if (!empty($ReqList)) { + foreach ($ReqList as $SID) : + $options[$SID->ReqNo] = $SID->ReqNo; + // print_r($SID->ReqNo); + // $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; + //$ReqType = $SID->ReqType; + endforeach; } - endforeach; + //echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); + echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"', 'height="400px"'); + ?> +
+
+ +
- foreach ($Currency as $Cur) : - if ($Currency_Type != $Cur->Currency_Code) { - $options1[$Cur->Currency_Code] = $Cur->Currency_Code . ' ' . ' - ' . ' ' . $Cur->Country_and_Currency; + 'POType', 'value' => set_value('POType', IMPORT), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + 'Select Supplier'); + //print_r( $options); + if (!empty($Suplist)) { + foreach ($Suplist as $SID) : + $options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName; + endforeach; } - endforeach; - } - echo form_dropdown('currencytype', $options1, set_value('currencytype', $Currency_Type), 'id="currencytype"', 'class="form-control select2"', 'required="true"'); + //echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2"'); - ?> -
-
- Select Delivery By*
-
+ echo form_dropdown('drpSupplier', $options, set_value('drpSupplier', $SupId), 'id="drpSupplier" required="true" class="form-control select2"'); - "DateRange", "id" => "Date", "value" => "2", 'checked' => 'checked')); ?>     - "DateRange", "id" => "Schedule", "value" => "1")); ?> + ?> + + +
+
+ +
+ 'SupAddress', 'value' => set_value('SupAddress', $Address), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + + + + + ?> +
+
-
- -
- +
+
+ + 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); - // echo form_input($data); + foreach ($Currency as $Cur) : + if ($Currency_Type == $Cur->Currency_Code) { + $options1[$Cur->Currency_Code] = $Cur->Currency_Code . ' ' . ' - ' . ' ' . $Cur->Country_and_Currency; + } + endforeach; - $data = array('name' => 'Dispatch', 'value' => set_value('Dispatch', $Import_DispatchDetails), 'id' => 'Dispatch', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110'); - echo Form_textarea($data); - ?> -
-
- -
- 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> + foreach ($Currency as $Cur) : + if ($Currency_Type != $Cur->Currency_Code) { + $options1[$Cur->Currency_Code] = $Cur->Currency_Code . ' ' . ' - ' . ' ' . $Cur->Country_and_Currency; + } + endforeach; + } + + echo form_dropdown('currencytype', $options1, set_value('currencytype', $Currency_Type), 'id="currencytype" class="form-control select2" required="true"'); + + ?> +
+
+ Select Delivery By*
+
+ + "DateRange", "id" => "Date", "value" => "2", 'checked' => 'checked')); ?>     + "DateRange", "id" => "Schedule", "value" => "1")); ?> +
+
+ +
+ + + 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); + // echo form_input($data); + + $data = array('name' => 'Dispatch', 'value' => set_value('Dispatch', $Import_DispatchDetails), 'id' => 'Dispatch', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110'); + echo Form_textarea($data); + ?> + +
+
+ +
+ 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
-
-
-
-
-
-
- Check Today's Foreign Exchange value (Click here) -
-
- -
- 'Exchangerateon', 'value' => set_value('Exchangerateon', $ExchangeRateCalculatedon), 'id' => 'Exchangerateon', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;'); - echo form_input($data); - ?> -
-
-
- - -
- 'ExchangeRate', 'value' => set_value('ExchangeRate', $ExchangeRate), 'id' => 'ExchangeRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'USRate()'); - echo form_input($data); - ?> -
-
-
- -
+ +
+
+ Check Today's Foreign Exchange value (Click here) +
+
+ +
+ 'date', 'name' => 'Exchangerateon', 'value' => set_value('Exchangerateon', $ExchangeRateCalculatedon), 'id' => 'Exchangerateon', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;'); + echo form_input($data); + ?> +
+
+
+ + + + + 'ExchangeRate', 'value' => set_value('ExchangeRate', $ExchangeRate), 'id' => 'ExchangeRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'USRate()'); + echo form_input($data); + ?> + +
+
+ + 'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); // echo form_input($data); $data = array('name' => 'PlaceOforigin', 'value' => set_value('PlaceOforigin', $Import_PlaceofOrgin), 'id' => 'PlaceOforigin', 'class' => 'form-control', 'required' => 'true'); echo form_input($data); ?> -
-
-
-
-
-
-
- -
- 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); - echo form_input($data); - ?> -
-
-
- -
- - 'editmodeofshipment', 'value' => set_value('editmodeofshipment', $Shipmentmode), 'id' => 'editmodeofshipment', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
- -
- - 'editsupplierreference', 'value' => set_value('editsupplierreference', $SupplierRef), 'id' => 'editsupplierreference', 'class' => 'form-control', 'maxlength' => '40'); - echo form_input($data); - ?> -
-
-
- -
- - 'editsupplierofferno', 'value' => set_value('editsupplierofferno', $SupOfferno), 'id' => 'editsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
-
-
-
-
- -
- - 'editotherreference', 'value' => set_value('editotherreference', $Otherref), 'id' => 'editotherreference', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
- - 'Select Import Option'); - if (!empty($PoTypeOptions)) { - foreach ($PoTypeOptions as $payment) : - - if ($Importoption == $payment->ConfigValue) { - $options2[$payment->ConfigValue] = $payment->ConfigValue; - } - - endforeach; - foreach ($PoTypeOptions as $payment) : - - if ($Importoption != $payment->ConfigValue) { - - $options2[$payment->ConfigValue] = $payment->ConfigValue; - } - endforeach; - } - - echo form_dropdown('Importoption', $options2, set_value('Importoption'), 'id="Importoption"', 'class="form-control"'); ?> -
-
- - - PaymentID) { - ?> - - PaymentID] = $pay2->PaymentTerms; - } - - foreach ($Payment as $pay1) : - - if ($Terms != $pay1->PaymentID) { - $optionsPay[$pay1->PaymentID] = $pay1->PaymentTerms; - } - endforeach; - } - echo form_dropdown('PaymentTerms', $optionsPay, set_value('PaymentTerms'), 'id="PaymentTerms"', 'required="true"', 'class="form-control select2'); ?> - -
- -
-
-
-
-
- - -
- -
- - -
-
-
-
-
-
- -
-
-
-
- -
- -
- - - - - - - -
-
- - -
+
+
+
+
+ +
+ +
+ + + + + + + +
+
+ + + + + -
-
-
- - - - - - - - - - - - - - - +
+
+
SNoRequisition NoMaterial CodeDescriptionQuantityUOMRateBasic AmountAction
+ + + + + + + + + + + + + + + - - + Rate; + foreach ($POItem as $record) { + $index = $index + 1; + //echo $record->Rate; - ?> - - - - - - - - - - - - - + + + - - + + - - " /> + + " /> - - - - - - - - - - - + + + + + + + + + + + - - + + - + - + - + - + - + - + - - + + - - + - - + + - + - - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + + + AfterLandingCharge + $TotalLanding; - $TotalLanding = $TotalLanding + ($record->AfterLandingCharge); - $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; - $totcustom = $totcustom + $record->AfterCustomDuty; - $totexciseduty = $totexciseduty + $record->AfterExciseDuty; - $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; - $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; - $totcustomED = $totcustomED + $record->AfterCustomEdCess; + //echo $record->AfterLandingCharge + $TotalLanding; + $TotalLanding = $TotalLanding + ($record->AfterLandingCharge); + $tothighseas = $tothighseas + $record->AfterHighSeasSalesCharge; + $totcustom = $totcustom + $record->AfterCustomDuty; + $totexciseduty = $totexciseduty + $record->AfterExciseDuty; + $totexcisedutyED = $totexcisedutyED + $record->AfterExciseDutyEdCess; + $totexciseSH = $totexciseSH + $record->AfterExciseDutySHCess; + $totcustomED = $totcustomED + $record->AfterCustomEdCess; - $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; - $totaddtnlexcise = $totaddtnlexcise + $record->AfterAddlExciseDuty; - $totgrossduty = $totgrossduty + $record->Grossdutypayable; - // $totavlmodvat = $totavlmodvat +$record->AvailableModvat; - //$totgrossduty=$totgrossduty+$record->Grossdutypayable; - $totavlmodvat = $totavlmodvat + $record->AvailableModvat; - $totgrossexpense = $totgrossexpense + $record->Grossexpensesduetocustomduty; - $ExchangeRate = $record->ExchangeRate; - //echo $totorder; - $totorder = $totorder + $record->TotalOrderValue; + $totcustomSH = $totcustomSH + $record->AfterCustomSHCess; + $totaddtnlexcise = $totaddtnlexcise + $record->AfterAddlExciseDuty; + $totgrossduty = $totgrossduty + $record->Grossdutypayable; + // $totavlmodvat = $totavlmodvat +$record->AvailableModvat; + //$totgrossduty=$totgrossduty+$record->Grossdutypayable; + $totavlmodvat = $totavlmodvat + $record->AvailableModvat; + $totgrossexpense = $totgrossexpense + $record->Grossexpensesduetocustomduty; + $ExchangeRate = $record->ExchangeRate; + //echo $totorder; + $totorder = $totorder + $record->TotalOrderValue; - //echo $totorder; + //echo $totorder; - $totfreight = $totfreight + $record->AfterFreightValue; + $totfreight = $totfreight + $record->AfterFreightValue; - $totassesable = $totassesable + $record->AssessableValue; - $totSubtotal = $totSubtotal + $record->SubTotal; - $totigst = $totigst + $record->AfterIGST; + $totassesable = $totassesable + $record->AssessableValue; + $totSubtotal = $totSubtotal + $record->SubTotal; + $totigst = $totigst + $record->AfterIGST; - //echo $totcustomED; - // $totorder=$record->TotalOrderValue; - // //$ServiceDescription=$record->ServiceDescription; - // echo $totorder; - //alert($totorder); + //echo $totcustomED; + // $totorder=$record->TotalOrderValue; + // //$ServiceDescription=$record->ServiceDescription; + // echo $totorder; + //alert($totorder); - } + } - ?> - - - - - - - - - -
SNoRequisition NoMaterial CodeDescriptionQuantityUOMRateBasic AmountAction
ReqNo ?>MaterialCode ?>MaterialName ?>Quantity ?>UOM ?>Rate ?>BasicValue ?>     - -    
    + +    
-
- -
- -
-
- - - 'txttotallanding', 'value' => set_value('txttotallanding', $TotalLanding), 'id' => 'txttotallanding', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalAssessable', 'value' => set_value('txttotalAssessable', $totassesable), 'id' => 'txttotalAssessable', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalcustom', 'value' => set_value('txttotalcustom', $totcustom), 'id' => 'txttotalcustom', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalSubtotal', 'value' => set_value('txttotalSubtotal', $totSubtotal), 'id' => 'txttotalSubtotal', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalIgst', 'value' => set_value('txttotalIgst', $totigst), 'id' => 'txttotalIgst', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txttotalcustomED', 'value' => set_value('txttotalcustomED', $totcustomED), 'id' => 'txttotalcustomED', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomSH', 'value' => set_value('txttotalcustomSH', $totcustomSH), 'id' => 'txttotalcustomSH', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - - -
- - - 'txttotalgrossduty', 'value' => set_value('txttotalgrossduty', $totgrossduty), 'id' => 'txttotalgrossduty', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
- - - - - - -
- 'txtTotalFreight', 'value' => set_value('txtTotalFreight', $totfreight), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'required' => 'true', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); ?> -
+ + + - 'txtToatlOrder', 'value' => set_value('txtToatlOrder', $totorder), 'id' => 'txtToatlOrder', 'class' => 'form-control', 'required' => 'true', 'readonly' => 'true', 'style' => 'text-align:right;'); - echo form_input($data); - ?> -
+ //echo $to; + $TotalLanding = number_format($TotalLanding, 2, '.', ''); + $tothighseas = number_format($tothighseas, 2, '.', ''); + $totcustom = number_format($totcustom, 2, '.', ''); + $totexciseduty = number_format($totexciseduty, 2, '.', ''); + $totexcisedutyED = number_format($totexcisedutyED, 2, '.', ''); + $totexciseSH = number_format($totexciseSH, 2, '.', ''); + $totcustomED = number_format($totcustomED, 2, '.', ''); + $totcustomSH = number_format($totcustomSH, 2, '.', ''); + $totaddtnlexcise = number_format($totaddtnlexcise, 2, '.', ''); + $totgrossduty = number_format($totgrossduty, 2, '.', ''); + $totavlmodvat = number_format($totavlmodvat, 2, '.', ''); + $totgrossexpense = number_format($totgrossexpense, 2, '.', ''); + $totfreight = number_format($totfreight, 2, '.', ''); - -
- > - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - entity == 'PO DateChanged') { - $oldValue = date('d-m-Y', strtotime($oldpo->oldValue)); - } else { - $oldValue = $oldpo->oldValue; - } ?> - - - entity == 'PO DateChanged') { - $newValue = date('d-m-Y', strtotime($oldpo->newValue)); - } else { - $newValue = $oldpo->newValue; - } ?> - - - - - - - - - - -
SnoPONOLineItemNoEntityOldValueNewValueUpdatedByUpdateOn
PONO ?>LineItemNos; ?>entity ?>SupplierName; ?>FirstName ?>UpdatedOn); - echo $date->format('d-m-Y'); ?>
-
-
- - -
-
- 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction', strip_tags($ServiceDescription)), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40'); - echo form_textarea($data); - ?> -
-
-
- -

- - - - - - - - - - - -   Cancel - -   Save as Draft - -   Submit -   Approve - - - - - - OK - - - -   Submit -   Approve - OK - - - -
-
-
- -
-
- 'AWAITING APPROVE', - 'AWAITING RELEASE' => 'AWAITING APPROVE', - 'RELEASER ONHOLD' => 'APPROVER ONHOLD', - 'PO RELEASED' => 'PO APPROVED', - ]; - - if (isset($StatusName) && !empty($StatusName)) { - if (isset($statusMappings[$StatusName])) { - echo $statusMappings[$StatusName]; - } else { - echo $StatusName; - } - } else { - echo "Status not provided"; + $totassesable = number_format($totassesable, 2, '.', ''); + $totSubtotal = number_format($totSubtotal, 2, '.', ''); + $totigst = number_format($totigst, 2, '.', ''); } ?> -
-
-
-
-
+ + + +
+ +
+ +
+
+ + + 'txttotallanding', 'value' => set_value('txttotallanding', $TotalLanding), 'id' => 'txttotallanding', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalAssessable', 'value' => set_value('txttotalAssessable', $totassesable), 'id' => 'txttotalAssessable', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalcustom', 'value' => set_value('txttotalcustom', $totcustom), 'id' => 'txttotalcustom', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalSubtotal', 'value' => set_value('txttotalSubtotal', $totSubtotal), 'id' => 'txttotalSubtotal', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalIgst', 'value' => set_value('txttotalIgst', $totigst), 'id' => 'txttotalIgst', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ + + 'txttotalcustomED', 'value' => set_value('txttotalcustomED', $totcustomED), 'id' => 'txttotalcustomED', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH', 'value' => set_value('txttotalcustomSH', $totcustomSH), 'id' => 'txttotalcustomSH', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ + + 'txttotalgrossduty', 'value' => set_value('txttotalgrossduty', $totgrossduty), 'id' => 'txttotalgrossduty', 'class' => 'form-control', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ + + + + + +
+ 'txtTotalFreight', 'value' => set_value('txtTotalFreight', $totfreight), 'id' => 'txtTotalFreight', 'class' => 'form-control', 'required' => 'true', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ + + + +
+ 'txtToatlOrder', 'value' => set_value('txtToatlOrder', $totorder), 'id' => 'txtToatlOrder', 'class' => 'form-control', 'required' => 'true', 'readonly' => 'true', 'style' => 'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ > + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + entity == 'PO DateChanged') { + $oldValue = date('d-m-Y', strtotime($oldpo->oldValue)); + } else { + $oldValue = $oldpo->oldValue; + } ?> + + + entity == 'PO DateChanged') { + $newValue = date('d-m-Y', strtotime($oldpo->newValue)); + } else { + $newValue = $oldpo->newValue; + } ?> + + + + + + + + + + +
SnoPONOLineItemNoEntityOldValueNewValueUpdatedByUpdateOn
PONO ?>LineItemNos; ?>entity ?>SupplierName; ?>FirstName ?>UpdatedOn); + echo $date->format('d-m-Y'); ?>
+
+
+ + +
+
+ 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction', strip_tags($ServiceDescription)), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40'); + echo form_textarea($data); + ?> +
+
+
+ +

+ + + + + + + + + + + +   Cancel + +   Save as Draft + +   Submit +   Approve + + + + + + OK + + + +   Submit +   Approve + OK + + + +
+
+
+ +
+
+ 'AWAITING APPROVE', + 'AWAITING RELEASE' => 'AWAITING APPROVE', + 'RELEASER ONHOLD' => 'APPROVER ONHOLD', + 'PO RELEASED' => 'PO APPROVED', + ]; + + if (isset($StatusName) && !empty($StatusName)) { + if (isset($statusMappings[$StatusName])) { + echo $statusMappings[$StatusName]; + } else { + echo $StatusName; + } + } else { + echo "Status not provided"; + } + ?> +
+ +
+
-
-
-
-
- + + + + + + + + + --> @@ -3312,7 +3312,7 @@ var rowHtml = ` ${TotalOrderValue} - +     diff --git a/app/Views/servicePurchaseorder.php b/app/Views/servicePurchaseorder.php index 8a4b56f3..5d85c086 100644 --- a/app/Views/servicePurchaseorder.php +++ b/app/Views/servicePurchaseorder.php @@ -586,7 +586,7 @@ if (!empty($INRSYMBOL)) { @@ -1517,7 +1517,7 @@ echo form_dropdown('insuranceStatus', $optionsInsurance, set_value('insuranceSta @@ -1542,7 +1542,7 @@ echo form_dropdown('insuranceStatus', $optionsInsurance, set_value('insuranceSta <%=TotalValue%> -     +     @@ -1756,7 +1756,7 @@ echo form_dropdown('insuranceStatus', $optionsInsurance, set_value('insuranceSta ${TotalOrderValue} - +