Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/banking.ncriptech.com/../ecampus.ncriptech.com/application/helpers/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); function generate_po_code(){ CI()->load->model('po_model','pom'); return CI()->pom->generatePurchaseOrderCode(); } function store_po_order($data){ CI()->load->model('po_model','pom'); $po_code=generate_po_code(); $po_data=array( 'po_code'=>$po_code, 'po_inst_id'=>$data['po_inst_id'], 'po_inst_type'=>$data['po_inst_type'], 'po_total'=>$data['po_total'], 'po_status'=>$data['po_status'], 'po_status_reason'=>$data['po_status_reason'], 'po_notes'=>$data['po_notes'], 'po_created_by'=>$data['po_created_by'] ); $po_id=CI()->pom->store_po_order($po_data); return $po_id; } function update_po_order($data){ CI()->load->model('po_model','pom'); $po_data=array( 'po_inst_id'=>$data['po_inst_id'], 'po_inst_type'=>$data['po_inst_type'], 'po_total'=>$data['po_total'], 'po_status'=>$data['po_status'], 'po_status_reason'=>$data['po_status_reason'], 'po_updated_at'=>date('Y-m-d H:i:s'), 'po_updated_by'=>$data['po_updated_by'] ); $po_updated=CI()->pom->update_po_order($po_data,array('po_id'=>$data['po_id'])); return $po_updated; }