mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on CSV import/export
This commit is contained in:
parent
01b721f4f0
commit
4f340e1a9b
@ -111,6 +111,8 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
'due_date',
|
'due_date',
|
||||||
'paid',
|
'paid',
|
||||||
'terms',
|
'terms',
|
||||||
|
'public_notes',
|
||||||
|
'private_notes',
|
||||||
'item_product',
|
'item_product',
|
||||||
'item_notes',
|
'item_notes',
|
||||||
'item_quantity',
|
'item_quantity',
|
||||||
@ -133,10 +135,12 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
'po number' => 'po_number',
|
'po number' => 'po_number',
|
||||||
'due date' => 'due_date',
|
'due date' => 'due_date',
|
||||||
'terms' => 'terms',
|
'terms' => 'terms',
|
||||||
'product|item' => 'item_product',
|
'public notes' => 'public_notes',
|
||||||
'notes' => 'item_notes',
|
'private notes' => 'private_notes',
|
||||||
|
'description' => 'item_notes',
|
||||||
'quantity|qty' => 'item_quantity',
|
'quantity|qty' => 'item_quantity',
|
||||||
'amount|cost' => 'item_cost',
|
'amount|cost' => 'item_cost',
|
||||||
|
'product|item' => 'item_product',
|
||||||
'tax' => 'item_tax1',
|
'tax' => 'item_tax1',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ class InvoiceTransformer extends BaseTransformer
|
|||||||
'po_number' => $this->getString($data, 'po_number'),
|
'po_number' => $this->getString($data, 'po_number'),
|
||||||
'terms' => $this->getString($data, 'terms'),
|
'terms' => $this->getString($data, 'terms'),
|
||||||
'public_notes' => $this->getString($data, 'public_notes'),
|
'public_notes' => $this->getString($data, 'public_notes'),
|
||||||
|
'private_notes' => $this->getString($data, 'private_notes'),
|
||||||
'invoice_date_sql' => $this->getDate($data, 'invoice_date'),
|
'invoice_date_sql' => $this->getDate($data, 'invoice_date'),
|
||||||
'due_date_sql' => $this->getDate($data, 'due_date'),
|
'due_date_sql' => $this->getDate($data, 'due_date'),
|
||||||
'invoice_items' => [
|
'invoice_items' => [
|
||||||
|
@ -2411,6 +2411,8 @@ $LANG = array(
|
|||||||
'item_quantity' => 'Item Quantity',
|
'item_quantity' => 'Item Quantity',
|
||||||
'item_tax_rate' => 'Item Tax Rate',
|
'item_tax_rate' => 'Item Tax Rate',
|
||||||
'item_tax_name' => 'Item Tax Name',
|
'item_tax_name' => 'Item Tax Name',
|
||||||
|
'item_tax1' => 'Item Tax',
|
||||||
|
'item_tax2' => 'Item Tax',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user