Initial import
This commit is contained in:
23
application/controllers/debug/Mou.php
Normal file
23
application/controllers/debug/Mou.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
class Mou extends MY_Controller
|
||||
{
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
function fix_id($mouID) {
|
||||
$this->load->library("SsPriceMou");
|
||||
$rst = $this->sspricemou->create($mouID);
|
||||
print_r($rst);
|
||||
echo "\n";
|
||||
}
|
||||
function fix_all() {
|
||||
$this->load->library("SsPriceMouPx");
|
||||
$sql = "select * from m_mou where M_MouIsActive = 'Y' ";
|
||||
$qry = $this->db->query($sql);
|
||||
$rows = $qry->result_array();
|
||||
foreach($rows as $idx => $r ) {
|
||||
echo "$idx. Proses : " . $r["M_MouName"] . "\n";
|
||||
$this->sspricemoupx->create($r["M_MouID"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user