From 28b3c05312607c558cc040d334aa3442631f8104 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 5 Aug 2024 11:33:16 +0000 Subject: [PATCH] FIX _Catial and imort --- app/Views/capitalpurchaseorder.php | 21 +- app/Views/editCapitalAmendPO.php | 711 +++++++++++++-------------- app/Views/editCapitalPo.php | 663 ++++++++++++------------- app/Views/editImportAmendPO.php | 743 +++++++++++++---------------- app/Views/editimportpo.php | 741 ++++++++++++---------------- app/Views/importpo.php | 468 ++++++++---------- 6 files changed, 1454 insertions(+), 1893 deletions(-) diff --git a/app/Views/capitalpurchaseorder.php b/app/Views/capitalpurchaseorder.php index 4b3e46f3..930359ce 100644 --- a/app/Views/capitalpurchaseorder.php +++ b/app/Views/capitalpurchaseorder.php @@ -428,19 +428,18 @@ function vaildateBeforeOpenModal()
Select Delivery By*
-
- - - "DateRange", "id"=>"Date", "value"=>"2", 'checked'=>set_radio('DateRange', '2', FALSE))); ?>     -
-
- - "DateRange", "id"=>"DeliverycheckDate", "value"=>"0", 'checked'=>set_radio('DateRange', '0', FALSE))); ?>     -
+
+
+ + "DateRange", "id"=>"Date", "value"=>"2", 'checked'=>set_radio('DateRange', '2', FALSE))); ?>     +
+
+ "DateRange", "id"=>"DeliverycheckDate", "value"=>"0", 'checked'=>set_radio('DateRange', '0', FALSE))); ?>     +
"DateRange", "id"=>"Schedule", "value"=>"1", 'checked'=>'checked')); ?> -
+
@@ -487,7 +486,7 @@ function vaildateBeforeOpenModal()
- Click here to check Today's Foreign Exchange value + Check Today's Foreign Exchange value (Click here)
diff --git a/app/Views/editCapitalAmendPO.php b/app/Views/editCapitalAmendPO.php index 5f7a5ae6..27034640 100644 --- a/app/Views/editCapitalAmendPO.php +++ b/app/Views/editCapitalAmendPO.php @@ -229,6 +229,37 @@ else { .num { text-align:right; } + .header-container { + display: flex; + justify-content: space-between; + align-items: center; + padding: 25px; + } + + .header-container h2 { + flex: 1; + text-align: center; + margin: 0; + } + + .centered { + display: flex; + /* justify-content: center; */ + align-items: center; + height: 10vh; + } + + .centered label, + .centered input { + margin: 0 5px; + } + + .mandatory { + color: red; + text-align: right; + background-color: white; + } + .content-wrapper { min-height:600px ! important; } @@ -427,151 +458,116 @@ document.getElementById('dispatchinternational').style.display = 'block';
- -

Amendment Capital Purchase Order -

- +
+

Amended Capital Purchase Order-

+ Back +
-
-
-
- - +
+ + 'Selected Requisition Numbers'); - if(!empty($ReqList)) - { - - foreach ($ReqList as $SID): + $options = array("0"=>'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + + foreach ($ReqList as $SID): - $options[$SID->ReqNo] = $SID->ReqNo; - - endforeach; - } - echo form_multiselect('RequistionNo', $options,set_value('RequistionNo', array()),'id="RequistionNo"' , 'required="true"'); - - ?> -
- - -
-
-
-
- - - SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ; - endforeach; - } - - echo form_dropdown('drpSupplier', $options2,set_value('drpSupplier',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); - - ?> + $options[$SID->ReqNo] = $SID->ReqNo; + + endforeach; + } + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo', array()),'id="RequistionNo"' , 'required="true"'); + ?>
-

- -
- 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- -
-
-
-
- +
+
'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?> -
-
-
- -
- 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?>
+
+ + SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ; + endforeach; + } + echo form_dropdown('drpSupplier', $options2,set_value('drpSupplier',$SupId),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + ?>
-
- +
+
'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + $data = array('name' => 'SupAddress','value' => set_value('SupAddress',$Address),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); echo Form_textarea($data); ?> -
+
- +
-
-
+
+
+
+ +
+ + + CurrencyCode; + $options1[$Currency[0]->Currency_Code] = $Currency[0]->Currency_Code.' '.' - '.' '.$Currency[0]->Country_and_Currency; + + foreach ($Currency as $Cur) + if($Currency[0]->Currency_Code!=$Cur->Currency_Code){ + $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; + } + + + } + + echo form_dropdown('currencytype', $options1,set_value('currencytype',$currentCurrencyType),'id="currencytype"','class="form-control select2"' , 'required="true"'); + + ?> + +
+
+
Select Delivery By -
- - -
- 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?> - +
+
+ + +
+ 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?> +
+
-
- - +
+ +
+ '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); + ?> +
+
+
+
+
+
+
+ +
+ 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'addmodeofshipment','value' => set_value('addmodeofshipment',$ModeOfShipment),'id'=>'addmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'amendsupplierreference','value' => set_value('amendsupplierreference',$SupplierReference),'id'=>'amendsupplierreference', 'class' => 'form-control','maxlength'=>'40'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'amendsupplierofferno','value' => set_value('amendsupplierofferno',$SuppliersOfferNo),'id'=>'amendsupplierofferno', 'class' => 'form-control'); + 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'); + $data = array('name' => 'amendotherreference','value' => set_value('amendotherreference',$OtherReferences),'id'=>'amendotherreference', 'class' => 'form-control'); echo form_input($data); - ?> + ?> +
+
+
+ +
+ 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'); + ?> +
+
+
+ + PaymentID) + { + //echo $PaymentTerms."
"; + //print_r($Payment); + $options6[$rl->PaymentID] = $rl->PaymentTerms; + ?> + + PaymentID) + { + $options6[$rl2->PaymentID] = $rl2->PaymentTerms; + } + + endforeach; + } + + echo form_dropdown('PaymentMethod', $options6,set_value('PaymentMethod',$PaymentTerms),'id="PaymentMethod"' ,'required="true"' ,'class="form-control select2'); + + ?> +
+ +
-
- - - -
- -
-
-
-
- - - -
- - 'addmodeofshipment','value' => set_value('addmodeofshipment',$ModeOfShipment),'id'=>'addmodeofshipment', 'class' => 'form-control'); - echo form_input($data); - ?> -
+
+
+
+
+ +
+ +
-
-
-
-
-
- -
- - 'amendsupplierreference','value' => set_value('amendsupplierreference',$SupplierReference),'id'=>'amendsupplierreference', 'class' => 'form-control','maxlength'=>'40'); - echo form_input($data); - ?> -
- - - - -
-
-
-
- -
- - 'amendsupplierofferno','value' => set_value('amendsupplierofferno',$SuppliersOfferNo),'id'=>'amendsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
- -
-
-
-
- - -
- - 'amendotherreference','value' => set_value('amendotherreference',$OtherReferences),'id'=>'amendotherreference', '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'); - - - ?> -
- - - -
-
-
-
-
- -
- - -
- - - - -
-
-
- -
- 'InsuranceNumber','value' => set_value('InsuranceNumber',$InsuranceNumber),'id'=>'InsuranceNumber', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
- -
-
-
-
-
- - - PaymentID) - { - //echo $PaymentTerms."
"; - //print_r($Payment); - $options6[$rl->PaymentID] = $rl->PaymentTerms; - ?> - - PaymentID) - { - $options6[$rl2->PaymentID] = $rl2->PaymentTerms; - } - - endforeach; - } - - echo form_dropdown('PaymentMethod', $options6,set_value('PaymentMethod',$PaymentTerms),'id="PaymentMethod"' ,'required="true"' ,'class="form-control select2'); - - ?> - - - -
- - - - - -
- - - -
- - - - -
- - - - -
-
-
+
+ + +
+
+
+
+
diff --git a/app/Views/editCapitalPo.php b/app/Views/editCapitalPo.php index e76d19ae..1ed1eb74 100644 --- a/app/Views/editCapitalPo.php +++ b/app/Views/editCapitalPo.php @@ -242,6 +242,37 @@ foreach ($getlogpodtl as $values ) .content-wrapper { min-height:600px ! important; } + .header-container { + display: flex; + justify-content: space-between; + align-items: center; + padding: 25px; + } + + .header-container h2 { + flex: 1; + text-align: center; + margin: 0; + } + + .centered { + display: flex; + /* justify-content: center; */ + align-items: center; + height: 10vh; + } + + .centered label, + .centered input { + margin: 0 5px; + } + + .mandatory { + color: red; + text-align: right; + background-color: white; + } + @@ -474,21 +505,23 @@ $("#PaymentMethod").select2();
- -

Edit Capital Purchase Order-

- -

Amended Capital Purchase Order-

- +
+ +

Edit Capital Purchase Order -

+ +

Amended Capital Purchase Order -

+ + Back +
-
-
-
-
- +
+
+
+ 'Selected Requisition Numbers'); @@ -504,43 +537,18 @@ $("#PaymentMethod").select2(); echo form_multiselect('RequistionNo', $options,set_value('RequistionNo', array()),'id="RequistionNo"' , 'required="true"'); ?> +
+
+ +
+ + 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?>
- - -
-
-
-
+
+
-

+
- -
-
-
-
- -
- - 'POType','value' => set_value('POType',CAPITAL),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
-
- -
- 'PODate','value' => set_value('PODate',$PODate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
-
-
- -
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- -
-
-
- - Select Delivery By*
-
- - -
- 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?> +
+
+
+
+
+ +
CurrencyCode; + $options1[$CurrencyDetail[0]->Currency_Code] = $CurrencyDetail[0]->Currency_Code.' '.' - '.' '.$CurrencyDetail[0]->Country_and_Currency; + foreach ($Currency as $Cur): + if($CurrencyDetail[0]->Currency_Code!=$Cur->Currency_Code){ + $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; + } + endforeach; + } + echo form_dropdown('currencytype', $options1,set_value('currencytype',$currentCurrencyType),'id="currencytype"','class="form-control select2"' , 'required="true"'); + ?>
-
+
+
+ Select Delivery By*
+
+
+ + + +
+ 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?> +
+
+
- +
+
+ + -

- - - 'Dispatch','value' => set_value('Dispatch',$Import_DispatchDetails),'id'=>'Dispatch', 'class' => 'form-control' ,'required' => 'true'); - // 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); + ?> +
- $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); - ?> +
+
+
+
+
+
+ +
+ '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); + ?> +
+
+
+ +
+ + - - -
- - -
- '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); - ?> -
- -
- - - -
- - - -
-
-
-
- - - -
- - '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'); - - - ?> -
- - - -
-
- -
- - -
- - - - -
-
-
- -
- -
- 'InsuranceNumber','value' => set_value('InsuranceNumber',$InsuranceNumber),'id'=>'InsuranceNumber', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
- - -
- - - PaymentTerms) - { - $options6[$rl->PaymentID] = $rl->PaymentTerms; + //$optionsWork = array("0"=>'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; - } + foreach ($Payment as $rl2): + if($PaymentTerms!=$rl2->PaymentTerms) + { + $options6[$rl2->PaymentID] = $rl2->PaymentTerms; + } endforeach; } @@ -895,8 +804,8 @@ $("#PaymentMethod").select2(); -
- + - -
+
+
+
+
+
+
+ +
+ + - - - - + {$opt1='CAPITAL';$opt2='REVENUE';} + else{$opt1='REVENUE';$opt2='CAPITAL';} ?> - + +
+
- -
- - - - -
- -
-
+
+
+
+
diff --git a/app/Views/editImportAmendPO.php b/app/Views/editImportAmendPO.php index fdf35321..a6e31def 100644 --- a/app/Views/editImportAmendPO.php +++ b/app/Views/editImportAmendPO.php @@ -222,6 +222,37 @@ if(!empty($RequistionDetails)) .box-body { padding:0px ! important; } +.header-container { + display: flex; + justify-content: space-between; + align-items: center; + padding: 25px; + } + + .header-container h2 { + flex: 1; + text-align: center; + margin: 0; + } + + .centered { + display: flex; + /* justify-content: center; */ + align-items: center; + height: 10vh; + } + + .centered label, + .centered input { + margin: 0 5px; + } + + .mandatory { + color: red; + text-align: right; + background-color: white; + } + @@ -304,88 +335,44 @@ if(!empty($RequistionDetails))
-
-

Amend Import Purchase Order-

-
+
+

Amended Import Purchase Order-

+ Back +
-
-
-
- - - 'Selected Requisition Numbers'); - if(!empty($ReqList)) - { - foreach ($ReqList as $SID): - $options[$SID->ReqNo] = $SID->ReqNo ; - - endforeach; - } - - echo form_multiselect('RequistionNo', $options,set_value('RequistionNo', array()),'id="RequistionNo"' ,'required="true"' , 'height="400px"' ); - - ?> -
- - - - -
- - - $Cur); - //$options = array("0"=>'Select Currency'); - - //print_r( $options); - if(!empty($Currency)) - { - foreach ($Currency as $CUR): - - - $options[$CUR->Currency_Code] = $CUR->Currency_Code.' '.' - '.' '.$CUR->Country_and_Currency; - - endforeach; - } - - //echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); - echo form_dropdown('currencytype', $options,set_value('currencytype'),'id="currencytype"' ,'required="true"' ,'class="form-control select2'); - - +
+
+ + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + foreach ($ReqList as $SID): + $options[$SID->ReqNo] = $SID->ReqNo ; + endforeach; + } + 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)) @@ -399,101 +386,48 @@ if(!empty($RequistionDetails)) 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_textarea($data);?>
-
- - - -
-
- - -
-
- -
- - 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => '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); - ?> -
-
-
-
- -
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?>
-
- - - -
-
-
+
+
+
+
+ + + $Cur); - Select Delivery By*
- - + if(!empty($Currency)) + { + foreach ($Currency as $CUR): + $options[$CUR->Currency_Code] = $CUR->Currency_Code.' '.' - '.' '.$CUR->Country_and_Currency; + endforeach; + } + + echo form_dropdown('currencytype', $options,set_value('currencytype'),'id="currencytype"' ,'required="true"' ,'class="form-control select2');?> + +
+
+ Select Delivery By*
+ - - "DateRange", "id"=>"Date", "value"=>"2", 'checked'=>'checked')); ?>     - +
+ "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'); @@ -531,237 +463,161 @@ if(!empty($RequistionDetails)) ?>
- - -
- -
- - -
-
- -
- -
- '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); - ?> -
-
-
- +
+
'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', '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); - - - + $data = array('name' => '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); + ?> +
+
+
+ - - - - -
-
-
- - -
-
-
-
- - - -
- - 'addmodeofshipment','value' => set_value('addmodeofshipment',$Shipmentmode),'id'=>'addmodeofshipment', 'class' => 'form-control'); - echo form_input($data); - ?> -
- - - -
-
-
-
-
- -
- - 'amendsupplierreference','value' => set_value('amendsupplierreference',$SupplierRef),'id'=>'amendsupplierreference', 'class' => 'form-control','maxlength'=>'40'); - echo form_input($data); - ?> -
- - - - -
-
-
-
- -
- - 'amendsupplierofferno','value' => set_value('amendsupplierofferno',$SupOfferno),'id'=>'amendsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
- -
-
-
-
- - -
- - 'amendotherreference','value' => set_value('amendotherreference',$Otherref),'id'=>'amendotherreference', '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"'); ?> -
- - -
- - - + $data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin',$Import_PlaceofOrgin),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); - - - 'Insurance','Insurance' => set_value('Insurance',$opt1),'id'=>'Insurance', 'class' => 'form-control' ,'required' => 'true', 'readonly'=>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); + ?> +
+
+
+ +
+ + 'addmodeofshipment','value' => set_value('addmodeofshipment',$Shipmentmode),'id'=>'addmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'amendsupplierreference','value' => set_value('amendsupplierreference',$SupplierRef),'id'=>'amendsupplierreference', 'class' => 'form-control','maxlength'=>'40'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'amendsupplierofferno','value' => set_value('amendsupplierofferno',$SupOfferno),'id'=>'amendsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+
+
+
+
+ +
+ + 'amendotherreference','value' => set_value('amendotherreference',$Otherref),'id'=>'amendotherreference', '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"'); ?> + +
+
+ @@ -796,13 +652,9 @@ if(!empty($RequistionDetails)) endforeach; } echo form_dropdown('PaymentTerms', $optionsPay,set_value('PaymentTerms'),'id="PaymentTerms"' ,'required="true"' ,'class="form-control select2'); ?> -
- - - - -
- - + + -
-
-
- + $data = array('name' => 'Insurance','Insurance' => set_value('Insurance',$opt1),'id'=>'Insurance', 'class' => 'form-control' ,'required' => 'true', 'readonly'=>true); + echo form_input($data); + ?> + +
+ +
+ + +
+
+
+
+
diff --git a/app/Views/editimportpo.php b/app/Views/editimportpo.php index bb432e23..0f13431a 100644 --- a/app/Views/editimportpo.php +++ b/app/Views/editimportpo.php @@ -251,6 +251,37 @@ else{ .num { text-align:right; } +.header-container { + display: flex; + justify-content: space-between; + align-items: center; + padding: 25px; + } + + .header-container h2 { + flex: 1; + text-align: center; + margin: 0; + } + + .centered { + display: flex; + /* justify-content: center; */ + align-items: center; + height: 10vh; + } + + .centered label, + .centered input { + margin: 0 5px; + } + + .mandatory { + color: red; + text-align: right; + background-color: white; + } + @@ -373,125 +404,73 @@ else
-
- -

Edit Import Purchase Order-

- -

Amended Import Purchase Order-

- -
+
+ +

Edit Import Purchase Order-

+ +

Amended Import Purchase Order-

+ + Back +
-
-
-
-
- - - '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"' ); - - ?> -
- - - - -
- - - Currency_Code){ - $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; - - } - - endforeach; - - - 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 Supplier'); - //print_r( $options); - if(!empty($Suplist)) +
+ + 'Selected Requisition Numbers'); + if(!empty($ReqList)) { - foreach ($Suplist as $SID): - $options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ; + 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_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'); - - ?> - + } + //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; + } + + //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'); @@ -502,83 +481,45 @@ else ?>
-
- - - -
-
- -
-
- -
- - 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => '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); - ?> -
-
-
-
- -
- 'DeliveryAddr','value' => set_value('DeliveryAddr',$DeliveryAddress),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- - - -
-
-
- +
+
+
+
+
+ + Currency_Code){ + $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; + } + endforeach; + - Select Delivery By*
-
- - - - - - +
+ 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'); @@ -599,164 +539,172 @@ else ?>
- - -
- - -
-
- -
- +
+ +
+ '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); + ?> +
+
+
+
-
-
- - - -
- '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); - ?> + $data = array('name' => '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); - ?> -
-
-
-
-
-
-
-
-
-
- - - - +
+
+ +
- - '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; - // $options2 = array("0"=>'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"'); ?> + } + + 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'); ?> + +
+
- - -
- - - - - +
+
+
+
+ - - - - - - -
- -
-
- + - -
-
- - - - - PaymentID){ - //echo "$Terms"; - //echo "$pay2->PaymentTerms"; - - ?> - - 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'); ?> - -
-
- - - - - -
- - -
- - > - - -
- - - - -
-
-
- - - + +
+
+ +
- "DateRange", "id"=>"Date", "value"=>"2", 'checked'=>'checked')); ?>     - "DateRange", "id"=>"Schedule", "value"=>"1")); ?> + foreach ($Currency as $Cur): + if($Currency_Type!=$Cur->Currency_Code){ + $options1[$Cur->Currency_Code] = $Cur->Currency_Code.' '.' - '.' '.$Cur->Country_and_Currency; + } + endforeach; + } -
@@ -918,7 +789,7 @@ else
-
- +
@@ -1025,7 +896,7 @@ else
- +
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange(),calculateFreight(0)'); @@ -1038,7 +909,7 @@ else - +
'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'Ratechange(),calculateFreight(0)' ); @@ -1531,7 +1402,7 @@ echo form_textarea($data);
- +
- +
@@ -1626,7 +1497,7 @@ echo form_textarea($data);
- +
'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange(),ExceedEditQuantityCheck()'); @@ -1638,7 +1509,7 @@ echo form_textarea($data);
- +
'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);' ,'onchange'=>'EditRatechange(),validateEditExceedLimit()' ); @@ -2127,7 +1998,7 @@ echo form_textarea($data);
- +
- +
@@ -2222,7 +2093,7 @@ echo form_textarea($data);
- +
'ViewQuantity','value' => set_value('ViewQuantity'),'id'=>'ViewQuantity','readonly'=>true ,'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'EditRatechange(),ExceedEditQuantityCheck()'); @@ -2234,7 +2105,7 @@ echo form_textarea($data);
- +
'ViewRate','value' => set_value('ViewRate'),'id'=>'ViewRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','readonly'=>true ,'onchange'=>'EditRatechange()' ); diff --git a/app/Views/importpo.php b/app/Views/importpo.php index fa70f7f5..6b2585d1 100644 --- a/app/Views/importpo.php +++ b/app/Views/importpo.php @@ -228,6 +228,37 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) { .num { text-align: right; } + .header-container { + display: flex; + justify-content: space-between; + align-items: center; + padding: 25px; + } + + .header-container h2 { + flex: 1; + text-align: center; + margin: 0; + } + + .centered { + display: flex; + /* justify-content: center; */ + align-items: center; + height: 10vh; + } + + .centered label, + .centered input { + margin: 0 5px; + } + + .mandatory { + color: red; + text-align: right; + background-color: white; + } + @@ -242,24 +273,15 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- - -
-

Import Purchase Order

-

-
- - Back - -
- +
+

Import Purchase Order

+ Back +
-
- -
-
- +
+
+ +
+ '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; + } + + echo form_dropdown('drpSupplier', $options, set_value('drpSupplier'), 'id="drpSupplier"', 'required="true"', 'class="form-control select2'); + + ?> + +
+
+ +
+ 'SupAddress', 'value' => set_value('SupAddress'), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+
+
+
+
+ 'Select Currency Type'); //print_r($Currency); @@ -295,111 +355,27 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) { echo form_dropdown('currencytype', $options, set_value('currencytype'), 'id="currencytype"', 'required="true"', 'class="form-control select2'); ?> +
+
+ + Select Delivery By*
+
+ "DateRange", "id" => "Date", "value" => "2", 'checked' => 'checked')); ?> + "DateRange", "id" => "Schedule", "value" => "1")); ?>
-
-
-
- - - 'Select Supplier'); - //print_r( $options); - if (!empty($Suplist)) { - foreach ($Suplist as $SID) : - $options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ; - endforeach; - } - - echo form_dropdown('drpSupplier', $options, set_value('drpSupplier'), 'id="drpSupplier"', 'required="true"', 'class="form-control select2'); - - ?> - -
-

- -
- 'SupAddress', 'value' => set_value('SupAddress'), 'id' => 'SupAddress', 'class' => 'form-control', 'readonly' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- -
-
-
-
- -
- - 'POType', 'value' => set_value('POType', IMPORT), 'id' => 'POType', 'class' => 'form-control', 'readonly' => 'true'); - echo form_input($data); - ?> -
-
-
- -
- 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); - echo form_input($data); - ?> -
-
-
-
- -
- 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $CompanyAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> -
-
- - - -
-
-
- - Select Delivery By*
-
- - - - - - -
-
+
+ +
+ 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $CompanyAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+
+
- Click here to check Today's Foreign Exchange value + Check Today's Foreign Exchange value (Click here)
@@ -428,8 +411,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
'ExchangeRate', 'value' => set_value('ExchangeRate'), 'id' => 'ExchangeRate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'USRate()'); @@ -438,8 +420,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
'PlaceOforigin','value' => set_value('PlaceOforigin'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); @@ -449,17 +430,21 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) { ?>
-
- - -
-
-
-
- - - +
+
+
+
+ +
+ 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); + echo form_input($data); + ?> +
+
+
+
- - -
-
-
-
-
- +
+
+
- - - - -
-
-
-
- +
+
+
-
-
-
-
- - +
+
+
+
+
+
+
-
-
-
-
-
- -
-
-
-
+
+
+ + 'Select'); - + if (!empty($PoTypeOptions)) { + foreach ($PoTypeOptions as $payment) : + $options3[$payment->ConfigValue] = $payment->ConfigValue; + //$options6[$pay->PaymentID] = $pay->PaymentTerms; + endforeach; + } - - $options3 = array("0" => 'Select'); - - - - if (!empty($PoTypeOptions)) { - foreach ($PoTypeOptions as $payment) : - - $options3[$payment->ConfigValue] = $payment->ConfigValue; - //$options6[$pay->PaymentID] = $pay->PaymentTerms; - - endforeach; - } - - echo form_dropdown('Importoption', $options3, set_value('Importoption'), 'id="Importoption"', 'class="form-control"'); ?> -
- -
- -
- - - - - 'NO', "1" => 'YES'); - - - - // if(!empty($PoTypeOptions)) - // { - // foreach ($PoTypeOptions as $payment): - - // $options1[$payment->ConfigValue] = $payment->ConfigValue; - // //$options6[$pay->PaymentID] = $pay->PaymentTerms; - - // endforeach; - // } - - echo form_dropdown('Insurance', $options1, set_value('Insurance'), 'id="Insurance"', 'class="form-control"'); ?> -
- - - - -
-
-
- -
-
+
+
@@ -613,12 +529,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) { echo form_dropdown('PaymentTerms', $options1, set_value('PaymentTerms'), 'id="PaymentTerms"', 'class="form-control"'); ?> -
-
- - + - - -
- - -
- - 'Select', '1' => 'REVENUE', '2' => 'CAPITAL'); - echo form_dropdown('BudgetType', $optionsnew, set_value('BudgetType'), 'id="BudgetType"', 'required="true"', 'class="form-control select2'); - - ?> - - -
- - - - -
+
+
+ +
+ + 'NO', "1" => 'YES'); + + // if(!empty($PoTypeOptions)) + // { + // foreach ($PoTypeOptions as $payment): + + // $options1[$payment->ConfigValue] = $payment->ConfigValue; + // //$options6[$pay->PaymentID] = $pay->PaymentTerms; + + // endforeach; + // } + + echo form_dropdown('Insurance', $options1, set_value('Insurance'), 'id="Insurance"', 'class="form-control"'); ?> +
+ +
+ + 'Select', '1' => 'REVENUE', '2' => 'CAPITAL'); + echo form_dropdown('BudgetType', $optionsnew, set_value('BudgetType'), 'id="BudgetType"', 'required="true"', 'class="form-control select2'); + + ?> +
+
+ +
+
+
+ + +
- "DateRange", "id" => "Date", "value" => "2", 'checked' => 'checked')); ?>     - "DateRange", "id" => "Schedule", "value" => "1")); ?> - -
@@ -692,7 +628,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
'Req No'); @@ -746,7 +682,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
@@ -782,7 +718,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange(),ExceedQuantityCheck(),calculateFreight(0)'); @@ -792,7 +728,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
'Rate', 'value' => set_value('Rate'), 'id' => 'Rate', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange(),validateExceedLimit(),calculateFreight(0)'); @@ -1274,7 +1210,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
- +
@@ -1369,7 +1305,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +
'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange(),ExceedEditQuantityCheck(),calculateFreight(1)'); @@ -1379,7 +1315,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
- +