mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
add $custom_value in makeinvoicevalues
This commit is contained in:
parent
0c3a40e771
commit
3b4c2ba5b0
@ -620,10 +620,17 @@ trait MakesInvoiceValues
|
|||||||
$data[$key][$table_type.'.service'] = is_null(optional($item)->service) ? $item->product_key : $item->service;
|
$data[$key][$table_type.'.service'] = is_null(optional($item)->service) ? $item->product_key : $item->service;
|
||||||
$data[$key][$table_type.'.notes'] = $item->notes;
|
$data[$key][$table_type.'.notes'] = $item->notes;
|
||||||
$data[$key][$table_type.'.description'] = $item->notes;
|
$data[$key][$table_type.'.description'] = $item->notes;
|
||||||
$data[$key][$table_type.'.custom_value1'] = $item->custom_value1;
|
|
||||||
$data[$key][$table_type.'.custom_value2'] = $item->custom_value2;
|
// $data[$key][$table_type.'.custom_value1'] = $item->custom_value1;
|
||||||
$data[$key][$table_type.'.custom_value3'] = $item->custom_value3;
|
// $data[$key][$table_type.'.custom_value2'] = $item->custom_value2;
|
||||||
$data[$key][$table_type.'.custom_value4'] = $item->custom_value4;
|
// $data[$key][$table_type.'.custom_value3'] = $item->custom_value3;
|
||||||
|
// $data[$key][$table_type.'.custom_value4'] = $item->custom_value4;
|
||||||
|
|
||||||
|
$data[$key][$table_type . '.' . ltrim($table_type, '$') . '1'] = $item->custom_value1; // $product.product1
|
||||||
|
$data[$key][$table_type . '.' . ltrim($table_type, '$') . '2'] = $item->custom_value2;
|
||||||
|
$data[$key][$table_type . '.' . ltrim($table_type, '$') . '3'] = $item->custom_value3;
|
||||||
|
$data[$key][$table_type . '.' . ltrim($table_type, '$') . '4'] = $item->custom_value4;
|
||||||
|
|
||||||
$data[$key][$table_type.'.quantity'] = $item->quantity;
|
$data[$key][$table_type.'.quantity'] = $item->quantity;
|
||||||
|
|
||||||
$data[$key][$table_type.'.unit_cost'] = Number::formatMoney($item->cost, $this->client);
|
$data[$key][$table_type.'.unit_cost'] = Number::formatMoney($item->cost, $this->client);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user