external billing info will be send to product owner

This commit is contained in:
Frank Schubert
2022-01-27 22:41:10 +01:00
parent d09ab832ed
commit 15ddb0e978
2 changed files with 8 additions and 4 deletions

View File

@@ -609,6 +609,7 @@ class OrderController extends mfBaseController {
// if product is not external and customer is new, create customer_number and service pin
if($prod->external) {
$ext_products = true;
$ext_product_owner_id = $prod->external_id;
} else {
$int_products = true;
@@ -723,7 +724,7 @@ class OrderController extends mfBaseController {
if($send_to_bill_email) {
if($ext_products && !$int_products) {
if(!$order->sendExtBillinfoEmail()) {
if(!$order->sendExtBillinfoEmail(new Address($ext_product_owner_id))) {
$this->layout()->setFlash("Beim Senden der externen Billing Benachrichtigung ist ein Fehler aufgetreten.", "warning");
}
}