From 54b03986cf47236196b2223e0420f181044295ec Mon Sep 17 00:00:00 2001 From: franknstayn Date: Wed, 27 Oct 2021 20:20:59 +0800 Subject: [PATCH] update commission --- app/Models/admin/AdminModel.php | 2 +- .../views/admin_pages/commission.blade.php | 52 +++++++++++-------- .../views/admin_pages/print_order.blade.php | 6 --- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/app/Models/admin/AdminModel.php b/app/Models/admin/AdminModel.php index 9d73786..d160407 100644 --- a/app/Models/admin/AdminModel.php +++ b/app/Models/admin/AdminModel.php @@ -431,7 +431,7 @@ class AdminModel extends Model } function selectCommission(){ - $i = DB::select("SELECT t.StoreName, pd.InvoiceNumber, pd.CartKey, pd.Total, pd.SubTotal, pd.Tax, pd.Currency, + $i = DB::select("SELECT t.StoreName, pd.InvoiceNumber, pd.CartKey, pd.Total, pd.SubTotal, pd.Tax, pd.Currency, pd.ShippingCost, (pd.Total * 0.029) AS proc_fee, (pd.SubTotal - 0.29) AS trans_rate, ROUND((( SELECT trans_rate) - ( diff --git a/resources/views/admin_pages/commission.blade.php b/resources/views/admin_pages/commission.blade.php index baa3e34..b16f94c 100644 --- a/resources/views/admin_pages/commission.blade.php +++ b/resources/views/admin_pages/commission.blade.php @@ -11,15 +11,15 @@
-

- Commission - -

- +

+ Commission + +

+
@@ -28,7 +28,7 @@
-

Commission

+

Commission

@@ -39,16 +39,19 @@
- + - + + + + @@ -56,17 +59,20 @@ @foreach($array_commission as $c) - - - - - - - - - - - + + + + + + + + + + + + + + @endforeach
Teamstore Invoice No.Total Subtotal TaxShipping FeeTotal CurrencyCC Processing Fee (3.9%)Transaction Fee Commission Rate 25% 5%
{{ $c->StoreName }}{{ $c->InvoiceNumber }}{{ $c->Total }}{{ $c->SubTotal }}{{ $c->Tax }}{{ $c->Currency }}{{ $c->commission_rate }}{{ $c->twenty_five_percent }}{{ $c->five_percent }}
{{ $c->StoreName }}{{ $c->InvoiceNumber }}{{ $c->SubTotal }}{{ $c->Tax }}{{ $c->ShippingCost }}{{ $c->Total }}{{ $c->Currency }}{{round($c->Total * 0.039,2) }}0.49{{ $c->commission_rate }}{{ $c->twenty_five_percent }}{{ $c->five_percent }}
diff --git a/resources/views/admin_pages/print_order.blade.php b/resources/views/admin_pages/print_order.blade.php index fe12468..f9ae73d 100644 --- a/resources/views/admin_pages/print_order.blade.php +++ b/resources/views/admin_pages/print_order.blade.php @@ -341,12 +341,6 @@ position:relative; } } - - .items { - /* page-break-after: always; */ - /* page-break-inside:avoid; */ - /* position:relative; */ - } @page { size: auto; /* auto is the initial value */