1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/app/DataMapper/InvoiceItem.php

80 lines
1.6 KiB
PHP
Raw Normal View History

<?php
2019-05-11 05:32:07 +02:00
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\DataMapper;
class InvoiceItem
{
2019-10-29 12:44:54 +01:00
public $quantity = 0;
2019-10-29 12:44:54 +01:00
public $cost = 0;
2019-10-29 12:44:54 +01:00
public $product_key = '';
2019-10-29 12:44:54 +01:00
public $notes = '';
2019-10-29 12:44:54 +01:00
public $discount = 0;
2019-10-29 12:44:54 +01:00
public $is_amount_discount = false;
2019-10-29 12:44:54 +01:00
public $tax_name1 = '';
2019-10-29 12:44:54 +01:00
public $tax_rate1 = 0;
2019-10-29 12:44:54 +01:00
public $tax_name2 = '';
2019-10-29 12:44:54 +01:00
public $tax_rate2 = 0;
2019-10-29 12:44:54 +01:00
public $tax_name3 = '';
2019-10-29 12:44:54 +01:00
public $tax_rate3 = 0;
public $sort_id = '0';
2019-09-03 05:39:35 +02:00
2019-10-29 12:44:54 +01:00
public $line_total = 0;
2019-09-03 05:39:35 +02:00
2019-10-29 12:44:54 +01:00
public $date = '';
2019-09-03 05:39:35 +02:00
2019-10-29 12:44:54 +01:00
public $custom_value1 = '';
2019-09-03 05:39:35 +02:00
2019-10-29 12:44:54 +01:00
public $custom_value2 = '';
2019-09-03 05:39:35 +02:00
2019-10-29 12:44:54 +01:00
public $custom_value3 = '';
2019-10-29 12:44:54 +01:00
public $custom_value4 = '';
public $invoice_item_type_id = 1;
2019-10-29 12:44:54 +01:00
public static $casts = [
'invoice_item_type_id' => 'string',
2019-10-29 12:44:54 +01:00
'quantity' => 'float',
'cost' => 'float',
'product_key' => 'string',
'notes' => 'string',
'discount' => 'float',
'is_amount_discount' => 'bool',
'tax_name1' => 'string',
'tax_name2' => 'string',
'tax_name3' => 'string',
'tax_rate1' => 'float',
'tax_rate2' => 'float',
'tax_rate3' => 'float',
'sort_id' => 'string',
2019-10-29 12:44:54 +01:00
'line_total' => 'float',
'date' => 'string',
'custom_value1' => 'string',
'custom_value2' => 'string',
'custom_value3' => 'string',
'custom_value4' => 'string',
];
}