PDF: remove part codes; payments: pre-fill amount with balance due
- PDF parts table: removed Cod/article column, widened Denumire column, fixed colspan in tfoot from 4 to 3 - PaymentsRelationManager: amount field now defaults to (total - paidAmount) so it pre-fills with the remaining balance; always editable Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -225,10 +225,9 @@
|
||||
<table class="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 40%;">{{ __('Denumire') }}</th>
|
||||
<th style="width: 18%;">{{ __('Cod') }}</th>
|
||||
<th style="width: 55%;">{{ __('Denumire') }}</th>
|
||||
<th class="r" style="width: 10%;">{{ __('Cant.') }}</th>
|
||||
<th class="r" style="width: 14%;">{{ __('Preț') }}</th>
|
||||
<th class="r" style="width: 17%;">{{ __('Preț') }}</th>
|
||||
<th class="r" style="width: 18%;">{{ __('Total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -236,7 +235,6 @@
|
||||
@foreach ($wo->parts as $p)
|
||||
<tr>
|
||||
<td>{{ $p->name }}@if ($p->brand) <span style="color:#9ca3af;">({{ $p->brand }})</span>@endif</td>
|
||||
<td>{{ $p->article ?? '—' }}</td>
|
||||
<td class="r">{{ number_format((float) $p->qty, 2) }} {{ $p->unit }}</td>
|
||||
<td class="r">{{ number_format((float) $p->sell_price, 2, '.', ' ') }}</td>
|
||||
<td class="r"><b>{{ number_format((float) $p->total, 2, '.', ' ') }}</b></td>
|
||||
@@ -245,7 +243,7 @@
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4" class="r">{{ __('Subtotal piese:') }}</td>
|
||||
<td colspan="3" class="r">{{ __('Subtotal piese:') }}</td>
|
||||
<td class="r">{{ number_format((float) $partsTotal, 2, '.', ' ') }} {{ $currency }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
Reference in New Issue
Block a user