Fixed: Should have option to select No tax while adding new services in order. Also allow to add service with 0 price

This commit is contained in:
Sumit Panwar
2025-06-23 12:49:45 +05:30
parent bd7bfcfdf5
commit 57cf3ca9ca
5 changed files with 9 additions and 13 deletions

View File

@@ -1396,7 +1396,7 @@ class AdminCartsControllerCore extends AdminController
$response['errors'][] = Tools::displayError('Invalid service name');
}
if (empty($price)) {
if (!isset($price)) {
$response['hasError'] = true;
$response['errors'][] = Tools::displayError('Service price is required');
} elseif (!Validate::isPrice($price)) {