update commission
This commit is contained in:
@@ -431,7 +431,7 @@ class AdminModel extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
function selectCommission(){
|
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.Total * 0.029) AS proc_fee,
|
||||||
(pd.SubTotal - 0.29) AS trans_rate, ROUND(((
|
(pd.SubTotal - 0.29) AS trans_rate, ROUND(((
|
||||||
SELECT trans_rate) - (
|
SELECT trans_rate) - (
|
||||||
|
|||||||
@@ -11,15 +11,15 @@
|
|||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1>
|
<h1>
|
||||||
Commission
|
Commission
|
||||||
<!-- <small>Optional description</small> -->
|
<!-- <small>Optional description</small> -->
|
||||||
</h1>
|
</h1>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
<li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||||
<li class="active"> Reports</li>
|
<li class="active"> Reports</li>
|
||||||
<li class="active"> Commission</li>
|
<li class="active"> Commission</li>
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Main content -->
|
<!-- Main content -->
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h4 class="box-title">Commission</h4>
|
<h4 class="box-title">Commission</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -39,16 +39,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
<table class="table table-bordered table-condensed nowrap" id="tbl_commission">
|
<table class="table table-bordered table-condensed nowrap" id="tbl_commission">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Teamstore</th>
|
<th>Teamstore</th>
|
||||||
<th>Invoice No.</th>
|
<th>Invoice No.</th>
|
||||||
<th>Total</th>
|
|
||||||
<th>Subtotal</th>
|
<th>Subtotal</th>
|
||||||
<th>Tax</th>
|
<th>Tax</th>
|
||||||
|
<th>Shipping Fee</th>
|
||||||
|
<th>Total</th>
|
||||||
<th>Currency</th>
|
<th>Currency</th>
|
||||||
|
<th>CC Processing Fee (3.9%)</th>
|
||||||
|
<th>Transaction Fee</th>
|
||||||
<th>Commission Rate</th>
|
<th>Commission Rate</th>
|
||||||
<th>25%</th>
|
<th>25%</th>
|
||||||
<th>5%</th>
|
<th>5%</th>
|
||||||
@@ -56,17 +59,20 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($array_commission as $c)
|
@foreach($array_commission as $c)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $c->StoreName }}</td>
|
<td>{{ $c->StoreName }}</td>
|
||||||
<td><a href="{{ url('admin/orders/view') . '/' . $c->CartKey }}">{{ $c->InvoiceNumber }}</a></td>
|
<td><a href="{{ url('admin/orders/view') . '/' . $c->CartKey }}">{{ $c->InvoiceNumber }}</a></td>
|
||||||
<td>{{ $c->Total }}</td>
|
<td>{{ $c->SubTotal }}</td>
|
||||||
<td>{{ $c->SubTotal }}</td>
|
<td>{{ $c->Tax }}</td>
|
||||||
<td>{{ $c->Tax }}</td>
|
<td>{{ $c->ShippingCost }}</td>
|
||||||
<td>{{ $c->Currency }}</td>
|
<td>{{ $c->Total }}</td>
|
||||||
<td>{{ $c->commission_rate }}</td>
|
<td>{{ $c->Currency }}</td>
|
||||||
<td>{{ $c->twenty_five_percent }}</td>
|
<td>{{round($c->Total * 0.039,2) }}</td>
|
||||||
<td>{{ $c->five_percent }}</td>
|
<td>0.49</td>
|
||||||
</tr>
|
<td>{{ $c->commission_rate }}</td>
|
||||||
|
<td>{{ $c->twenty_five_percent }}</td>
|
||||||
|
<td>{{ $c->five_percent }}</td>
|
||||||
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -341,12 +341,6 @@
|
|||||||
position:relative;
|
position:relative;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.items {
|
|
||||||
/* page-break-after: always; */
|
|
||||||
/* page-break-inside:avoid; */
|
|
||||||
/* position:relative; */
|
|
||||||
}
|
|
||||||
@page
|
@page
|
||||||
{
|
{
|
||||||
size: auto; /* auto is the initial value */
|
size: auto; /* auto is the initial value */
|
||||||
|
|||||||
Reference in New Issue
Block a user