1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Working on CSV import/export

This commit is contained in:
Hillel Coren 2017-08-23 17:16:02 +03:00
parent 01b721f4f0
commit 4f340e1a9b
3 changed files with 9 additions and 2 deletions

View File

@ -111,6 +111,8 @@ class Invoice extends EntityModel implements BalanceAffecting
'due_date',
'paid',
'terms',
'public_notes',
'private_notes',
'item_product',
'item_notes',
'item_quantity',
@ -133,10 +135,12 @@ class Invoice extends EntityModel implements BalanceAffecting
'po number' => 'po_number',
'due date' => 'due_date',
'terms' => 'terms',
'product|item' => 'item_product',
'notes' => 'item_notes',
'public notes' => 'public_notes',
'private notes' => 'private_notes',
'description' => 'item_notes',
'quantity|qty' => 'item_quantity',
'amount|cost' => 'item_cost',
'product|item' => 'item_product',
'tax' => 'item_tax1',
];
}

View File

@ -33,6 +33,7 @@ class InvoiceTransformer extends BaseTransformer
'po_number' => $this->getString($data, 'po_number'),
'terms' => $this->getString($data, 'terms'),
'public_notes' => $this->getString($data, 'public_notes'),
'private_notes' => $this->getString($data, 'private_notes'),
'invoice_date_sql' => $this->getDate($data, 'invoice_date'),
'due_date_sql' => $this->getDate($data, 'due_date'),
'invoice_items' => [

View File

@ -2411,6 +2411,8 @@ $LANG = array(
'item_quantity' => 'Item Quantity',
'item_tax_rate' => 'Item Tax Rate',
'item_tax_name' => 'Item Tax Name',
'item_tax1' => 'Item Tax',
'item_tax2' => 'Item Tax',
);