diff --git a/extdbms/depositbillpaper.php b/extdbms/depositbillpaper.php
index 860a2bb..5c7c216 100644
--- a/extdbms/depositbillpaper.php
+++ b/extdbms/depositbillpaper.php
@@ -4,7 +4,7 @@ namespace lib\Controller;
require_once "lib/autoload.php";
try {
$billing = new Billing();
- return $billing->execute($_GET['client_code']);
+ return $billing->execute($_GET);
} catch (\Exception $e) {
die($e->getMessage());
}
diff --git a/extdbms/lib/Controller/Billing.php b/extdbms/lib/Controller/Billing.php
index c84a397..f21e35c 100644
--- a/extdbms/lib/Controller/Billing.php
+++ b/extdbms/lib/Controller/Billing.php
@@ -38,11 +38,11 @@ class Billing extends Controller
public function execute($client_code)
{
- $site = $this->getSite();
-
- $this->view->client = $this->getModel("Client")->getData(array(sprintf("Client_Code='%s'", $client_code)));
- $this->view->site = $site;
- $this->view->accounts = $this->getAccounts($site['id']);
+ $this->view->total_price = number_format($datas['total_price']);
+ $this->view->bill = $this->bill_process($datas);
+ $this->view->site = $this->getSite();
+ $this->view->client = $this->getModel("Client")->getData(array(sprintf("Client_Code='%s'", $datas['client_code'])));
+ $this->view->accounts = $this->getAccounts($this->view->site['id']);
return $this->render('depositbillpaper');
}
}
diff --git a/extdbms/lib/View/depositbillpaper.php b/extdbms/lib/View/depositbillpaper.php
index ccaeb12..06d651d 100644
--- a/extdbms/lib/View/depositbillpaper.php
+++ b/extdbms/lib/View/depositbillpaper.php
@@ -73,3 +73,21 @@
(요청하시면 백업을 위해 무료로 추가 하드를 제공해 드리고 있지만, 추가가 불가능한 경우도 있습니다.
번거로우시더라도 주기적인 데이터백업을 부탁드리겠습니다.)