diff --git a/application/logs/log-2017-09-15.php b/application/logs/log-2017-09-15.php old mode 100644 new mode 100755 diff --git a/application/views/capitalpurchaseorder.php b/application/views/capitalpurchaseorder.php old mode 100755 new mode 100644 index dca9b1f0..7d546216 --- a/application/views/capitalpurchaseorder.php +++ b/application/views/capitalpurchaseorder.php @@ -1,5606 +1,5602 @@ - "NO","value"=>"0"),array("name"=>"YES","value"=>"1") - ); - $ReqType =''; - $CompanyAddress = ''; - $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); - $CurrentDate = $dt->format('d-m-Y'); - $MaxPoDate = ''; - $AvlAmount = 0; - $paymentDate=''; - $paymentCheckDays='Before'; - $paymentCheckDays1='After'; - if(!empty($MaxPODate)) - { - foreach ($MaxPODate as $date) - { - - $MaxPoDate = $date->PODate; - } - } - if(!empty($CompanyDetails)) - { - foreach ($CompanyDetails as $Req) - { - $CompanyAddress = $Req->Address; - } - } - if(!empty($AvlBudAmt)) - { - - $AvlAmount = number_format($AvlCapitalBudAmt, 2, '.', ''); - - } - - // if(!empty($AvlimportBudAmt)) - // { - - // $AvlAmount = $AvlimportBudAmt; - - // } - - - -$INR=''; -$INRSYM=''; -if(!empty($INRSYMBOL)) -{ - foreach ($INRSYMBOL as $INR) - { - $INRSYM=$INR->Currency_Code; - $INR=$INR->FontCode2000; - } -} - -// echo $INRSYM; -// echo $INR; - - ?> - - - - - - - - -
- 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO'); - - echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> - - -
-
-
-
- -

Siddharth Industries - Capital Purchase Order

- - -
-
-
-
-
-
- - 'Selected Requisition Numbers'); - if(!empty($ReqList)) - { - foreach ($ReqList as $SID): - - // 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"'); - - ?> -
-
- -
- - - - 'Select Currency Type '); - //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('currencytype', $options,set_value('currencytype'),'id="currencytype"','class="form-control select2"' , 'required="true"'); - - ?> - -
-
- -
-
-
-
- - - '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',CAPITAL),'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 -
-
- - - "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')); ?> - -
-
-
- -

- - - 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40'); - echo Form_textarea($data); - ?> - -
- - - -
- -
-
- -
-
- -
- 'Exchangerateon','value' => set_value('Exchangerateon',$CurrentDate),'id'=>'Exchangerateon', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); - echo form_input($data); - ?> -
-
-
- -
- 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);'); - 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'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
-
- - - -
-
-
-
- - - -
- - 'addmodeofshipment','value' => set_value('addmodeofshipment'),'id'=>'addmodeofshipment', 'class' => 'form-control'); - echo form_input($data); - ?> -
- - - -
-
-
-
-
- -
- - 'addsupplierreference','value' => set_value('addsupplierreference'),'id'=>'addsupplierreference', 'class' => 'form-control'); - echo form_input($data); - ?> -
- - - - -
-
-
-
- -
- - 'addsupplierofferno','value' => set_value('addsupplierofferno'),'id'=>'addsupplierofferno', 'class' => 'form-control'); - echo form_input($data); - ?> -
- -
-
-
-
- - -
- - 'addotherreference','value' => set_value('addotherreference'),'id'=>'addotherreference', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
- -
- - 'addfincap','value' => set_value('addfincap'),'id'=>'addfincap', 'class' => 'form-control'); - echo form_input($data); - ?> -
-
-
-
-
-
-
- -
-
-
-
- - - -
- - 'Select Work Status'); - - - if(!empty($PoTypeOptions)) - { - foreach ($PoTypeOptions as $POpt): - - - $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; - - endforeach; - } - - echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); - - - ?> -
- - - -
-
-
-
-
- -
- - -
- - - - -
-
-
- -
- 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
- -
-
-
-
- -
- - - - - 'Select Payment method'); - //print_r( $options); - - if(!empty($Payment)) - { - foreach ($Payment as $payment): - - $options1[$payment->PaymentID] = $payment->PaymentTerms; - - endforeach; - } - - echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"'); - - ?> - -
- - - - -
-
-
-
-
-
- - Add Line Item -
-
-
-
- - - - - - - - - - - - - - - - - - - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
-
-
- -
-
- - - -
- - - - - - - - - -
- - - - - -
-
-
-
- - 'txtTotCgst','value' => set_value('txtTotCgst'),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> -
- - -
- - 'txtTotSgst','value' => set_value('txtTotSgst'),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
- - 'txtTotIgst','value' => set_value('txtTotIgst'),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> -
-
- - 'TotalOtherAllowances','value' => set_value('TotalOtherAllowances'),'id'=>'TotalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
- - - -
- -
- - - 'txttotallanding','value' => set_value('txttotallanding'),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalhighseas','value' => set_value('txttotalhighseas'),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustom','value' => set_value('txttotalcustom'),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalexcise','value' => set_value('txttotalexcise'),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalexciseED','value' => set_value('txttotalexciseED'),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalexciseSH','value' => set_value('txttotalexciseSH'),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomED','value' => set_value('txttotalcustomED'),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalcustomSH','value' => set_value('txttotalcustomSH'),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty'),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalgrossduty','value' => set_value('txttotalgrossduty'),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat'),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense'),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- -
-
- - - 'CapitalToatlOrder','value' => set_value('CapitalToatlOrder'),'id'=>'CapitalToatlOrder', 'class' => 'form-control num' ,'readonly' => 'true',); - echo form_input($data); - ?> -
-
-
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); - echo form_textarea($data); - ?> -
- -
- - - - - - - - - - -   Save -   Submit -   Reset - -
-
-
- - - - - - - - - - - - - - - - + "NO","value"=>"0"),array("name"=>"YES","value"=>"1") + ); + $ReqType =''; + $CompanyAddress = ''; + $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); + $CurrentDate = $dt->format('d-m-Y'); + $MaxPoDate = ''; + $AvlAmount = 0; + $paymentDate=''; + $paymentCheckDays='Before'; + $paymentCheckDays1='After'; + if(!empty($MaxPODate)) + { + foreach ($MaxPODate as $date) + { + + $MaxPoDate = $date->PODate; + } + } + if(!empty($CompanyDetails)) + { + foreach ($CompanyDetails as $Req) + { + $CompanyAddress = $Req->Address; + } + } + if(!empty($AvlBudAmt)) + { + + $AvlAmount = number_format($AvlCapitalBudAmt, 2, '.', ''); + + } + + // if(!empty($AvlimportBudAmt)) + // { + + // $AvlAmount = $AvlimportBudAmt; + + // } + + + +$INR=''; +$INRSYM=''; +if(!empty($INRSYMBOL)) +{ + foreach ($INRSYMBOL as $INR) + { + $INRSYM=$INR->Currency_Code; + $INR=$INR->FontCode2000; + } +} + +// echo $INRSYM; +// echo $INR; + + ?> + + + + + + + + +
+ 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + +
+
+
+
+ +

Siddharth Industries - Capital Purchase Order

+ + +
+
+
+
+
+
+ + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + foreach ($ReqList as $SID): + + // 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"'); + + ?> +
+
+ +
+ + + + 'Select Currency Type '); + //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('currencytype', $options,set_value('currencytype'),'id="currencytype"','class="form-control select2"' , 'required="true"'); + + ?> + +
+
+ +
+
+
+
+ + + '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',CAPITAL),'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
+
+
+ + + "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')); ?> + +
+
+
+ +

+ + + 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> + +
+ + + +
+ +
+
+ +
+
+ +
+ 'Exchangerateon','value' => set_value('Exchangerateon',$CurrentDate),'id'=>'Exchangerateon', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+ +
+ 'ExchangeRt','value' => set_value('ExchangeRt'),'id'=>'ExchangeRt', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);'); + 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'),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+
+ + + +
+
+
+
+ + + +
+ + 'addmodeofshipment','value' => set_value('addmodeofshipment'),'id'=>'addmodeofshipment', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ + + +
+
+
+
+
+ +
+ + 'addsupplierreference','value' => set_value('addsupplierreference'),'id'=>'addsupplierreference', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ + + + +
+
+
+
+ +
+ + 'addsupplierofferno','value' => set_value('addsupplierofferno'),'id'=>'addsupplierofferno', 'class' => 'form-control'); + echo form_input($data); + ?> +
+ +
+
+
+
+ + +
+ + 'addotherreference','value' => set_value('addotherreference'),'id'=>'addotherreference', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+ +
+ + 'addfincap','value' => set_value('addfincap'),'id'=>'addfincap', 'class' => 'form-control'); + echo form_input($data); + ?> +
+
+
+
+
+
+
+ +
+
+
+
+
+ + + +
+ + 'Select Work Status'); + + + if(!empty($PoTypeOptions)) + { + foreach ($PoTypeOptions as $POpt): + + + $optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue; + + endforeach; + } + + echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2'); + + + ?> +
+ +
+
+ +
+ + +
+ + + + +
+ +
+
+
+ +
+ +
+ 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + + + 'Select Payment method'); + //print_r( $options); + + if(!empty($Payment)) + { + foreach ($Payment as $payment): + + $options1[$payment->PaymentID] = $payment->PaymentTerms; + + endforeach; + } + + echo form_dropdown('PaymentMethod', $options1,set_value('PaymentMethod'),'id="PaymentMethod"' ,'class="form-control"'); + + ?> + +
+ + + +
+
+
+ +
+
+ +
+
+ + Add Line Item +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
+
+
+ +
+
+ + + +
+ + + + + + + + + +
+ + + + + +
+
+
+
+ + 'txtTotCgst','value' => set_value('txtTotCgst'),'id'=>'txtTotCgst', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+ + +
+ + 'txtTotSgst','value' => set_value('txtTotSgst'),'id'=>'txtTotSgst', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + 'txtTotIgst','value' => set_value('txtTotIgst'),'id'=>'txtTotIgst', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+ + 'TotalOtherAllowances','value' => set_value('TotalOtherAllowances'),'id'=>'TotalOtherAllowances', 'class' => 'form-control num' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+ + + +
+ +
+ + + 'txttotallanding','value' => set_value('txttotallanding'),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalhighseas','value' => set_value('txttotalhighseas'),'id'=>'txttotalhighseas', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustom','value' => set_value('txttotalcustom'),'id'=>'txttotalcustom', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexcise','value' => set_value('txttotalexcise'),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexciseED','value' => set_value('txttotalexciseED'),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalexciseSH','value' => set_value('txttotalexciseSH'),'id'=>'txttotalexciseSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomED','value' => set_value('txttotalcustomED'),'id'=>'txttotalcustomED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalcustomSH','value' => set_value('txttotalcustomSH'),'id'=>'txttotalcustomSH', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty'),'id'=>'txttotalAdditionalExciseduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossduty','value' => set_value('txttotalgrossduty'),'id'=>'txttotalgrossduty', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat'),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense'),'id'=>'txttotalgrossexpense', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ +
+
+ + + 'CapitalToatlOrder','value' => set_value('CapitalToatlOrder'),'id'=>'CapitalToatlOrder', 'class' => 'form-control num' ,'readonly' => 'true',); + echo form_input($data); + ?> +
+
+
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+ +
+ + + + + + + + + + +   Save +   Submit +   Reset + +
+
+
+
+ + + + + + + + + + + + + + + diff --git a/application/views/editCapitalPo.php b/application/views/editCapitalPo.php old mode 100755 new mode 100644 index 1610836a..7ecd7290 --- a/application/views/editCapitalPo.php +++ b/application/views/editCapitalPo.php @@ -1,6890 +1,6887 @@ - "NO","value"=>"0"),array("name"=>"YES","value"=>"1") - ); - $requestedBy=$requestedBy[0]->FirstName; - $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); - $CurrentDate = $dt->format('d-m-Y'); - $res_arr_values = array(); - $DeliverOption=''; - $SupId = ''; - $SupName = ''; - $Address = ''; - $PODate = ''; - $TotalCgst=''; - $TotalSgst=''; - $TotalIgst=''; - $DeliveryAddress =''; - $POStatus = ''; - $PONO = ''; - $TotalCgst = 0; - $TotalSgst = 0.0; - $TotalIgst = 0.0; - $OtherAmt = 0.0; - - $TotalSummary = 0.0; - $TotalBasicAmount = 0.0; - $ServiceDescription = ''; - $Import_DispatchDetails=''; - $Import_PlaceofOrgin=''; - $CapitalRange=''; - - $Deliverydt=''; - $DeliverSchedule=''; - $PONOStatus=''; - $MaxPoDate = ''; - $AvlAmount = 0; - $currentCurrencyType=''; - $exchangeRate = $ExchangeRate; - $ConfigValue=''; - - $TotalLanding=0; - $tothighseas=0; - $totcustom=0; - $totexciseduty=0; - $totexcisedutyED=0; - $totexciseSH=0; - $totcustomED=0; - $totcustomSH=0; - $totaddtnlexcise=0; - $totgrossduty=0; - $totavlmodvat=0; - $totgrossexpense=0; - $totordervalue=0; - $ExchangeRate=0; - $totorder=0; - $ExchangeRate=''; - $PaymentTerms=''; - $PaymentDays=''; - $PayableAT=''; - $ExchangeDate=''; - $ExchangeRateOn=''; - $UpdatedOn; - $CapitalRange=''; - $PoStatusName=''; - $otherPayment=''; - $INR=''; - $INRSYM=''; - $ExitTotalOrderValue=0; - - $ExitExchangeRate=''; - - $ModeOfShipment=''; - $SupplierReference=''; - $SuppliersOfferNo=''; - $OtherReferences=''; - $Fincap=''; - $InsuranceOptions=''; - $InsuranceNo=''; - $ServiceTypeOptions=''; -if(!empty($INRSYMBOL)) -{ - foreach ($INRSYMBOL as $INR) - { - $INRSYM=$INR->Currency_Code; - $INR=$INR->FontCode2000; - } -} - -//echo $INR; - -if(!empty($MaxPODate)) -{ - foreach ($MaxPODate as $date) - { - $MaxPoDate = $date->PODate; - - } -} -if(!empty($POMaster)) -{ - - - foreach ($POMaster as $Req) - { - - - $SupId = $Req->SupplierID; - - $SupName = $Req->SupplierName; - $Address = $Req->Address; - $pdt = new DateTime($Req->PODate); - $PODate = $pdt->format('d-m-Y'); - $DeliverOption = $Req->DeliveryOption; - - $DeliverSchedule = $Req->DeliverySchedule; - $Ddt = new DateTime($Req->DeliveryDate); - $Deliverydt = $Ddt->format('d-m-Y'); - - $DeliveryAddress =$Req->DeliveryAddress; - $PONOStatus = $Req->StatusCode; - $POStatus = $Req->StatusCode; - $PoStatusName=$Req->StatusName; - $PONO = $Req->PONO; - $ServiceDescription = $Req->ServiceDescription; - - $Exchangedt = new DateTime($Req->ExchangeRateCalculatedon); - $ExchangeRateOn=$Exchangedt->format('d-m-Y'); - - - $PaymentTerms=$Req->PaymentTerms; - $otherPayment = $Req->PaymentOtherDescription; - $Updateddt = new DateTime($Req->UpdatedOn); - $UpdatedOn=$Updateddt->format('d-m-Y'); - - $CapitalRange=$Req->CapitalRange; - $Import_DispatchDetails=$Req->Import_DispatchDetails; - $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; - $CapitalRange=$Req->CapitalRange; - - if($CapitalRange=='0'){ - $ExitExchangeRate=$Req->ExchangeRate; - $ExitTotalOrderValue=number_format($Req->TotalOrderValue*$ExitExchangeRate, 2, '.', ''); - } - else{ - $ExitTotalOrderValue=$Req->TotalOrderValue; - } - - $ModeOfShipment=$Req->Mode_Of_Shipment; - $SupplierReference=$Req->Supplier_Reference; - $SuppliersOfferNo=$Req->Supplier_Offer_No; - $OtherReferences=$Req->Other_Reference; - $Fincap=$Req->Fincap; - $InsuranceOptions=$Req->InsuranceStatus; - $InsuranceNo=$Req->InsuranceNumber; - $ServiceTypeOptions=$Req->POSubType; - - } - -} - - - -if(!empty($AvlBudAmt)) -{ - - $AvlAmount = number_format($AvlCapitalBudAmt+$ExitTotalOrderValue, 2, '.', ''); - - -} - -?> - - - - - - - - - -
-
- 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO'); - - $attributes = array('class' => 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'CapitalPO'); - - - - echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> - - -
- -
-
- -

Siddharth Industries - Edit Capital Purchase Order-

- - -
-
-
-
-
-
- - 'Selected Requisition Numbers'); - if(!empty($ReqList)) - { - - foreach ($ReqList as $SID): - - $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqNo; - - endforeach; - } - echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'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'); - - ?> - -
-

- -
- '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); - ?> -
-
-
-
- -
- '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')); ?> - -
-
-
- - - -

- - - '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'); - 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); - ?> -
-
- - - -
- - - -
-
-
-
- - - -
- - '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'); - 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); - ?> -
-
-
- -
- - 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', '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'); - - - ?> -
- - - -
-
-
-
-
- -
- - -
- - - - -
-
-
- -
- 'insuranceNo','value' => set_value('insuranceNo',$InsuranceNo),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
- -
-
-
- -
-
- - - 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"'); - - ?> - - - -
- - - - -
-
-
-
-
-
- -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $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; - $TotalSummary = $TotalSummary+$record->ServiceTaxamount; - $TotalDiscountedAmt = $record->Afterdiscountval; - } - $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; - - - $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; - $ExchangeRate=$record->ExchangeRate; - - } - - - // $totorder=$totorder+$record->TotalOrderValue; - $totalCapitalOrder = $totalCapitalOrder+$record->Rate * $record->Quantity-$TotalDiscountedAmt; - - - - } - ?> - - - - - - - -
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountActual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode?>MaterialName?>Quantity ?>UOM ?>Rate ?>Rate * $record->Quantity, 2, '.', '') ?>ServiceTaxamount;?> Rate * $record->Quantity, 2, '.', '') ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     - -    
-
-
- -
-
- -
- - - - - - -
- -
-
-
-
- - '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); - ?> - -
-
- - - -
- -
- - - 'txttotallanding','value' => set_value('txttotallanding',number_format($TotalLanding, 2, '.', '')),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalhighseas','value' => set_value('txttotalhighseas',number_format($tothighseas, 2, '.', '')),'id'=>'txttotalhighseas', '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); - ?> -
- -
- - - 'txttotalexcise','value' => set_value('txttotalexcise',number_format($totexciseduty, 2, '.', '')),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- -
- - - 'txttotalexciseED','value' => set_value('txttotalexciseED',number_format($totexcisedutyED, 2, '.', '')),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalexciseSH','value' => set_value('txttotalexciseSH',number_format($totexciseSH, 2, '.', '')),'id'=>'txttotalexciseSH', '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); - ?> -
- -
- - - 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',number_format($totaddtnlexcise, 2, '.', '')),'id'=>'txttotalAdditionalExciseduty', '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); - ?> -
- -
- - - 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',number_format($totavlmodvat, 2, '.', '')),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); - echo form_input($data); - ?> -
- - -
- - - 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',number_format($totgrossexpense, 2, '.', '')),'id'=>'txttotalgrossexpense', '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); - ?> -
-
- -
- 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); - echo form_textarea($data); - ?> -
- - - - -
- - - - - - - - -   Save -   Submit -   Cancel - - -   Submit -   OK - -
- -
-
- - -
- - -
-
- - - - - + "NO","value"=>"0"),array("name"=>"YES","value"=>"1") + ); + $requestedBy=$requestedBy[0]->FirstName; + $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); + $CurrentDate = $dt->format('d-m-Y'); + $res_arr_values = array(); + $DeliverOption=''; + $SupId = ''; + $SupName = ''; + $Address = ''; + $PODate = ''; + $TotalCgst=''; + $TotalSgst=''; + $TotalIgst=''; + $DeliveryAddress =''; + $POStatus = ''; + $PONO = ''; + $TotalCgst = 0; + $TotalSgst = 0.0; + $TotalIgst = 0.0; + $OtherAmt = 0.0; + + $TotalSummary = 0.0; + $TotalBasicAmount = 0.0; + $ServiceDescription = ''; + $Import_DispatchDetails=''; + $Import_PlaceofOrgin=''; + $CapitalRange=''; + + $Deliverydt=''; + $DeliverSchedule=''; + $PONOStatus=''; + $MaxPoDate = ''; + $AvlAmount = 0; + $currentCurrencyType=''; + $exchangeRate = $ExchangeRate; + $ConfigValue=''; + + $TotalLanding=0; + $tothighseas=0; + $totcustom=0; + $totexciseduty=0; + $totexcisedutyED=0; + $totexciseSH=0; + $totcustomED=0; + $totcustomSH=0; + $totaddtnlexcise=0; + $totgrossduty=0; + $totavlmodvat=0; + $totgrossexpense=0; + $totordervalue=0; + $ExchangeRate=0; + $totorder=0; + $ExchangeRate=''; + $PaymentTerms=''; + $PaymentDays=''; + $PayableAT=''; + $ExchangeDate=''; + $ExchangeRateOn=''; + $UpdatedOn; + $CapitalRange=''; + $PoStatusName=''; + $otherPayment=''; + $INR=''; + $INRSYM=''; + $ExitTotalOrderValue=0; + + $ExitExchangeRate=''; + + $ModeOfShipment=''; + $SupplierReference=''; + $SuppliersOfferNo=''; + $OtherReferences=''; + $Fincap=''; + $InsuranceOptions=''; + $InsuranceNo=''; + $ServiceTypeOptions=''; +if(!empty($INRSYMBOL)) +{ + foreach ($INRSYMBOL as $INR) + { + $INRSYM=$INR->Currency_Code; + $INR=$INR->FontCode2000; + } +} + +//echo $INR; + +if(!empty($MaxPODate)) +{ + foreach ($MaxPODate as $date) + { + $MaxPoDate = $date->PODate; + + } +} +if(!empty($POMaster)) +{ + + + foreach ($POMaster as $Req) + { + + + $SupId = $Req->SupplierID; + + $SupName = $Req->SupplierName; + $Address = $Req->Address; + $pdt = new DateTime($Req->PODate); + $PODate = $pdt->format('d-m-Y'); + $DeliverOption = $Req->DeliveryOption; + + $DeliverSchedule = $Req->DeliverySchedule; + $Ddt = new DateTime($Req->DeliveryDate); + $Deliverydt = $Ddt->format('d-m-Y'); + + $DeliveryAddress =$Req->DeliveryAddress; + $PONOStatus = $Req->StatusCode; + $POStatus = $Req->StatusCode; + $PoStatusName=$Req->StatusName; + $PONO = $Req->PONO; + $ServiceDescription = $Req->ServiceDescription; + + $Exchangedt = new DateTime($Req->ExchangeRateCalculatedon); + $ExchangeRateOn=$Exchangedt->format('d-m-Y'); + + + $PaymentTerms=$Req->PaymentTerms; + $otherPayment = $Req->PaymentOtherDescription; + $Updateddt = new DateTime($Req->UpdatedOn); + $UpdatedOn=$Updateddt->format('d-m-Y'); + + $CapitalRange=$Req->CapitalRange; + $Import_DispatchDetails=$Req->Import_DispatchDetails; + $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; + $CapitalRange=$Req->CapitalRange; + + if($CapitalRange=='0'){ + $ExitExchangeRate=$Req->ExchangeRate; + $ExitTotalOrderValue=number_format($Req->TotalOrderValue*$ExitExchangeRate, 2, '.', ''); + } + else{ + $ExitTotalOrderValue=$Req->TotalOrderValue; + } + + $ModeOfShipment=$Req->Mode_Of_Shipment; + $SupplierReference=$Req->Supplier_Reference; + $SuppliersOfferNo=$Req->Supplier_Offer_No; + $OtherReferences=$Req->Other_Reference; + $Fincap=$Req->Fincap; + $InsuranceOptions=$Req->InsuranceStatus; + $InsuranceNo=$Req->InsuranceNumber; + $ServiceTypeOptions=$Req->POSubType; + + } + +} + + + +if(!empty($AvlBudAmt)) +{ + + $AvlAmount = number_format($AvlCapitalBudAmt+$ExitTotalOrderValue, 2, '.', ''); + + +} + +?> + + + + + + + + + +
+
+ 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'ImportPO'); + + $attributes = array('class' => 'form-label-left CapitalPO ','name' => 'CapitalPO','id' => 'CapitalPO'); + + + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> + + +
+ +
+
+ +

Siddharth Industries - Edit Capital Purchase Order-

+ + +
+
+
+
+
+
+ + 'Selected Requisition Numbers'); + if(!empty($ReqList)) + { + + foreach ($ReqList as $SID): + + $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqNo; + + endforeach; + } + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'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'); + + ?> + +
+

+ +
+ '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); + ?> +
+
+
+
+ +
+ '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')); ?> + +
+
+
+ + + +

+ + + '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'); + 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); + ?> +
+
+ + + +
+ + + +
+
+
+
+ + + +
+ + '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'); + 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); + ?> +
+
+
+ +
+ + 'editfincap','value' => set_value('editfincap',$Fincap),'id'=>'editfincap', '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'); + + + ?> +
+ + + +
+
+ +
+ + +
+ + + + +
+
+
+ +
+ +
+ 'insuranceNo','value' => set_value('insuranceNo',$InsuranceNo),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+ + +
+ + + 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"'); + + ?> + + + +
+ + +
+
+ +
+
+
+
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $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; + $TotalSummary = $TotalSummary+$record->ServiceTaxamount; + $TotalDiscountedAmt = $record->Afterdiscountval; + } + $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; + + + $totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty; + $ExchangeRate=$record->ExchangeRate; + + } + + + // $totorder=$totorder+$record->TotalOrderValue; + $totalCapitalOrder = $totalCapitalOrder+$record->Rate * $record->Quantity-$TotalDiscountedAmt; + + + + } + ?> + + + + + + + +
SNoRequisition NoItem CodeItem DescriptionQuantityUOMRateBasic AmountTax AmountTotal Order AmountActual QuantityReceived QuantityPending QuantityAction
ReqNo ?>MaterialCode?>MaterialName?>Quantity ?>UOM ?>Rate ?>Rate * $record->Quantity, 2, '.', '') ?>ServiceTaxamount;?> Rate * $record->Quantity, 2, '.', '') ?>Quantity ?>ReceivedQuantity ?>Quantity - $record->ReceivedQuantity, 2, '.', ''); ?>     + +    
+
+
+ +
+
+ + + + + + + +
+ +
+
+
+
+ + '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); + ?> + +
+
+ + + +
+ +
+ + + 'txttotallanding','value' => set_value('txttotallanding',number_format($TotalLanding, 2, '.', '')),'id'=>'txttotallanding', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalhighseas','value' => set_value('txttotalhighseas',number_format($tothighseas, 2, '.', '')),'id'=>'txttotalhighseas', '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); + ?> +
+ +
+ + + 'txttotalexcise','value' => set_value('txttotalexcise',number_format($totexciseduty, 2, '.', '')),'id'=>'txttotalexcise', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ +
+ + + 'txttotalexciseED','value' => set_value('txttotalexciseED',number_format($totexcisedutyED, 2, '.', '')),'id'=>'txttotalexciseED', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalexciseSH','value' => set_value('txttotalexciseSH',number_format($totexciseSH, 2, '.', '')),'id'=>'txttotalexciseSH', '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); + ?> +
+ +
+ + + 'txttotalAdditionalExciseduty','value' => set_value('txttotalAdditionalExciseduty',number_format($totaddtnlexcise, 2, '.', '')),'id'=>'txttotalAdditionalExciseduty', '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); + ?> +
+ +
+ + + 'txttotalavlmodvat','value' => set_value('txttotalavlmodvat',number_format($totavlmodvat, 2, '.', '')),'id'=>'txttotalavlmodvat', 'class' => 'form-control' ,'readonly' => 'true','style'=>'text-align:right;'); + echo form_input($data); + ?> +
+ + +
+ + + 'txttotalgrossexpense','value' => set_value('txttotalgrossexpense',number_format($totgrossexpense, 2, '.', '')),'id'=>'txttotalgrossexpense', '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); + ?> +
+
+ +
+ 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '10', 'cols' => '40' ); + echo form_textarea($data); + ?> +
+ + + + +
+ + + + + + + + +   Save +   Submit +   Cancel + + +   Submit +   OK + +
+ +
+
+ + +
+ + +
+
+ + + + + diff --git a/application/views/editRevenuepurchaseorder.php b/application/views/editRevenuepurchaseorder.php index d622ee8b..1abfb88a 100755 --- a/application/views/editRevenuepurchaseorder.php +++ b/application/views/editRevenuepurchaseorder.php @@ -2179,7 +2179,7 @@ function calculateEditTaxValue() ?> -
+
-
-
+
@@ -2280,7 +2280,7 @@ function calculateEditTaxValue()
-
+
@@ -2310,17 +2310,18 @@ function calculateEditTaxValue()
-
-
- +
+ 'Yes','0'=>'No'); echo form_dropdown('insurancestatus', $optionsnew,set_value('insurancestatus'),'id="insurancestatus"' ,'required="true"' ,'class="form-control select2'); ?>
-
- +
+
+
+
'insuranceno','insuranceno' => set_value('insuranceno',$insurenceno),'id'=>'insuranceno', 'class' => 'form-control' ,'required' => 'true'); @@ -2328,14 +2329,7 @@ function calculateEditTaxValue() ?>
-
-
-
- -
- - -
+
- + - -
-
+
+
+
+
@@ -2895,7 +2898,7 @@ function calculateEditTaxValue()


@@ -3268,7 +3274,7 @@ function calculateEditTaxValue()
diff --git a/application/views/purchaseorder.php b/application/views/purchaseorder.php index e312d04d..bf219662 100755 --- a/application/views/purchaseorder.php +++ b/application/views/purchaseorder.php @@ -2105,7 +2105,7 @@ function calculateEditTaxValue() ?>
-
+
-
-
+
@@ -2205,7 +2205,7 @@ function calculateEditTaxValue()
-
+
@@ -2235,17 +2235,18 @@ function calculateEditTaxValue()
-
-
- +
+ 'Yes','0'=>'No'); echo form_dropdown('insurance', $optionsnew,set_value('insurance'),'id="insurance"' ,'required="true"' ,'class="form-control select2'); ?>
-
- +
+
+
+
'insuranceno','insuranceno' => set_value('insuranceno'),'id'=>'insuranceno', 'class' => 'form-control' ,'required' => 'true'); @@ -2253,12 +2254,8 @@ function calculateEditTaxValue() ?>
-
-
- -
- -
+
+
- + - -
+
+
+
+ +
@@ -2432,7 +2433,7 @@ function calculateEditTaxValue() +
+
+
-
+
-

+ +
+
@@ -2815,7 +2819,7 @@ function calculateEditTaxValue() +
+
'Edit_Service_Description','value' => set_value('Edit_Service_Description'),'id'=>'Edit_Service_Description', 'class' => 'form-control','rows'=>'2','cols'=>'100'); echo form_textarea($data);; - ?> - -
-
-

+ ?> +
+
+
+ - -
+ +