Added unit details to customer address in Preorder

This commit is contained in:
Frank Schubert
2022-12-06 16:55:52 +01:00
parent 33ff1273ed
commit cd6a48ff16
6 changed files with 65 additions and 16 deletions
+2 -2
View File
@@ -371,9 +371,9 @@ class PreorderApicontroller extends mfBaseApicontroller {
/*
* get customer data
*/
foreach(['company','uid','firstname','lastname','street','zip','city','phone','email'] as $key) {
foreach(['company','uid','firstname','lastname','street','housenumber','zip','city','phone','email','block','stiege','stock','tuer'] as $key) {
if(property_exists($customer, $key)) {
$preorder_data[$key] = $customer->$key;
$preorder_data[$key] = ($customer->$key) ? $customer->$key : null;
}
}