update commission
This commit is contained in:
@@ -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) - (
|
||||
|
||||
@@ -45,10 +45,13 @@
|
||||
<tr>
|
||||
<th>Teamstore</th>
|
||||
<th>Invoice No.</th>
|
||||
<th>Total</th>
|
||||
<th>Subtotal</th>
|
||||
<th>Tax</th>
|
||||
<th>Shipping Fee</th>
|
||||
<th>Total</th>
|
||||
<th>Currency</th>
|
||||
<th>CC Processing Fee (3.9%)</th>
|
||||
<th>Transaction Fee</th>
|
||||
<th>Commission Rate</th>
|
||||
<th>25%</th>
|
||||
<th>5%</th>
|
||||
@@ -59,10 +62,13 @@
|
||||
<tr>
|
||||
<td>{{ $c->StoreName }}</td>
|
||||
<td><a href="{{ url('admin/orders/view') . '/' . $c->CartKey }}">{{ $c->InvoiceNumber }}</a></td>
|
||||
<td>{{ $c->Total }}</td>
|
||||
<td>{{ $c->SubTotal }}</td>
|
||||
<td>{{ $c->Tax }}</td>
|
||||
<td>{{ $c->ShippingCost }}</td>
|
||||
<td>{{ $c->Total }}</td>
|
||||
<td>{{ $c->Currency }}</td>
|
||||
<td>{{round($c->Total * 0.039,2) }}</td>
|
||||
<td>0.49</td>
|
||||
<td>{{ $c->commission_rate }}</td>
|
||||
<td>{{ $c->twenty_five_percent }}</td>
|
||||
<td>{{ $c->five_percent }}</td>
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user