fix: VAT select in invoices — use admin-form-select instead of admin-form-input

This commit is contained in:
BOHA
2026-03-23 19:27:46 +01:00
parent d33c2b3416
commit 5285c3c7c9
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ function SortableInvoiceRow({ item, index, currency, apply_vat, onUpdate, onRemo
</td> </td>
{apply_vat ? ( {apply_vat ? (
<td> <td>
<select value={item.vat_rate} onChange={(e) => onUpdate(index, 'vat_rate', Number(e.target.value))} className="admin-form-input" style={{ textAlign: 'center', height: '2.25rem', padding: '0.375rem 0.5rem' }}> <select value={item.vat_rate} onChange={(e) => onUpdate(index, 'vat_rate', Number(e.target.value))} className="admin-form-select" style={{ height: '2.25rem', padding: '0.375rem 0.5rem', minWidth: '4.5rem' }}>
{VAT_OPTIONS.map(o => (<option key={o.value} value={o.value}>{o.label}</option>))} {VAT_OPTIONS.map(o => (<option key={o.value} value={o.value}>{o.label}</option>))}
</select> </select>
</td> </td>

View File

@@ -107,7 +107,7 @@ function SortableInvoiceEditRow({ item, index, apply_vat, onUpdate, onRemove, ca
<td><input type="number" value={item.unit_price} onChange={(e) => onUpdate(index, 'unit_price', e.target.value)} className="admin-form-input" step="any" style={{ textAlign: 'right', height: '2.25rem', padding: '0.375rem 0.5rem' }} /></td> <td><input type="number" value={item.unit_price} onChange={(e) => onUpdate(index, 'unit_price', e.target.value)} className="admin-form-input" step="any" style={{ textAlign: 'right', height: '2.25rem', padding: '0.375rem 0.5rem' }} /></td>
<td> <td>
{apply_vat ? ( {apply_vat ? (
<select value={item.vat_rate} onChange={(e) => onUpdate(index, 'vat_rate', Number(e.target.value))} className="admin-form-input" style={{ textAlign: 'center', height: '2.25rem', padding: '0.375rem 0.5rem' }}> <select value={item.vat_rate} onChange={(e) => onUpdate(index, 'vat_rate', Number(e.target.value))} className="admin-form-select" style={{ height: '2.25rem', padding: '0.375rem 0.5rem', minWidth: '4.5rem' }}>
{VAT_OPTIONS.map(o => <option key={o.value} value={o.value}>{o.label}</option>)} {VAT_OPTIONS.map(o => <option key={o.value} value={o.value}>{o.label}</option>)}
</select> </select>
) : ( ) : (