orders export includes ids
This commit is contained in:
parent
6e4138a348
commit
daca8b7823
@ -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 ; ?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user