2 namespace Auction\Report;
6 * Stock Contyrol Report.
9 class AuctionGrid extends \Utility\Service\Report
17 protected $_title = 'Auction Data Export';
21 protected $_subject = 'Vehicles on auction.';
25 protected $_description = 'Export of vehicles on auction.';
29 protected $_notes = array(
30 'Confidential information, generated using Bid 4 Cars, for more information visit bid4cars.com.na'
35 protected $_headers = array(
39 'Registration Number',
54 protected $_fields = array(
55 'auction_auctionCompanyName',
57 'auction_referenceNumber',
58 'auction_registrationNumber',
67 'auction_reservePrice',
73 protected $_totals = array(
77 'auction_reservePrice'
82 protected $_currencyFields = array(
86 'auction_reservePrice'
92 * Build the dataset, or not.
94 public function build()
96 #-> Data passed by DataBin Grid functionality.
97 $dateTimeFormat = \Utility\Definitions\Locale::getDateTimeFormat();
98 foreach ($this->_data as $rowId => $rowData)
100 $this->_data[$rowId]['auction_created'] = $rowData['auction_created']->format($dateTimeFormat);
101 $this->_data[$rowId]['auction_updated'] = !is_null($rowData['auction_updated'])
102 ? $rowData['auction_updated']->format($dateTimeFormat)