mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
28 lines
479 B
PHP
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;
|
|
}
|
|
}
|
|
|