Add booked_invoice_id property and optimize invoice handling

Introduce the booked_invoice_id property in collected_order_invoices_o for improved invoice management. Optimize performance by avoiding redundant requests to external systems when the booked_invoice_id is already set. Enhance routes to include the booked_invoice_id in relevant responses and ensure a consistent structure for associated data.
This commit is contained in:
Jepp9350
2025-03-04 08:24:33 +01:00
parent bad6a62a5a
commit 8928cd375a
4 changed files with 21 additions and 4 deletions
+3 -1
View File
@@ -53,7 +53,9 @@ class productsRoute
$products = (new products_o())->applyDepartmentPricing((array)$products, (int)$data['department_id']);
}
$response->success(
$products
array_map(function ($product) {
return parseProduct($product);
}, $products)
);
}
// Log the incident