Einzelstueck-Anlegen: Preis-Vorschlag in eigene Zeile statt in die Preiszeile gequetscht
Der 'Preis-Vorschlag aus Beleg' stand mit Kaufpreis, Waehrung und Datei-Auswahl in einer Zeile und wirkte gequetscht. Jetzt bleibt die Preiszeile zweispaltig (Kaufpreis | Beleg) und der Vorschlag bekommt eine eigene Zeile darunter. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -474,22 +474,22 @@ export default function Einzelstuecke({ product, locations, shops, isAdmin, onCh
|
||||
</select>
|
||||
</div>
|
||||
</label>
|
||||
{priceCandidates.length > 1 && (
|
||||
<label style={{ maxWidth: 220 }}>Vorschlag aus Beleg
|
||||
<select value={centsFrom(addForm.price) ?? ""} style={{ marginTop: 0 }}
|
||||
onChange={(e) => setAddForm({ ...addForm, price: e.target.value === "" ? "" : (Number(e.target.value) / 100).toFixed(2) })}>
|
||||
{!priceCandidates.includes(centsFrom(addForm.price)) && <option value="">– eigener –</option>}
|
||||
{priceCandidates.map((c) => (
|
||||
<option key={c} value={c}>{(c / 100).toFixed(2)} {addForm.currency}</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
)}
|
||||
<label className="grow">Beleg (Rechnung/Garantieschein)
|
||||
<input type="file" accept="application/pdf,image/*"
|
||||
onChange={(e) => { const f = e.target.files?.[0]; if (f) pickDoc(f); }} />
|
||||
</label>
|
||||
</div>
|
||||
{priceCandidates.length > 1 && (
|
||||
<label className="mt-0" style={{ maxWidth: 340 }}>Preis-Vorschlag aus Beleg
|
||||
<select value={centsFrom(addForm.price) ?? ""} style={{ marginTop: 0 }}
|
||||
onChange={(e) => setAddForm({ ...addForm, price: e.target.value === "" ? "" : (Number(e.target.value) / 100).toFixed(2) })}>
|
||||
{!priceCandidates.includes(centsFrom(addForm.price)) && <option value="">– eigener Preis –</option>}
|
||||
{priceCandidates.map((c) => (
|
||||
<option key={c} value={c}>{(c / 100).toFixed(2)} {addForm.currency}</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
)}
|
||||
{addInfo && <p className="muted small mt-0"><Icon name="check" size={14} /> {addInfo}</p>}
|
||||
{newShopName && (
|
||||
<p className="muted small mt-0">
|
||||
|
||||
Reference in New Issue
Block a user