From b64010032b44660052814dec51053d83e669df76 Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Thu, 18 May 2017 11:21:39 +0530 Subject: [PATCH] PO --- application/views/purchaseorder.php | 1847 +++++++++++++++++++++------ 1 file changed, 1479 insertions(+), 368 deletions(-) diff --git a/application/views/purchaseorder.php b/application/views/purchaseorder.php index 836beba7..3efa4d7d 100644 --- a/application/views/purchaseorder.php +++ b/application/views/purchaseorder.php @@ -1,34 +1,789 @@ + + +
- + 'form-label-left CreatePO ','name' => 'CreatePO','id' => 'CreatePO'); + + echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>
- +

Purchase Order

@@ -39,14 +794,19 @@ function myFunction() {
+ '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"'); ?> @@ -63,22 +823,15 @@ function myFunction() {
- - - - +
+ + +
- +
- Select Range
+ Select Tax Range
- "Range","id"=>"Local","value"=>"Local", 'checked'=>set_radio('Range', 'Local', TRUE))); ?> -
"Range","id"=>"Inter_state","value"=>"Inter_state", 'checked'=>set_radio('Range', 'Inter_state', FALSE))); ?> + "Range","id"=>"Local","value"=>"0", 'checked'=>set_radio('Range', '0', TRUE),'onchange'=>'SetVatorCST();')); ?>     + "Range","id"=>"Inter_state","value"=>"1", 'checked'=>set_radio('Range', '1', FALSE),'onchange'=>'SetVatorCST();')); ?> +
@@ -119,53 +874,17 @@ function myFunction() {
- - + +
- -
'Supplier'); + $options = array("0"=>'Select Supplier'); //print_r( $options); if(!empty($Suplist)) @@ -178,7 +897,7 @@ function myFunction() { endforeach; } - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'required="true"'); + echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); ?>
@@ -188,8 +907,8 @@ function myFunction() {
'Address','value' => set_value('Address'),'id'=>'Address', 'class' => 'form-control' ,'readonly' => 'true'); - echo form_input($data); + $data = array('name' => 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true',"height" => "10px"); + echo Form_textarea($data); ?>
@@ -198,7 +917,7 @@ function myFunction() {
'DeliveryAddr','value' => set_value('DeliveryAddr'),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); + echo Form_textarea($data); ?>
@@ -214,7 +933,132 @@ function myFunction() {
- + + + + + + + + + + +
@@ -223,14 +1067,14 @@ function myFunction() { - @@ -613,7 +1465,7 @@ function myFunction() {
- - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
Quantity UOM RateTax AmountTotal AmountBasic AmountTax AmountTotal Order Amount Action
1REQ0001Waste Sand100Ton50.00250.0050250.00     -     -
2REQ0002Waste Sand100Ton50.00250.0050250.00     -     -
3REQ0003Waste Sand100Ton50.00250.0050250.00     -     -
@@ -1486,18 +2300,18 @@ function myFunction() {
'Comments','value' => set_value('Comments'),'id'=>'Comments', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction'),'id'=>'txtSpcialInstruction', 'class' => 'form-control' ); echo form_textarea($data); ?>
-
+
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); + $data = array('name' => 'txtTotBasicAmount','value' => set_value('txtTotBasicAmount'),'id'=>'txtTotBasicAmount', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?> @@ -1505,71 +2319,7 @@ function myFunction() {

-
-
- - -
-
- - 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
-
-
-
-
- - -
-
- - 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
-
-
-
-
- - -
-
- - 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
-
-
-
-
- - -
-
- - 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
-
-
-
+
@@ -1577,7 +2327,37 @@ function myFunction() {
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); + $data = array('name' => 'txtTotalDiscount','value' => set_value('txtTotalDiscount'),'id'=>'txtTotalDiscount', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+
+
+
+
+ +
+
+ + 'txtTotalVat','value' => set_value('txtTotalVat'),'id'=>'txtTotalVat', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+
+
+ + +
+
+
+ + +
+
+ + 'txtTotExciseDuty','value' => set_value('txtTotExciseDuty'),'id'=>'txtTotExciseDuty', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+
+
+ +
+
+ + +
+
+ + 'txtTotalGST','value' => set_value('txtTotalGST'),'id'=>'txtTotalGST', 'class' => 'form-control' ,'readonly' => 'true'); + echo form_input($data); + ?> + +
+
+
+
+ + + +
+
+ + +
+
+ + 'txtTotalOtherTaxes','value' => set_value('txtTotalOtherTaxes'),'id'=>'txtTotalOtherTaxes', 'class' => 'form-control','readonly' => 'true'); + echo form_input($data); + ?> + +
+
+
+
+ +
+
+ + +
+
+ + 'txtTotalInsurance','value' => set_value('txtTotalInsurance'),'id'=>'txtTotalInsurance', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?> @@ -1609,7 +2459,7 @@ function myFunction() {
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); + $data = array('name' => 'txtTotalFreight','value' => set_value('txtTotalFreight'),'id'=>'txtTotalFreight', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?> @@ -1617,21 +2467,6 @@ function myFunction() {

-
-
- - -
-
- - 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); - echo form_input($data); - ?> - -
-
-

@@ -1641,7 +2476,7 @@ function myFunction() {
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); + $data = array('name' => 'txtTotalOrderValueSummary','value' => set_value('txtTotalOrderValueSummary'),'id'=>'txtTotalOrderValueSummary', 'class' => 'form-control' ,'readonly' => 'true'); echo form_input($data); ?> @@ -1651,9 +2486,14 @@ function myFunction() {
- - - + + + + +   Save + + +

@@ -1666,4 +2506,275 @@ function myFunction() {
-
\ No newline at end of file +
+ + + \ No newline at end of file