Fixed: Fixed tax issues for services having per day price calculation

This commit is contained in:
Aman deep sharma
2025-07-04 16:01:49 +05:30
committed by vishalsingh.qlo325
parent 5600221be7
commit 51d1dffe21
3 changed files with 44 additions and 7 deletions

View File

@@ -6169,7 +6169,9 @@ class AdminOrdersControllerCore extends AdminController
$oldProductQuantity = $objServiceProductOrderDetail->quantity * $oldNumDays;
$newProductQuantity = $objServiceProductOrderDetail->quantity * $newNumDays;
$objOrderDetail->product_quantity += ($newProductQuantity - $oldProductQuantity);
$objOrderDetail->save();
$objOrderDetail->updateTaxAmount($order);
if (isset($order_invoice)) {
$order_invoice->total_paid_tax_excl -= $objServiceProductOrderDetail->total_price_tax_excl;