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

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;
}

View File

@@ -39,6 +39,7 @@ class PreorderModel {
public $stiege;
public $stock;
public $tuer;
public $unit_string;
public $zip;
public $city;
public $phone;

View File

@@ -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