Merge pull request #1425 from rahulshukla-webkul/development
wrong grand total in invoice
This commit is contained in:
commit
889a286e0f
|
|
@ -249,7 +249,7 @@
|
|||
<td>{{ core()->formatBasePrice($item->base_discount_amount) }}</td>
|
||||
@endif
|
||||
|
||||
<td>{{ core()->formatBasePrice($item->base_total + $item->base_tax_amount - $item->base_total + $item->base_tax_amount) }}</td>
|
||||
<td>{{ core()->formatBasePrice($item->base_total + $item->base_tax_amount - $item->base_discount_amount) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ class OrderRepository extends Repository
|
|||
$totalQtyCanceled += $item->qty_canceled;
|
||||
}
|
||||
|
||||
if ($totalQtyOrdered != ($totalQtyRefunded + $totalQtyCanceled) &&
|
||||
if ($totalQtyOrdered != ($totalQtyRefunded + $totalQtyCanceled) &&
|
||||
$totalQtyOrdered == $totalQtyInvoiced + $totalQtyRefunded + $totalQtyCanceled &&
|
||||
$totalQtyOrdered == $totalQtyShipped + $totalQtyRefunded + $totalQtyCanceled)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue