WIP Ivt Import 2024-05-02
This commit is contained in:
@@ -78,7 +78,12 @@ class Address extends mfBaseModel {
|
||||
$name_search = [];
|
||||
if($this->company) $name_search[] = $this->company;
|
||||
if($this->lastname) $name_search[] = $this->lastname;
|
||||
|
||||
|
||||
$country = new Country($this->country_id);
|
||||
if(!$country) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$fibumerge = XinonFibuMergeModel::getFirst(["old_custnum" => $old_custnum, "name" => $name_search]);
|
||||
if(!$fibumerge) {
|
||||
// create fibu merge
|
||||
@@ -91,6 +96,7 @@ class Address extends mfBaseModel {
|
||||
"strasse" => $this->street,
|
||||
"plz" => $this->zip,
|
||||
"ort" => $this->city,
|
||||
"land" => $country->isocode,
|
||||
"create_by" => 1,
|
||||
"edit_by" => 1
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user