refs #1408 Fixed bill total discount feature..

This commit is contained in:
Cihan Şentürk
2020-04-20 04:06:20 +03:00
parent e3240fa43b
commit e244d15480
7 changed files with 44 additions and 5 deletions

View File

@ -179,6 +179,11 @@ class CreateBill extends Job
}
foreach ((array) $this->request['items'] as $item) {
$item['global_discount'] = 0;
if (!empty($this->request['discount'])) {
$item['global_discount'] = $this->request['discount'];
}
$bill_item = $this->dispatch(new CreateBillItem($item, $this->bill));