Implement department-specific customer pricing functionality
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user