dev
曾超新 5 years ago
parent 89536d5a17
commit 0cc576ffd9
  1. 4
      frontend/controllers/FinanceController.php

@ -213,9 +213,9 @@ class FinanceController extends \frontend\controllers\UserBaseController
$data['rows'] = [];
foreach($items as $item) {
$row = $item->toArray();
$row['group'] = $item->user->group->name;
$row['group'] = $item->user && $item->user->group ? $item->user->group->name : '';
$row['company_name'] = $item->order->company2->name;
$row['username'] = $item->user->getShowName();
$row['username'] = $item->user ? $item->user->showName : '';
$row['submit_date'] = $item->order->submit_date;
$row['print_date'] = $item->order->print_date;
$row['total_real'] = round($item->total_clear_real + $item->total_tax_real,2);

Loading…
Cancel
Save