1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Factory/InvoiceItemFactory.php
2019-04-04 20:28:53 +11:00

28 lines
479 B
PHP

<?php
namespace App\Factory;
class InvoiceItemFactory
{
public static function create() :\stdClass
{
$item = new \stdClass;
$item->qty = 0;
$item->cost = 0;
$item->product_key = '';
$item->notes = '';
$item->discount = 0;
$item->is_amount_discount = true;
$item->tax_name1 = '';
$item->tax_rate1 = 0;
$item->tax_name2 = '';
$item->tax_rate2 = 0;
$item->sort_id = 0;
$item->line_total = 0;
$item->invoice_item_type_id = 0;
return $item;
}
}