diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 25a2c902..cd871418 100644 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -159,6 +159,10 @@ class purchaseorder extends BaseController else if($ReqType == SERVICE) { $ViewName = 'servicePurchaseorder'; + } + else if($ReqType == IMPORT) + { + $ViewName = 'importpo'; } $this->loadViews($ViewName, $this->global,$data, NULL); } diff --git a/application/logs/log-2017-05-31.php b/application/logs/log-2017-05-31.php new file mode 100644 index 00000000..666bdc59 --- /dev/null +++ b/application/logs/log-2017-05-31.php @@ -0,0 +1,70 @@ + + +ERROR - 2017-05-31 08:49:00 --> Severity: Notice --> Undefined variable: RequistionDetails C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 115 +ERROR - 2017-05-31 08:49:00 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 116 +ERROR - 2017-05-31 08:49:00 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 117 +ERROR - 2017-05-31 08:49:00 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 163 +ERROR - 2017-05-31 08:49:00 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 191 +ERROR - 2017-05-31 09:01:13 --> Severity: Notice --> Undefined variable: RequistionDetails C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 115 +ERROR - 2017-05-31 09:01:13 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 116 +ERROR - 2017-05-31 09:01:13 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 117 +ERROR - 2017-05-31 09:01:13 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 163 +ERROR - 2017-05-31 09:01:13 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 191 +ERROR - 2017-05-31 09:25:06 --> Severity: Notice --> Undefined variable: RequistionDetails C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 115 +ERROR - 2017-05-31 09:25:06 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 116 +ERROR - 2017-05-31 09:25:06 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 117 +ERROR - 2017-05-31 09:25:06 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 163 +ERROR - 2017-05-31 09:25:06 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 191 +ERROR - 2017-05-31 09:45:10 --> Severity: Notice --> Undefined variable: RequistionDetails C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 115 +ERROR - 2017-05-31 09:45:10 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 116 +ERROR - 2017-05-31 09:45:10 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 117 +ERROR - 2017-05-31 09:45:10 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 163 +ERROR - 2017-05-31 09:45:10 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 191 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:47:02 --> Severity: Notice --> Undefined index: RequisitionStatus C:\xampp\htdocs\siddharth_application\application\views\requisitionlistapproval.php 37 +ERROR - 2017-05-31 09:51:25 --> Severity: Notice --> Undefined variable: CompanyAddress C:\xampp\htdocs\siddharth_application\application\views\importpo.php 98 +ERROR - 2017-05-31 09:51:25 --> Severity: Notice --> Undefined variable: CurrentDate C:\xampp\htdocs\siddharth_application\application\views\importpo.php 109 +ERROR - 2017-05-31 09:51:25 --> Severity: Notice --> Undefined variable: CurrentDate C:\xampp\htdocs\siddharth_application\application\views\importpo.php 118 +ERROR - 2017-05-31 09:51:25 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:51:25 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:51:25 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:52:34 --> Severity: Notice --> Undefined variable: CompanyAddress C:\xampp\htdocs\siddharth_application\application\views\importpo.php 98 +ERROR - 2017-05-31 09:52:34 --> Severity: Notice --> Undefined variable: CurrentDate C:\xampp\htdocs\siddharth_application\application\views\importpo.php 109 +ERROR - 2017-05-31 09:52:34 --> Severity: Notice --> Undefined variable: CurrentDate C:\xampp\htdocs\siddharth_application\application\views\importpo.php 118 +ERROR - 2017-05-31 09:52:34 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:52:34 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:52:34 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:54:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:54:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:54:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 201 +ERROR - 2017-05-31 09:59:01 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-05-31 09:59:01 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-05-31 09:59:01 --> Unable to connect to the database +ERROR - 2017-05-31 09:59:06 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-05-31 09:59:06 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-05-31 09:59:06 --> Unable to connect to the database +ERROR - 2017-05-31 10:00:01 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 202 +ERROR - 2017-05-31 10:00:01 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 202 +ERROR - 2017-05-31 10:00:01 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 202 +ERROR - 2017-05-31 10:02:09 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 212 +ERROR - 2017-05-31 10:02:09 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 212 +ERROR - 2017-05-31 10:02:09 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 212 +ERROR - 2017-05-31 10:04:04 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 221 +ERROR - 2017-05-31 10:04:04 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 221 +ERROR - 2017-05-31 10:04:04 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 221 +ERROR - 2017-05-31 10:05:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 221 +ERROR - 2017-05-31 10:05:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 221 +ERROR - 2017-05-31 10:05:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 221 +ERROR - 2017-05-31 10:07:39 --> Severity: Notice --> Undefined variable: RequistionDetails C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 115 +ERROR - 2017-05-31 10:07:39 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 116 +ERROR - 2017-05-31 10:07:39 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 117 +ERROR - 2017-05-31 10:07:39 --> Severity: Notice --> Undefined variable: MaterialList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 163 +ERROR - 2017-05-31 10:07:39 --> Severity: Notice --> Undefined variable: CostList C:\xampp\htdocs\siddharth_application\application\views\alterpurchaseorder.php 191 +ERROR - 2017-05-31 10:08:36 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 222 +ERROR - 2017-05-31 10:08:36 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 222 +ERROR - 2017-05-31 10:08:36 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\importpo.php 222 diff --git a/application/views/alterpurchaseorder.php b/application/views/alterpurchaseorder.php index d40458d5..0766d864 100644 --- a/application/views/alterpurchaseorder.php +++ b/application/views/alterpurchaseorder.php @@ -2792,7 +2792,7 @@ if(!empty($CompanyDetails))
- + - +
@@ -3280,13 +3410,14 @@ if(!empty($CompanyDetails)) }); }); $(document).ready(function(){ - $('#RequestType').on('change', function() { + $('#RequestType').on('change', function() { if ( this.value == 'REVENUE') //Revenue po { $("#txtPoRange").show(); $("#revenuepotaxes").show(); $("#currencyexchange").hide(); $("#servicepotaxes").hide(); + $("#importpotaxes").hide(); } else if ( this.value == 'SERVICE') // Service po { @@ -3294,16 +3425,19 @@ if(!empty($CompanyDetails)) $("#currencyexchange").hide(); $("#txtPoRange").hide(); $("#revenuepotaxes").hide(); + $("#importpotaxes").hide(); } else if ( this.value == 'IMPORT') // Import pop - { + { + $("#importpotaxes").show(); $("#currencyexchange").show(); $("#txtPoRange").hide(); $("#revenuepotaxes").hide(); $("#servicepotaxes").hide(); } else if ( this.value == 'CAPITAL') // Capital po - { + { + $("#importpotaxes").hide(); $("#currencyexchange").show(); $("#txtPoRange").hide(); $("#revenuepotaxes").hide(); @@ -3315,6 +3449,7 @@ if(!empty($CompanyDetails)) $("#txtPoRange").hide(); $("#revenuepotaxes").hide(); $("#servicepotaxes").hide(); + $("#importpotaxes").hide(); } }); }); diff --git a/application/views/importpo.php b/application/views/importpo.php index 04e3f8ab..34966286 100644 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -1,26 +1,82 @@ + .modal +{ + padding-right:25% ! important; +} +.dataTables_paginate +{ + margin-top: -5%; +} +.dataTables_wrapper { + padding-bottom: 0px; +} + + +
- + 'form-label-left ImportPO ','name' => 'ImportPO','id' => 'ImportPO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?> +
-

Import Purchase Order

+

Siddharth Industries - Import 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"'); + + ?> + +
+
+
+
+ + 'Requistion No'); + $options = array("0"=>'Select Supplier'); //print_r( $options); - if(!empty($POType)) + if(!empty($Suplist)) { - foreach ($SupplierName as $SID): + foreach ($Suplist as $SID): $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; @@ -28,680 +84,602 @@ endforeach; } - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); + echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); ?> -
-
-
- + +
+

+
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); + $data = array('name' => 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','rows' => '3', 'cols' => '40'); + echo Form_textarea($data); ?>
-
-
- -
- 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
- -
- -
- 'Select Currency Type'); - //print_r( $options); +
+
+
+
+ +
- if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); - - ?> -
-
-
-
-
- + 'POType','value' => set_value('POType',IMPORT),'id'=>'POType', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'DeliveryAddr','value' => set_value('DeliveryAddr'),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true', 'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+
+
+ +
+ 'PODate','value' => set_value('PODate'),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); + echo form_input($data); + ?> +
+
+
+ +
+ 'Deliverydt','value' => set_value('Deliverydt'),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;'); echo form_input($data); ?>
-
-
- -
- 'Supplier'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); - - ?> -
-
-
- -
- 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
- -
- 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
-
-
-
+
+
+ +
+
+
- + Add Line Item -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
 R NoItem NameQuantityUOMRateTax %Total
 1001Waste SandTon100HighNo Change
 2002ResinLitre50HighChange
 3003ResinLitre100HighChange
+ + + + + + + + + + + + + + + + + + +
SNoRequisition NoItem NameQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
+
@@ -721,5 +699,6 @@
- -
\ No newline at end of file + + +