+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 'form-label-left CostCenter ','name' => 'CostCenter','id' => 'CostCenter');
+
+ echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ *
+
+
+ 'CostCenterName','value' => set_value('CostCenterName'),'id'=>'CostCenterName', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ 'PO_Date', 'value' => set_value('PO_Date'),'id'=>'PO_Date', 'class' => 'form-control datePicker','required'=>'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ *
+
+
+ 'Select Supplier');
+ //print_r( $options);
+
+ if(!empty($POType))
+ {
+ foreach ($SupplierName as $SID):
+
+
+ $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"');
+
+ ?>
+
+
+
+
+
+
+
+
+ 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+ *
+
+
+ 'Select Requested By');
+ //print_r( $options);
+
+ if(!empty($users))
+ {
+ foreach ($users as $UID):
+
+
+ $options[$UID->userId] = $UID->userId.' '.'-'.' '.$UID->name;
+
+ endforeach;
+ }
+
+ echo form_dropdown('role', $options,set_value('role'),'id="role"','class = "form-control "','required="true"');
+
+ ?>
+
+
+
+
+
+
+
+
+
+ 're_email', 'value' => set_value('re_email'),'id'=>'re_email', 'class' => 'form-control email', 'onchange'=>'validateEmail()');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+ *
+
+
+ 're_phone','value' => set_value('re_phone'), 'class' => 'form-control required re_phone','onkeypress'=>'return event.charCode >= 48 && event.charCode <= 57', 'maxlength' => '12', 'id'=>'re_phone','required'=>'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+ *
+
+
+ 're_Date', 'value' => set_value('re_Date'),'id'=>'re_Date', 'class' => 'form-control datePicker chechDate re_Date','required'=>'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ *
+
+
+ 'Select Budget Manager');
+ //print_r( $options);
+
+ if(!empty($EmpList))
+ {
+ foreach ($EmpList as $EID):
+
+ $options[$EID->EmpID] = $EID->EmpID .' - '.$EID->FirstName.' '.','.' '.$EID->LastName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('BudgetManager', $options,set_value('BudgetManager'),'id="BudgetManager"','class = "form-control "','required="true"','onchange="SelectedDepartment()"');
+
+
+
+ ?>
+
+
+
+
+
+
+
+
+
+ 'BudgetManagerDepartment', 'value' => set_value('BudgetManagerDepartment'),'id'=>'BudgetManagerDepartment','class' => 'form-control ', 'readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+ 'Select Purchase Order Type');
+ //print_r( $options);
+
+ if(!empty($PurchasingCategory))
+ {
+ foreach ($PurchasingCategory as $PC):
+
+ $options[$PC->ConfigValue] = $PC->ConfigValue;
+
+ endforeach;
+ }
+
+ echo form_dropdown('Pur_category',$options,set_value('Pur_category'),'id="Pur_category"', 'class = "form-control "');
+
+ ?>
+
+
+
+
+
+
+
+
+
+ 'SpecialOrder','value' => set_value('SpecialOrder'),'id'=>'SpecialOrder', 'class' => 'form-control ', 'required'=>'true','maxlength'=>'500');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+ 'Justification', 'value' => set_value('Justification'),'id'=>'Justification', 'class' => 'form-control ', 'required'=>'false','maxlength'=>'4000');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ Purchase Order Line Item :
+
+
+
+
+
+
+ Add PO Line Item
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ *
+
+
+
+ 'BasicValue', 'value' => set_value('BasicValue'), 'id'=>'BasicValue', 'class' => 'form-control required digits','readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+ *
+
+
+
+
+ 'Select Discount Type',"Percentage"=>'Percentage',"Lump some"=>'Lump some',"Nil"=>'Nil');
+ //print_r( $options);
+
+
+ echo form_dropdown('DiscountType',$options,set_value('DiscountType'),'id="DiscountType"', 'class = "form-control "');
+
+
+ ?>
+
+
+
+ 'txtDiscount','value' => set_value('txtDiscount'), 'id'=>'txtDiscount', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateDiscount()');
+ echo form_input($data);
+ ?>
+
+
+
+ +
+
+
+
+
+
+
+
+
+ 'AfterDiscount','value' => set_value('AfterDiscount'), 'id'=>'AfterDiscount', 'class' => 'form-control required digits','readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+ *
+
+
+
+'Select Packaging Type',"Percentage"=>'Percentage',"Lump some"=>'Lump some',"Nil"=>'Nil');
+ //print_r( $options);
+
+
+ echo form_dropdown('PackagingType',$options,set_value('PackagingType'),'id="PackagingType"', 'class = "form-control "','onchange="SelectPackagingType()"');
+
+
+ ?>
+
+
+
+
+
+ 'txtPackaging','value' => set_value('txtPackaging'), 'id'=>'txtPackaging', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculatePackaging()');
+ echo form_input($data);
+ ?>
+
+
+
+ +
+
+
+
+
+
+
+
+
+ 'AfterPackaging','value' => set_value('AfterPackaging'), 'id'=>'AfterPackaging', 'class' => 'form-control required digits','readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+
+
+
+
+
+ 'Exciseduty','value' => set_value('Exciseduty'), 'id'=>'Exciseduty', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateExeciseDuty()');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+
+
+
+
+
+ 'AferExciseduty', 'value' => set_value('AferExciseduty'),'id'=>'AferExciseduty', 'class' => 'form-control required digits','readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+ *
+
+
+
+
+ 'txtVat','value' => set_value('txtVat'), 'id'=>'txtVat', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateVat()');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+
+
+
+
+
+ 'txtAfterVat', 'value' => set_value('txtAfterVat'),'id'=>'txtAfterVat', 'class' => 'form-control required digits','readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+
+
+
+
+
+ 'txtFreight', 'value' => set_value('txtFreight'),'id'=>'txtFreight', 'class' => 'form-control required digits','onkeypress'=>'return isNumberKey(event)','onchange'=>'calculateFreight()');
+ echo form_input($data);
+ ?>
+
+
+ +
+
+
+
+
+
+
+
+
+ 'txtOrderValue','value' => set_value('txtOrderValue'), 'id'=>'txtOrderValue', 'class' => 'form-control required digits','readonly'=>'true');
+ echo form_input($data);
+ ?>
+
+
+
+ load->helper('form');
+ $error = $this->session->flashdata('error');
+ if($error)
+ {
+ ?>
+
+
+
+ session->flashdata('error'); ?>
+
+
+ session->flashdata('success');
+ if($success)
+ {
+ ?>
+
+
+ session->flashdata('success'); ?>
+
+
+
+
+
+
+ ', '
'); ?>
+