Added unit_string to customer data in preorder

This commit is contained in:
Frank Schubert
2022-12-14 15:49:30 +01:00
parent 73831b6de6
commit 532bd84a65
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ class PreorderApicontroller extends mfBaseApicontroller {
/*
* get customer data
*/
foreach(['company','uid','firstname','lastname','street','housenumber','zip','city','phone','email','block','stiege','stock','tuer'] as $key) {
foreach(['company','uid','firstname','lastname','street','housenumber','zip','city','phone','email','block','stiege','stock','tuer', 'unit_string'] as $key) {
if(property_exists($customer, $key)) {
$preorder_data[$key] = ($customer->$key) ? $customer->$key : null;
}
+1
View File
@@ -39,6 +39,7 @@ class PreorderModel {
public $stiege;
public $stock;
public $tuer;
public $unit_string;
public $zip;
public $city;
public $phone;