WIP Contract/Billing/Invoice 2024-06-28

This commit is contained in:
Frank Schubert
2024-07-01 11:44:19 +02:00
parent 4589e61ab8
commit ae298a0665
30 changed files with 1898 additions and 212 deletions

View File

@@ -87,7 +87,7 @@ class ContractqueueModel {
$data["order_id"] = $order->id;
$data["orderproduct_id"] = $op->id;
$data["owner_id"] = $order->owner_id;
$data["billingaddress_id"] = $order->billingaddress_id;
$data["billingaddress_id"] = ($order->billingaddress_id) ? $order->billingaddress_id : $order->owner_id;
$data["termination_id"] = ($op->termination_id) ? $op->termination_id : null;
$data["product_id"] = $op->product_id;
$data["product_name"] = $product->name;