added check for same owner/billing address id in billingaddress update

script
This commit is contained in:
Frank Schubert
2023-01-09 20:36:41 +01:00
parent 37cad7df6e
commit ec9e02a68d
2 changed files with 5 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ foreach(OrderModel::getAll() as $order) {
continue;
}
if($order->billingaddress_id == $order->owner_id) {
continue;
}
$data['address_id'] = $order->billingaddress_id;
$data['origin_address_id'] = $order->owner_id;
$data['type'] = "billing";