+ 'form-label-left CreatePO ', 'name' => 'CreatePO', 'id' => 'CreatePO');
+ echo form_open(base_url() . '/purchaseorder/addPO/', $attributes);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ 'txtTotBasicAmount', 'value' => set_value('txtTotBasicAmount', number_format($totBasicAmt, 2, '.', '')), 'id' => 'txtTotBasicAmount', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'txtTotalDiscount', 'value' => set_value('txtTotalDiscount', number_format($totDiscountAmt, 2, '.', '')), 'id' => 'txtTotalDiscount', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtTotalVat', 'value' => set_value('txtTotalVat', number_format($totVATAmt, 2, '.', '')), 'id' => 'txtTotalVat', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtTotalOtherTaxes', 'value' => set_value('txtTotalOtherTaxes', number_format($totOtherTaxAmt, 2, '.', '')), 'id' => 'txtTotalOtherTaxes', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtTotalGST', 'value' => set_value('txtTotalGST', number_format($totGSTAmt, 2, '.', '')), 'id' => 'txtTotalGST', 'readonly' => 'true', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => ' calculateGST(0);');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ 'txtTotalPackaing', 'value' => set_value('txtTotalPackaing', number_format($totPackagingAmt, 2, '.', '')), 'id' => 'txtTotalPackaing', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtTotalInsurance', 'value' => set_value('txtTotalInsurance', number_format($totInsuranceAmt, 2, '.', '')), 'id' => 'txtTotalInsurance', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtTotalFreight', 'value' => set_value('txtTotalFreight', number_format($totFreightAmt, 2, '.', '')), 'id' => 'txtTotalFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'txtTotalOrderValueSummary', 'value' => set_value('txtTotalOrderValueSummary', number_format($totOrderSummaryAmt, 2, '.', '')), 'id' => 'txtTotalOrderValueSummary', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ format('d-m-Y'); ?>
+
+
+
+
+ 'AWAITING APPROVE',
+ 'AWAITING RELEASE' => 'AWAITING APPROVE',
+ 'RELEASER ONHOLD' => 'APPROVER ONHOLD',
+ 'PO RELEASED' => 'PO APPROVED',
+ ];
+
+ if (isset($POStatus) && !empty($POStatus)) {
+ if (isset($statusMappings[$POStatus])) {
+ echo $statusMappings[$POStatus];
+ } else {
+ echo $POStatus;
+ }
+ } else {
+ echo "Status not provided";
+ }
+ ?>
+
+