Updates for quote item exports

This commit is contained in:
David Bomba 2023-07-16 20:51:21 +10:00
parent 6c3049f5cb
commit b3b3180667
2 changed files with 12 additions and 5 deletions

View File

@ -193,6 +193,10 @@ class BaseExport
]; ];
protected array $quote_report_keys = [ protected array $quote_report_keys = [
'custom_value1' => 'quote.custom_value1',
'custom_value2' => 'quote.custom_value2',
'custom_value3' => 'quote.custom_value3',
'custom_value4' => 'quote.custom_value4',
"number" => "quote.number", "number" => "quote.number",
"amount" => "quote.amount", "amount" => "quote.amount",
"balance" => "quote.balance", "balance" => "quote.balance",
@ -817,6 +821,7 @@ class BaseExport
$header[] = "{$prefix}" . ctrans("texts.{$key}"); $header[] = "{$prefix}" . ctrans("texts.{$key}");
} }
// nlog($header); // nlog($header);
return $header; return $header;

View File

@ -77,11 +77,13 @@ class QuoteItemExport extends BaseExport
'tax_name2' => 'item.tax_name2', 'tax_name2' => 'item.tax_name2',
'tax_name3' => 'item.tax_name3', 'tax_name3' => 'item.tax_name3',
'line_total' => 'item.line_total', 'line_total' => 'item.line_total',
// 'gross_line_total' => 'item.gross_line_total', 'gross_line_total' => 'item.gross_line_total',
'custom_value1' => 'item.custom_value1', 'quote1' => 'item.custom_value1',
'custom_value2' => 'item.custom_value2', 'quote2' => 'item.custom_value2',
'custom_value3' => 'item.custom_value3', 'quote3' => 'item.custom_value3',
'custom_value4' => 'item.custom_value4', 'quote4' => 'item.custom_value4',
'tax_category' => 'item.tax_id',
'type' => 'item.type_id',
]; ];
private array $decorate_keys = [ private array $decorate_keys = [