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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user