Merge pull request #1389 from reatile/createInvoice/EmptyItemsFix
fix: adding discount_amounth_total for empty items on invoice creation
This commit is contained in:
commit
daba4b3e78
@ -175,7 +175,7 @@ class CreateInvoice extends Job
|
|||||||
$taxes = [];
|
$taxes = [];
|
||||||
|
|
||||||
if (empty($this->request['items'])) {
|
if (empty($this->request['items'])) {
|
||||||
return [$sub_total, $taxes];
|
return [$sub_total, $discount_amount_total, $taxes];
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ((array) $this->request['items'] as $item) {
|
foreach ((array) $this->request['items'] as $item) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user