getFlashdata('error'); if ($error) { $type = "error"; echo show_alert($type, $error); } $success = session()->getFlashdata('success'); if ($success) { $type = "success"; echo show_alert($type, $success); } ?>
StatusCode; if ($statusCode == PO_DRAFT || $statusCode == PO_CREATED) { ?>
Created Date PONO# PO Type Supplier Name Total Order Value PO Status Delivery Option Delivery Date Delivery Schedule Action
CreatedDate); $PODate = $Pdt->format('d-m-Y'); echo $PODate ?> PONO ?> ReqType ?> SupplierName ?> TotalOrderValue ?> 'AWAITING APPROVE', 'AWAITING RELEASE' => 'AWAITING APPROVE', 'RELEASER ONHOLD' => 'APPROVER ONHOLD', 'PO RELEASED' => 'PO APPROVED', ]; if (isset($record->StatusName) && !empty($record->StatusName)) { if (isset($statusMappings[$record->StatusName])) { echo $statusMappings[$record->StatusName]; } else { echo $record->StatusName; } } else { echo "Status not provided"; } ?> DeliveryOption == 1) { $option = "By Schedule"; } else if ($record->DeliveryOption == 2) { $option = "By Dispatch Instruction"; } echo $option ?> DeliveryOption == 0) { $Ddt = new DateTime($record->DeliveryDate); $Deliverydt = $Ddt->format('d-m-Y'); echo $Deliverydt; } else if ($record->DeliveryOption == 1) { $Deliverydt = ''; echo $Deliverydt; } ?> DeliverySchedule ?> get('roleText') != 'Auditor'){ ?>