Added unit_string to customer data in preorder
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ class PreorderModel {
|
||||
public $stiege;
|
||||
public $stock;
|
||||
public $tuer;
|
||||
public $unit_string;
|
||||
public $zip;
|
||||
public $city;
|
||||
public $phone;
|
||||
|
||||
@@ -1002,6 +1002,10 @@ components:
|
||||
type: string
|
||||
description: Adresszusatz
|
||||
example: null
|
||||
unit_string:
|
||||
type: string
|
||||
description: Zusatzangaben zur Identifizierung der Wohneinheit in einem String. Kann statt den Einzelfeldern (Block, Stiege, Stock, Tür) angegeben werden
|
||||
example: Stg. 2 Stock 3 Tür 7
|
||||
phone:
|
||||
type: string
|
||||
description: Telefonnummer Kunde
|
||||
|
||||
Reference in New Issue
Block a user