change IdcDeopsitBillPaperForm..

This commit is contained in:
최준흠 2024-08-30 17:13:03 +09:00
parent b60a0848fd
commit b424100e88

View File

@ -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);