Hey Is it possible to remove Tax amount in store earnings calculation
means we calculate from subtotal and package charges so tax amount will come to admin so I need to remove tax calculation from store earnings

Yes, it is possible

search the code app/Http/Controllers/RestaurantOwnerController.php:
$balanceAfterCommission = ($balance->amount - ($restaurant->commission_rate / 100) * $balance->amount);

modify:
$balanceAfterCommission = ($balance->amount);

    Thanks, brother and one more help is it possible to set a coupon amount that will not affect the in-store commission rate
    like while user applying coupon code it will not reduce in store subtotal amount

    DevWms it won't work brother I need store before commission I don't want to show store earnings with tax amount brother so I need to remove tax amount from store before commission

    5 days later

    $balanceAfterCommission = ($balance->amount-tax%);

    a year later
                        $balanceBeforeCommission = $balance->amount - (2*$balance->amount)/100;
                        $balanceAfterCommission = ($balance->amount - (2*$balance->amount)/100 - ($restaurant->commission_rate / 100) * $balance->amount);

    i use 2% tax so did this

    if (!$balance) {
                            $balanceBeforeCommission = 0;
                            $balanceAfterCommission = 0;
                            $balanceAfterCommissionandTax = 0;
                        } else {
                            $balanceBeforeCommission = $balance->amount - (2*$balance->amount)/100;
                            $balanceAfterCommissionandTax = ($balance->amount - (2*$balance->amount)/100 - ($restaurant->commission_rate / 100) * $balance->amount);
                            $balanceAfterCommission = ($balance->amount - (2*$balanceAfterCommissionandTax)/100 - ($restaurant->commission_rate / 100) * $balance->amount);
                            $balanceAfterCommission = number_format((float) $balanceAfterCommission, 2, '.', '');
                        }
    Write a Reply...