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:
parent
2326ddfd3b
commit
09c1c4869e
@ -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') {
|
||||
|
@ -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(),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user