mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
Mobile optimization
This commit is contained in:
@@ -71,11 +71,12 @@ function invoice_tax_base($invoice)
|
||||
|
||||
// Count tax base
|
||||
foreach ($invoice['items'] as $item) {
|
||||
if ($bag->whereNotIn('rate', $item['tax_rate'])) {
|
||||
if (! $bag->firstWhere('rate', $item['tax_rate'])) {
|
||||
$bag->push([
|
||||
'rate' => $item['tax_rate'],
|
||||
'total' => $item['price'] * $item['amount'],
|
||||
]);
|
||||
|
||||
} else {
|
||||
$bag->map(function ($bagItem) use ($item) {
|
||||
if ($bagItem['rate'] === $item['tax_rate']) {
|
||||
@@ -115,7 +116,7 @@ function invoice_tax_summary($invoice)
|
||||
|
||||
// Count tax base
|
||||
foreach ($invoice['items'] as $item) {
|
||||
if ($bag->whereNotIn('rate', $item['tax_rate'])) {
|
||||
if (! $bag->firstWhere('rate', $item['tax_rate'])) {
|
||||
$bag->push([
|
||||
'rate' => $item['tax_rate'],
|
||||
'total' => ($item['price'] * $item['amount']) * ($item['tax_rate'] / 100),
|
||||
|
||||
Reference in New Issue
Block a user