Ver Fonte

fix ricevuta

FabioFratini há 8 meses atrás
pai
commit
1ada3f9569
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      resources/views/receipt.blade.php

+ 4 - 2
resources/views/receipt.blade.php

@@ -140,7 +140,9 @@
 
     @foreach($receipt->rows as $row)
         <b>Causale</b>: {{@$row->causal->getTree()}}<br><br>
-        <b>Dettaglio causale</b>: {{$row->note != '' ? $row->note : ''}}<br><br>
+        @if ($row->note != '')
+            <b>Dettaglio causale</b>: {{$row->note}}<br><br>
+        @endif
 
         @if($row->sconto > 0)
             @php $hasDiscount = true; @endphp
@@ -160,7 +162,7 @@
     <br><br>
 
     @if($hasDiscount)
-        <b>Totale prescontato</b>: {{formatPrice($totalPrediscount)}}<br><br>
+        <b>Totale</b>: {{formatPrice($totalPrediscount)}}<br><br>
         <b>Sconto totale</b>: {{formatPrice($totalSconto)}}<br><br>
     @endif