1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add po number as optional report field

This commit is contained in:
Hillel Coren 2018-02-13 21:55:33 +02:00
parent 2326ddfd3b
commit 09c1c4869e
2 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,6 @@ class Vendor extends EntityModel
*/
public function addVendorContact($data, $isPrimary = false)
{
//$publicId = isset($data['public_id']) ? $data['public_id'] : false;
$publicId = isset($data['public_id']) ? $data['public_id'] : (isset($data['id']) ? $data['id'] : false);
if ($publicId && $publicId != '-1') {

View File

@ -20,6 +20,7 @@ class InvoiceReport extends AbstractReport
'payment_date' => [],
'paid' => [],
'method' => [],
'po_number' => ['columnSelector-false'],
'private_notes' => ['columnSelector-false'],
'user' => ['columnSelector-false'],
];
@ -93,6 +94,7 @@ class InvoiceReport extends AbstractReport
$payment ? $payment->present()->payment_date : '',
$payment ? $account->formatMoney($payment->getCompletedAmount(), $client) : '',
$payment ? $payment->present()->method : '',
$invoice->po_number,
$invoice->private_notes,
$invoice->user->getDisplayName(),
];