minor change in items of invoices and bills moved to partials path

This commit is contained in:
Sevan Nerse 2020-05-10 08:49:36 +03:00
parent a8fe772581
commit f916d6a200
8 changed files with 10 additions and 10 deletions

View File

@ -13,10 +13,10 @@
@stack('quantity_td_end') @stack('quantity_td_end')
@stack('price_td_start') @stack('price_td_start')
<td class="price">@money($item->price, $invoice->currency_code, true)</td> <td class="price">@money($item->price, $document->currency_code, true)</td>
@stack('price_td_end') @stack('price_td_end')
@stack('total_td_start') @stack('total_td_start')
<td class="total">@money($item->total, $invoice->currency_code, true)</td> <td class="total">@money($item->total, $document->currency_code, true)</td>
@stack('total_td_end') @stack('total_td_end')
</tr> </tr>

View File

@ -13,7 +13,7 @@
@stack('quantity_td_end') @stack('quantity_td_end')
@stack('price_td_start') @stack('price_td_start')
<td class="col-sm-3 text-right d-none d-sm-block">@money($item->price, $invoice->currency_code, true)</td> <td class="col-sm-3 text-right d-none d-sm-block">@money($item->price, $document->currency_code, true)</td>
@stack('price_td_end') @stack('price_td_end')
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) @if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
@ -23,6 +23,6 @@
@endif @endif
@stack('total_td_start') @stack('total_td_start')
<td class="col-xs-4 col-sm-3 text-right pr-5">@money($item->total, $invoice->currency_code, true)</td> <td class="col-xs-4 col-sm-3 text-right pr-5">@money($item->total, $document->currency_code, true)</td>
@stack('total_td_end') @stack('total_td_end')
</tr> </tr>

View File

@ -129,7 +129,7 @@
<tbody> <tbody>
@foreach($bill->items as $item) @foreach($bill->items as $item)
@include('partials.documents.item.print') @include('partials.documents.item.print', ['document' => $bill])
@endforeach @endforeach
</tbody> </tbody>
</table> </table>

View File

@ -350,7 +350,7 @@
@stack('total_th_end') @stack('total_th_end')
</tr> </tr>
@foreach($bill->items as $item) @foreach($bill->items as $item)
@include('partials.documents.item.show') @include('partials.documents.item.show', ['document' => $bill])
@endforeach @endforeach
</tbody> </tbody>
</table> </table>

View File

@ -146,7 +146,7 @@
</thead> </thead>
<tbody> <tbody>
@foreach($invoice->items as $item) @foreach($invoice->items as $item)
@include('partials.documents.item.print') @include('partials.documents.item.print', ['document' => $invoice])
@endforeach @endforeach
</tbody> </tbody>
</table> </table>

View File

@ -133,7 +133,7 @@
</thead> </thead>
<tbody> <tbody>
@foreach($invoice->items as $item) @foreach($invoice->items as $item)
@include('partials.documents.item.print') @include('partials.documents.item.print', ['document' => $invoice])
@endforeach @endforeach
</tbody> </tbody>
</table> </table>

View File

@ -115,7 +115,7 @@
</thead> </thead>
<tbody> <tbody>
@foreach($invoice->items as $item) @foreach($invoice->items as $item)
@include('partials.documents.item.print') @include('partials.documents.item.print', ['document' => $invoice])
@endforeach @endforeach
</tbody> </tbody>
</table> </table>

View File

@ -367,7 +367,7 @@
@stack('total_th_end') @stack('total_th_end')
</tr> </tr>
@foreach($invoice->items as $item) @foreach($invoice->items as $item)
@include('partials.documents.item.show') @include('partials.documents.item.show', ['document' => $invoice])
@endforeach @endforeach
</tbody> </tbody>
</table> </table>