orders export includes ids

This commit is contained in:
BDC 2013-04-24 15:06:05 -04:00
parent 6e4138a348
commit daca8b7823

View File

@ -7,6 +7,8 @@
*/
$headers = [
'Order ID',
'Restaurant ID',
'Restaurant Name',
'Customer name',
'Order Date',
@ -60,6 +62,8 @@ echo implode(',', $headers)."\n";
ob_start();
?>
"<?=$order->id_order // Order ID?>",
"<?=$order->restaurant()->id_restaurant // Restaurant ID?>",
"<?=$order->restaurant()->name // Restaurant Name?>",
"<?=$order->name // Customer name?>",
"<?=$date->format('M jS Y') // Order Date?>",
@ -94,4 +98,4 @@ echo implode(',', $headers)."\n";
$output = preg_replace('/\n|\r|\t/i', '', $output);
echo "$output\n";
?>
<? endforeach ; ?>
<? endforeach ; ?>