diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index b2413823..e16b0ee6 100644 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -116,7 +116,9 @@ class purchaseorder extends BaseController $this->global['pageTitle'] = 'Siddharth : Purchase order' ; $data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006'); $data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018'); - $data['Suplist'] = $this->purchaseorder_model->getSupplierName(); + $data['Suplist'] = $this->purchaseorder_model->getSupplierName(); + //$data['Suplist'] = $this->purchaseorder_model->getSupplierName(); + $data['Payment']=$this->purchaseorder_model->getSupplierPayment(); $SelectedReq = json_decode($this->input->post('txtReqNo')); $Req = $SelectedReq->Req; @@ -237,6 +239,7 @@ class purchaseorder extends BaseController endforeach; $data['MaterialList'] = $result;//$this->purchaseorder_model->getRawMaterialList($ReqType,$ReqArray); $data['Suplist'] = $this->purchaseorder_model->getSupplierName(); + $data['Payment']=$this->purchaseorder_model->getSupplierPayment(); /* Cost code from Requisition - Client Review Fix Start here */ $ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray); @@ -266,6 +269,11 @@ class purchaseorder extends BaseController $exRate=$Exc->ExchangeRate; } + foreach ($data['POMaster'] as $TER) + { + $PAYTERM=$TER->PaymentTerms; + } + //print_r($exRate); //$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate(); $data['MaxPODate'] = $this->purchaseorder_model->getLastReleasedPODate(); @@ -300,19 +308,25 @@ class purchaseorder extends BaseController // print_r($data); $data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetails($PONO); $data['Currency']=$this->purchaseorder_model->GetCurrencytype(); - - // foreach($data['POMaster'] as $CUR) - // { - - // //print_r($CUR->CurrencyType); - // $Currency=$CUR->Currency_Code; - // // $data[$Rate->ExchangeRate]=$Rate->ExchangeRate; - // } - // $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency); - // //print_r($data['CurrencyDetail']); - + foreach($data['POMaster'] as $CUR) + { + + //print_r($CUR->CurrencyType); + $Currency=$CUR->CurrencyType; + + } + // $data[$Rate->ExchangeRate]=$Rate->ExchangeRate; + $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency); + $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO); + //print_r($data['PaymentTerms']); + foreach ($data['CurrencyDetail'] as $Detail) + { + $unicode=$Detail->FontCode2000; + } + //print_r($unicode); + $data['unicode']=$unicode; $this->global['pageTitle'] = 'Siddharth : Edit Import Purchase order form'; $this->loadViews("editimportpo", $this->global, $data, NULL); } @@ -920,8 +934,7 @@ public function importpoprint($PONO) - - function addNewImportPurchaseOrder() +function addNewImportPurchaseOrder() {//echo ("ggh"); $POdt =$this->input->post('PODate'); @@ -961,9 +974,12 @@ public function importpoprint($PONO) $Exchangerate=$this->input->post('ExchangeRate'); $ExchangeRateCalculatedon=$this->input->post('Exchangerateon'); $CurrencyType=$this->input->post('currencytype'); + $PaymentTerms=$this->input->post('PaymentTerms'); + $Payableat=$this->input->post('PayableAT'); + - $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType); + $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat); //print_r($POList); //die(); @@ -1117,9 +1133,12 @@ $createddt=''; $comma_separated = explode(':', $DeletedRow); $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $updateddt = $dt->format('Y-m-d H:i:s'); + + $PaymentTerms=$this->input->post('PaymentTerms'); + $Payableat=$this->input->post('PayableAT'); // PO Master // PO Master - $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType ); + $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'PayableAT'=>$Payableat); //echo $PONO; //echo $TotalOrder; //print_r($POList); diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index c87873c9..94d84359 100644 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -439,11 +439,11 @@ function purchaseorderListing() } // This Method to get the Service PO Details for Edit the Item - function GetServicePurchaseOrder($PONO = '') + + function GetServicePurchaseOrder($PONO = '') { $this->db->distinct(); - $this->db->select('ReqNo,POMast.PONO,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,Stat.StatusCode,POMast.ExchangeRateCalculatedon,POMast.ExchangeRate,POMast.CurrencyType'); - + $this->db->select('ReqNo,POMast.PONO,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,Stat.StatusCode,POMast.ExchangeRateCalculatedon,POMast.ExchangeRate,POMast.CurrencyType,POMast.PaymentTerms,POMast.PayableAT'); $this->db->from('T_PurchaseOrder_Master POMast'); $this->db->join('T_SupplierDetailsN supp', 'supp.SupplierID = POMast.SupplierID'); $this->db->join('T_Status Stat', 'Stat.StatusCode = POMast.Status'); @@ -563,8 +563,29 @@ function GetImportPurchaseOrderDetailsForPDF($PONO = '') function GetCurrencyDetail($Currency='') { - $subQuery='SELECT * from T_Currency_Details where CurrencyCode=?'; + $subQuery='SELECT Currency_Code,Country_and_Currency,FontCode2000 from T_Currency_Details where Currency_Code=?'; $query=$this->db->query($subQuery,array($Currency)); + //print_r($query); + return $query->result(); + + } + + + function GetPaymentTerms($PONO='') + { + $subQuery='SELECT PaymentTerms from T_PurchaseOrder_Master where PONO=?'; + $query=$this->db->query($subQuery,array($PONO)); + //print_r($query); + return $query->result(); + + } + + function getSupplierPayment($Currency='') + { + + $subQuery='select distinct PaymentTerms from T_SupplierDetailsN'; + $query=$this->db->query($subQuery,array($Currency)); + //print_r($this->db->last_query()); return $query->result(); } diff --git a/application/views/editimportpo.php b/application/views/editimportpo.php index e2e714b6..9fd87470 100644 --- a/application/views/editimportpo.php +++ b/application/views/editimportpo.php @@ -3,14 +3,24 @@ $AvlAmount = 0; $ReqType =''; $Value=''; $EXCRATE=0; +//$Value="$"; //echo $ExchangeRate; //echo $Currency; +//echo $unicode; +$Value=$unicode; +//echo $Value; -// foreach ($CurrencyDetail as $Detail) -// { -// $Cur=$Detail->Currency_Code.' '.' - '.' '.$Detail->Country_and_Currency; -// } +foreach ($CurrencyDetail as $Detail) +{ + $Cur=$Detail->Currency_Code.' '.' - '.' '.$Detail->Country_and_Currency; +} + + +foreach ($PaymentTerms as $TER) +{ + $Terms=$TER->PaymentTerms; +} $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $CurrentDate = $dt->format('Y-m-d'); @@ -30,7 +40,7 @@ if(!empty($AvlBudAmt)) $AvlAmount = $AvlBudAmt; } -//echo $AvlAmount; +//echo $AvlBudAmt;; $CompanyAddress = ''; if(!empty($CompanyDetails)) @@ -93,7 +103,10 @@ if(!empty($POMaster)) $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $ExchangeRate=$Req->ExchangeRate; + //echo "$ExchangeRate"; $ExchangeRateCalculatedon=$Req->ExchangeRateCalculatedon; + $PaymentTerms=$Req->PaymentTerms; + $PayableAT=$Req->PayableAT; } } @@ -144,7 +157,12 @@ if(!empty($POMaster)) minDate : 'now', dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '0:+10' }); - + + $("#Requeston").datepicker({ + //minDate : d, + maxDate : 'now', + dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0' + }); $("#Exchangerateon").datepicker({ minDate : m, @@ -206,8 +224,8 @@ if(!empty($POMaster)) $Cur); - $options = array("0"=>'Select Currency'); + $options = array("0"=>$Cur); + //$options = array("0"=>'Select Currency'); //print_r( $options); if(!empty($Currency)) @@ -239,10 +257,7 @@ if(!empty($POMaster)) ?> --> -

- Click here to check Today's Foreign Exchange value -
- + @@ -286,15 +301,7 @@ if(!empty($POMaster)) ?> -
- -
- 'Exchangerateon','value' => set_value('Exchangerateon',$ExchangeRateCalculatedon),'id'=>'Exchangerateon', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
+ @@ -318,17 +325,7 @@ if(!empty($POMaster)) ?> -
- - - -
- 'ExchangeRate','value' => set_value('ExchangeRate',$ExchangeRate),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); - echo form_input($data); - ?> -
-
+ + +

+
+ 'ExchangeRate','value' => set_value('ExchangeRate',$ExchangeRate),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); + echo form_input($data); + ?> +
+ +
-
- - - + +
Payment Details - - -
- Payable Terms +
+ + Payable Terms +
-
+ +
+ Payable AT + + 'PayableAT','value' => set_value('PayableAT',$PayableAT),'id'=>'PayableAT', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> + +
+ +
+ Payment Date
+ + + "Payment", "id"=>"Before", "value"=>"0", 'checked'=>set_radio('Payment', '0', TRUE))); ?>     + + "Payment", "id"=>"After", "value"=>"1", 'checked'=>set_radio('Payment', '1', FALSE))); ?> + + + +
@@ -576,7 +615,7 @@ if(!empty($POMaster))
- +

'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true'); @@ -1112,7 +1151,8 @@ if(!empty($POMaster))
- + +

'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true'); @@ -1817,8 +1857,8 @@ if(!empty($POMaster))
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' ); + 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); echo form_textarea($data); ?>
@@ -1845,7 +1885,29 @@ if(!empty($POMaster))
- +
+
+ Request On + 'Requeston','value' => set_value('Requeston'),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+ Request By + 'RequestBy','value' => set_value('RequestBy'),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+ Status + 'Select Status'); + echo form_dropdown('Status', $options,set_value('Status'),'id="Status"' ,'required="true"' ,'class="form-control select2') + ?> +

+
@@ -1889,7 +1951,7 @@ var NilType = ''; Mat: [] }; -//$('#ExchangeRate').val(); +// $('#ExchangeRate').val(); $('#EditAvlBudAmt').val(); //var a=$('#ExchangeRate').val(); @@ -1909,6 +1971,33 @@ var txtbasic=txtexchangerate*basicpriceinus; $('#EditINRBasicvalue').val(txtbasic); +$('#currencytype').change(function() +{ + //alert(); + var id = $('#currencytype').val(); + //alert(id); + var symbol=; + //alert(symbol); + //alert(JSON.stringify(symbol)); + $.each(symbol,function(idx,obj) + { + //alert(JSON.stringify(symbol[i])); + //console.log(obj); + if(obj.Currency_Code==id) + { + var sign=obj.FontCode2000; + document.getElementById("label1").innerHTML ='Exchange Rate in' +sign; + document.getElementById("label2").innerHTML ='Basic Value in '+sign; + document.getElementById("label3").innerHTML ='Basic Value in '+sign; + //alert(sign); + } + + }); + +}); + + + $('#drpSupplier').change(function() { @@ -1925,6 +2014,8 @@ $('#drpSupplier').change(function() { if(obj.SupplierID === id) { $("#SupAddress").val(obj.Address); + $("#PayableAT").val(obj.PayableAT); + } @@ -3710,8 +3801,17 @@ if(validate()) }); }); +var Detail = ; +//console.log(Detail); + + $.each(Detail, function (index, value) + { + $("#PaymentTerms").append( $('').val(value.PaymentTerms).html(value.PaymentTerms) ); + + } ); + diff --git a/application/views/importpo.php b/application/views/importpo.php index 01753bdb..3b9bc087 100644 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -3,6 +3,7 @@ $AvlAmount = 0; $ReqType =''; $CompanyAddress = ''; $Value=''; +$Value="៛"; date_default_timezone_set('Australia/Melbourne'); @@ -136,6 +137,8 @@ function vaildateBeforeOpenModal() $('#ExchangeRate').focus(); return false; } + + else { return true; @@ -202,12 +205,7 @@ function vaildateBeforeOpenModal() ?> -

- Click here to check Today's Foreign Exchange value -
- - - +
@@ -241,17 +239,7 @@ function vaildateBeforeOpenModal() ?>
-
- -
- 'Exchangerateon','value' => set_value('Exchangerateon',$CurrentDate),'id'=>'Exchangerateon', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
- - +
@@ -273,17 +261,7 @@ function vaildateBeforeOpenModal() ?>
-
- - - -
- 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); - echo form_input($data); - ?> -
-
+
-
+
Select Delivery By
@@ -313,7 +291,7 @@ function vaildateBeforeOpenModal() 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40'); + $data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '4', 'cols' => '40'); echo Form_textarea($data); ?> @@ -327,7 +305,33 @@ function vaildateBeforeOpenModal() ?>
-

+ +
+
+
+
+ +
+ +
+ 'Exchangerateon','value' => set_value('Exchangerateon',$CurrentDate),'id'=>'Exchangerateon', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+

+
+ 'ExchangeRate','value' => set_value('ExchangeRate'),'id'=>'ExchangeRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'USRate()'); + echo form_input($data); + ?> +
+
+
-
- -
- +
-
+
+
Payment Details - - -
- Payable Terms +
+ + Payable Terms +
-
+ +
+ Payable AT + + 'PayableAT','value' => set_value('PayableAT'),'id'=>'PayableAT', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> + +
+ +
+ Payment Date
+ + + "Payment", "id"=>"Before", "value"=>"0", 'checked'=>set_radio('Payment', '0', TRUE))); ?>     + + "Payment", "id"=>"After", "value"=>"1", 'checked'=>set_radio('Payment', '1', FALSE))); ?> + + + +
@@ -516,7 +532,7 @@ function vaildateBeforeOpenModal()
- +

'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true'); @@ -1052,7 +1068,7 @@ function vaildateBeforeOpenModal()
- +

'imTotalAmount','value' => set_value('imTotalAmount'),'id'=>'imTotalAmount', 'class' => 'form-control' ,'readonly' => 'true'); @@ -1616,7 +1632,7 @@ function vaildateBeforeOpenModal()
'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' ); + $data = array('name' => 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); echo form_textarea($data); ?>
@@ -1636,6 +1652,7 @@ function vaildateBeforeOpenModal()

+
@@ -1667,6 +1684,7 @@ function vaildateBeforeOpenModal() diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php index b5635f11..3967422e 100644 --- a/application/views/importpopdf.php +++ b/application/views/importpopdf.php @@ -1,265 +1,307 @@ -CompanyName; - $CompanyAddress = $CO->Address; - } - } - - - if(!empty($POItem)) - { - foreach ($POItem as $PO) - { - $PONO = $PO->PONO; - $SuplierName = $PO->SupplierName; - $SuplierAddress = $PO->Address; - $DeliveryAddress = $PO->DeliveryAddress; - - $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata')); - $Podt = $dt->format('d-m-Y'); - $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); - $DeliveryDate = $dtDe->format('d-m-Y'); - $ServiceDescription =$PO->ServiceDescription; - - } - } - - -?> - - -
-

IMPORT PURCHASE ORDER

-PO NO:
- -
-
-

-

- - - - - -
-

Vendor Address :

-

Delivery To :

Delivery Date :

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AfterLandingCharge; - $AfterHighSeasSalesCharge=$AfterHighSeasSalesCharge+$record->AfterHighSeasSalesCharge ; - $AfterCustomDuty = $AfterCustomDuty+$record->AfterCustomDuty ; - $AfterCustomEdCess = $AfterCustomEdCess+$record->AfterCustomEdCess ; - $AfterCustomSHCess = $AfterCustomSHCess+$record->AfterCustomSHCess ; - $AfterExciseDuty = $AfterExciseDuty+$record->AfterExciseDuty ; - $AfterExciseDutyEdCess = $AfterExciseDutyEdCess+$record->AfterExciseDutyEdCess ; - $AfterAddlExciseDuty = $AfterAddlExciseDuty+$record->AfterAddlExciseDuty ; - $Grossdutypayable = $Grossdutypayable+$record->Grossdutypayable ; - $AvailableModvat = $AvailableModvat+$record->AvailableModvat ; - $Grossexpensesduetocustomduty = $Grossexpensesduetocustomduty+$record->Grossexpensesduetocustomduty ; - $purchaseratePerKG = $purchaseratePerKG+$record->purchaseratePerKG ; - $CustomDutyExpensesPerKG = $CustomDutyExpensesPerKG+$record->CustomDutyExpensesPerKG ; - $RMCIncludingCustomersPerKG = $RMCIncludingCustomersPerKG+$record->RMCIncludingCustomersPerKG ; - $AfterExciseDutySHCess= $AfterExciseDutySHCess+$record->AfterExciseDutySHCess ; - $TotalOrderValue = $TotalOrderValue+$record->TotalOrderValue; - } - } - - ?> - -
#Item and DescriptionQtyRate per unitBasic PriceLanding ChargeHigh Seas Sales chargeCustom duty (A) Excise duty (b)Excise duty ED_cess (C)Excise duty S & H cess (d) Custom ED_cess (e)Custom S & H cess (f)Additional Excise duty (g)Gross duty payableAvailable Modvat-set-off on import(b + c + d + g)Gross expenses due to custom dutypurchase rate QuantityCustom Duty ExpensesRMC Including CustomersTotal Amount
MaterialName ; ?>Quantity ; ?>Rate ; ?>Quantity*$record->Rate); - echo number_format($BasicValue,2) ; ?>AfterLandingCharge; ?>AfterHighSeasSalesCharge ; ?>AfterCustomDuty ; ?>AfterExciseDuty ; ?>AfterExciseDutyEdCess ; ?>AfterExciseDutySHCess ; ?>AfterCustomEdCess ; ?>AfterCustomSHCess ; ?>AfterAddlExciseDuty ; ?>Grossdutypayable ; ?>AvailableModvat ; ?>Grossexpensesduetocustomduty ; ?>purchaseratePerKG ; ?>CustomDutyExpensesPerKG ; ?>RMCIncludingCustomersPerKG ; ?>QuantityKG ; ?>TotalOrderValue; ?>
-
- - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Landing charge :
High seas sales charge:
Custom duty :
Excise duty :
Excise duty ED_cess :
Excise duty S & H cess :
Custom ED_cess :
Custom S & H cess :
Additional Excise duty :
Gross duty payable :
Available Modvat set-off on import :
Gross expenses due to custom duty :
Purchase Rate :
Custom Duty Expenses :
RMC Including Customers :

Total Order Amount :

-
-
- -
\ No newline at end of file +CompanyName; + $CompanyAddress = $CO->Address; + } + } + + + if(!empty($POItem)) + { + + foreach ($POItem as $PO) + { + $ReqNo=$PO->ReqNo; + $PONO = $PO->PONO; + $postatus= $PO->Status; + $SuplierName = $PO->SupplierName; + $SuplierAddress = $PO->Address; + $DeliveryAddress = $PO->DeliveryAddress; + + $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata')); + $Podt = $dt->format('d-m-Y'); + $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); + $DeliveryDate = $dtDe->format('d-m-Y'); + $ServiceDescription =$PO->ServiceDescription; + $CostCenterCode=$PO->CostCenterCode; + $ReqBy=$PO->Requestedby; + $PaymentTerms=$PO->PaymentTerms; + + } + } + + +?> + + + +
+
+

IMPORT PURCHASE ORDER

+ PO NO:
+
+ Draft
'; + } + + ?> +
+

+

+ + + + + + +
+ Vendor Address :

+
+ Delivery To :
+
Delivery Date :
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + AfterLandingCharge; + $AfterHighSeasSalesCharge=$AfterHighSeasSalesCharge+$record->AfterHighSeasSalesCharge ; + $AfterCustomDuty = $AfterCustomDuty+$record->AfterCustomDuty ; + $AfterCustomEdCess = $AfterCustomEdCess+$record->AfterCustomEdCess ; + $AfterCustomSHCess = $AfterCustomSHCess+$record->AfterCustomSHCess ; + $AfterExciseDuty = $AfterExciseDuty+$record->AfterExciseDuty ; + $AfterExciseDutyEdCess = $AfterExciseDutyEdCess+$record->AfterExciseDutyEdCess ; + $AfterAddlExciseDuty = $AfterAddlExciseDuty+$record->AfterAddlExciseDuty ; + $Grossdutypayable = $Grossdutypayable+$record->Grossdutypayable ; + $AvailableModvat = $AvailableModvat+$record->AvailableModvat ; + $Grossexpensesduetocustomduty = $Grossexpensesduetocustomduty+$record->Grossexpensesduetocustomduty ; + $purchaseratePerKG = $purchaseratePerKG+$record->purchaseratePerKG ; + $CustomDutyExpensesPerKG = $CustomDutyExpensesPerKG+$record->CustomDutyExpensesPerKG ; + $RMCIncludingCustomersPerKG = $RMCIncludingCustomersPerKG+$record->RMCIncludingCustomersPerKG ; + $AfterExciseDutySHCess= $AfterExciseDutySHCess+$record->AfterExciseDutySHCess ; + $TotalOrderValue = $TotalOrderValue+$record->TotalOrderValue; + } + } + + ?> + +
#Item and DescriptionQtyRate per unitBasic PriceTotal Amount
MaterialName ; ?>Quantity ; ?>Rate ; ?>Quantity*$record->Rate); + echo number_format($BasicValue,2) ; ?>TotalOrderValue; ?>
+
+ + + + + + +

Total Order Amount

+ + + + + + + + + +
Requition Number :
Requested by :
Cost center :
+
+ + + +
Payment Terms *
+
+ + \ No newline at end of file