Skip to content

Commit 9631a98

Browse files
committed
Fix
1 parent a9587cd commit 9631a98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/orders/partials/card-show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'route' => 'orders'
1818
]) |
1919
@can('edit crm orders')
20-
@if($quoteError)
20+
@if($subTotalError || $taxError || $totalError)
2121
<a href="{{ route('laravel-crm.orders.edit',$order) }}" class="btn btn-warning btn-sm">Error with order, check amounts</a>
2222
@else
2323
@if(! $order->deliveryComplete())

src/Http/Helpers/CheckAmount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function tax($model)
2020
$total = 0;
2121

2222
foreach (\VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\getItems($model) as $item) {
23-
$total += $item->quantity * $item->tax_amount;
23+
$total += $item->tax_amount;
2424
}
2525

2626
if ($model->tax == $total) {

0 commit comments

Comments
 (0)