diff --git a/resources/js/components/documents/LineItemTable.vue b/resources/js/components/documents/LineItemTable.vue index add4adb..eb15616 100644 --- a/resources/js/components/documents/LineItemTable.vue +++ b/resources/js/components/documents/LineItemTable.vue @@ -114,7 +114,7 @@ const recalculatePositions = () => { - + @@ -132,6 +132,7 @@ const recalculatePositions = () => { + diff --git a/resources/views/invoice.blade.php b/resources/views/invoice.blade.php index 562567c..7ddd545 100644 --- a/resources/views/invoice.blade.php +++ b/resources/views/invoice.blade.php @@ -148,18 +148,30 @@ @foreach ($invoice['items'] as $item) - - {{ $item['position'] }} - - {{ $item['title'] }}
- {{ $item['description'] }} - - @toCommaFloat($item['quantity']) - {{ $item['unit'] }} - @toCurrency($item['price']) - @toCurrency($item['quantity'] * $item['price']) - + @if($item['isSection']) + + +

{{ $item['title'] }}

+ @if($item['description']) +

{{ $item['description'] }}

+ @endif + + + @else + + {{ $item['position'] }} + + {{ $item['title'] }}
+ {{ $item['description'] }} + + @toCommaFloat($item['quantity']) + {{ $item['unit'] }} + @toCurrency($item['price']) + @toCurrency($item['quantity'] * $item['price']) + + @endif @endforeach +