mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-28 15:28:40 +00:00
fix tests
This commit is contained in:
parent
e514fd96eb
commit
98f2554ef6
|
|
@ -240,7 +240,7 @@ class BillElement implements \JsonSerializable
|
|||
public static function fromItem(Item $item, TaxCode $code, int $quantity = 1, int $bill = 0) : self
|
||||
{
|
||||
$element = new self();
|
||||
$element->bill = $bill;
|
||||
$element->bill = new NullBill($bill);
|
||||
$element->item = empty($item->id) ? null : $item->id;
|
||||
$element->itemNumber = $item->number;
|
||||
$element->itemName = $item->getL11n('name1')->content;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user