2 namespace Auction\Report;
7 * Stock Contyrol Report.
10 class BasketGrid extends \Utility\Service\Report
18 protected $_title = 'Auction Basket Data Export';
22 protected $_subject = 'Vehicles on auction in basket.';
26 protected $_description = 'Export of vehicles on auction in basket.';
30 protected $_notes = array(
31 'Confidential information, generated using Bid 4 Cars, for more information visit bid4cars.com.na'
36 protected $_headers = array(
40 'Registration Number',
46 'Main Exterior Colour',
50 'Times listed on auction',
59 protected $_fields = array(
62 'stock_referenceNumber',
63 'stock_registrationNumber',
69 'exteriorColour_name',
83 protected $_totals = array(
92 protected $_currencyFields = array(
102 * Build the dataset, or not.
104 public function build()
106 #-> Data passed by DataBin Grid functionality.
107 $dateTimeFormat = \Utility\Definitions\Locale::getDateTimeFormat();
108 foreach ($this->_data as $rowId => $rowData)
110 $this->_data[$rowId]['auction_created'] = $rowData['auction_created']->format($dateTimeFormat);
111 $this->_data[$rowId]['auction_updated'] = !is_null($rowData['auction_updated'])
112 ? $rowData['auction_updated']->format($dateTimeFormat)