mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
add invoice transformer method
This commit is contained in:
parent
7e8d82384a
commit
2e3b89288d
@ -13,11 +13,6 @@ class Transformer
|
||||
return call_user_func([$this, $method], $items);
|
||||
}
|
||||
|
||||
protected function transformInvoices(array $items): Collection
|
||||
{
|
||||
return $this->transformation($items, []);
|
||||
}
|
||||
|
||||
protected function transformCustomers(array $items): Collection
|
||||
{
|
||||
return $this->transformation($items, [
|
||||
@ -34,6 +29,24 @@ class Transformer
|
||||
]);
|
||||
}
|
||||
|
||||
protected function transformInvoices(array $items): Collection
|
||||
{
|
||||
return $this->transformation($items, [
|
||||
"TotalAmt",
|
||||
"Line",
|
||||
"DueDate",
|
||||
"Deposit",
|
||||
"Balance",
|
||||
"CustomerMemo",
|
||||
"DocNumber",
|
||||
"CustomerRef",
|
||||
"BillEmail",
|
||||
'MetaData',
|
||||
"BillAddr",
|
||||
"ShipAddr"
|
||||
]);
|
||||
}
|
||||
|
||||
protected function transformItems(array $items): Collection
|
||||
{
|
||||
return $this->transformation($items, [
|
||||
|
Loading…
x
Reference in New Issue
Block a user