change IdcDeopsitBillPaperForm..
This commit is contained in:
parent
b60a0848fd
commit
b424100e88
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace lib\Controller;
|
namespace lib\Controller;
|
||||||
|
|
||||||
use lib\Core\Controller;
|
use lib\Core\Controller;
|
||||||
@ -36,7 +37,19 @@ class Billing extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function execute($client_code)
|
private function bill_process($datas)
|
||||||
|
{
|
||||||
|
$bills = [];
|
||||||
|
foreach (explode("<>", $datas['bills']) as $bill) {
|
||||||
|
if ($bill != "") {
|
||||||
|
$temps = explode("||", $bill);
|
||||||
|
$bills[] = sprintf("{$temps[0]} / {$temps[1]} / %s원", number_format($temps[2]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return implode("<BR>", $bills);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function execute($datas)
|
||||||
{
|
{
|
||||||
$this->view->total_price = number_format($datas['total_price']);
|
$this->view->total_price = number_format($datas['total_price']);
|
||||||
$this->view->bill = $this->bill_process($datas);
|
$this->view->bill = $this->bill_process($datas);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user