Implement department-specific customer pricing functionality

This commit is contained in:
Jeppe Bundgaard
2026-07-07 17:27:56 +02:00
parent c24428e4c7
commit 172a21c517
21 changed files with 1687 additions and 33 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class productsRoute
// Check if the customer is set
if ($customer !== null) {
// Apply the customers unique discounts
$products = (new products_o())->applyCustomerDiscounts($products, $customer);
$products = (new products_o())->applyCustomerDiscounts($products, $customer, $departmentId);
} else {
$products = products_o::stripDepartmentPriceSources($products);
}