Merge pull request #1425 from rahulshukla-webkul/development

wrong grand total in invoice
This commit is contained in:
Jitendra Singh 2019-09-09 15:39:27 +05:30 committed by GitHub
commit 889a286e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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;