Guest User

Untitled

a guest
Jan 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. foreach ($items as $item) {
  2. $this->metadataProvider->convertDate($item, $component->getName());
  3. $stream->writeCsv($this->metadataProvider->getRowData($item, $fields, $options));
  4. }
  5.  
  6. foreach ($items as $item) {
  7. $item['base_grand_total'] = $item['base_currency_code'].$item['base_grand_total'];
  8. $srItem['grand_total'] = $item['order_currency_code'].$item['grand_total'];
  9. $item['subtotal'] = $item['base_currency_code'].$item['subtotal'];
  10. $item['shipping_and_handling'] = $item['base_currency_code'].$item['shipping_and_handling'];
  11. $this->metadataProvider->convertDate($item, $component->getName());
  12. $stream->writeCsv($this->metadataProvider->getRowData($item, $fields, $options));
  13. }
Add Comment
Please, Sign In to add comment