adapted DHL shipping CSV format

This commit is contained in:
Frank Schubert
2021-10-28 21:50:19 +02:00
parent c1c342f980
commit fe91991d7f

View File

@@ -3,5 +3,5 @@ foreach($shippings as $ship):
$order = $ship->order;
$owner = $order->owner;
?>
<?=date('Ymd')?>;XINON GmbH;"<?=$me->name?>";Fladnitz 150;8322;Studenzen;AT;43;311540800;office@xinon.at;"<?=$owner->company?>";"<?=$owner->getFullName()?>";"<?=($ship->termination_id) ? $ship->termination->building->street : $owner->street?>";<?=($ship->termination_id) ? $ship->termination->building->zip : $owner->zip?>;"<?=$owner->city?>";AT;<?=$owner->splitPhoneNumber()[0]?>;<?=$owner->splitPhoneNumber()[1]?>;Elektronik;1;DOM;<?=$ship->ship_weight?>;170863186;1;<?=$ship->ship_length?>;<?=$ship->ship_width?>;<?=$ship->ship_height?>;<?=$owner->customer_number?>
"<?=date('Ymd')?>";"XINON GmbH";"<?=$me->name?>";"Fladnitz 150";"8322";"Studenzen";"AT";"43";"311540800";"office@xinon.at";"<?=$owner->company?>";"<?=$owner->getFullName()?>";"<?=($ship->termination_id) ? $ship->termination->building->street : $owner->street?>";"<?=($ship->termination_id) ? $ship->termination->building->zip : $owner->zip?>";"<?=$owner->city?>";"AT";"<?=$owner->splitPhoneNumber()[0]?>";"<?=$owner->splitPhoneNumber()[1]?>";"Elektronik";"1";"DOM";"<?=$ship->ship_weight?>";"170863186";"1";"<?=$ship->ship_length?>";"<?=$ship->ship_width?>";"<?=$ship->ship_height?>";"<?=$owner->customer_number?>"
<?php endforeach;?>