added invoice/bill category to customer/vendor summary page

This commit is contained in:
denisdulici 2018-05-02 22:12:18 +03:00
parent 334e4fb933
commit 654bd509bd
2 changed files with 2 additions and 6 deletions

View File

@ -64,9 +64,7 @@ class Vendors extends Controller
$payments = 0;
foreach ($item->payments as $payment) {
$payment->category = new \stdClass();
$payment->category->id = 0;
$payment->category->name = trans_choice('general.bills', 2);
$payment->category = $item->category;
$bill_payments[] = $payment;

View File

@ -64,9 +64,7 @@ class Customers extends Controller
$payments = 0;
foreach ($item->payments as $payment) {
$payment->category = new \stdClass();
$payment->category->id = 0;
$payment->category->name = trans_choice('general.invoices', 2);
$payment->category = $item->category;
$invoice_payments[] = $payment;