Jelajahi Sumber

fix ricevuta

FabioFratini 8 bulan lalu
induk
melakukan
1ada3f9569
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  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