update commission

This commit is contained in:
franknstayn
2021-10-27 20:20:59 +08:00
parent da042e3493
commit 54b03986cf
3 changed files with 30 additions and 30 deletions

View File

@@ -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) - (