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
+15 -10
View File
@@ -277,16 +277,21 @@ class PreorderController extends mfBaseController {
$data['partner_id'] = null;
}
$data['company'] = $r->company;
$data['uid'] = $r->uid;
$data['firstname'] = $r->firstname;
$data['lastname'] = $r->lastname;
$data['street'] = $r->street;
$data['zip'] = $r->zip;
$data['city'] = $r->city;
$data['phone'] = $r->phone;
$data['email'] = $r->email;
$data['note'] = $r->note;
$data['company'] = (trim($r->company)) ? trim($r->company) : null;
$data['uid'] = (trim($r->uid)) ? trim($r->uid) : null;
$data['firstname'] = (trim($r->firstname)) ? trim($r->firstname) : null;
$data['lastname'] = (trim($r->lastname)) ? trim($r->lastname) : null;
$data['street'] = (trim($r->street)) ? trim($r->street) : null;
$data['housenumber'] = (trim($r->housenumber)) ? trim($r->housenumber) : null;
$data['block'] = (trim($r->block)) ? trim($r->block) : null;
$data['stiege'] = (trim($r->stiege)) ? trim($r->stiege) : null;
$data['stock'] = (trim($r->stock)) ? trim($r->stock) : null;
$data['tuer'] = (trim($r->tuer)) ? trim($r->tuer) : null;
$data['zip'] = (trim($r->zip)) ? trim($r->zip) : null;
$data['city'] = (trim($r->city)) ? trim($r->city) : null;
$data['phone'] = (trim($r->phone)) ? trim($r->phone) : null;
$data['email'] = (trim($r->email)) ? trim($r->email) : null;
$data['note'] = (trim($r->note)) ? trim($r->note) : null;
$data['edit_by'] = $this->me->id;