This commit is contained in:
Frank John Begornia
2024-11-27 17:42:12 +08:00
parent f26c9c274b
commit f197490606
2 changed files with 5 additions and 2 deletions

View File

@@ -400,6 +400,7 @@ class PaypalController extends Controller
{
$m = new TeamStoreModel;
$updated_getSubtotal = $m->getSubtotalNew($cartKey);
$original_subtotal = $m->getSubtotal($cartKey); // withoutTanle
$grouped_item = $m->selectTeamStoreGroupByCartKey($cartKey);
if (count($grouped_item) <= 0) {
@@ -414,10 +415,11 @@ class PaypalController extends Controller
$order_grandtotal = $updated_getSubtotal[0]->Subtotal;
$order_subtotal = $original_subtotal[0]->Subtotal;
$tax = $order_grandtotal * $tax_value;
$tax = $order_subtotal * $tax_value;
return [
'tax' => $tax,