u
This commit is contained in:
@@ -264,7 +264,7 @@ export default class OrderShipmentDialog extends PureComponent {
|
|||||||
</Typography>
|
</Typography>
|
||||||
{orderNumber ? (
|
{orderNumber ? (
|
||||||
<Typography variant="caption" color="text.secondary">
|
<Typography variant="caption" color="text.secondary">
|
||||||
Zu Auftrag / Bestellung: <strong>{orderNumber}</strong>
|
Zu: <strong>{orderNumber}</strong>
|
||||||
</Typography>
|
</Typography>
|
||||||
) : null}
|
) : null}
|
||||||
</Box>
|
</Box>
|
||||||
@@ -307,8 +307,7 @@ export default class OrderShipmentDialog extends PureComponent {
|
|||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
size="small"
|
size="small"
|
||||||
label="Lieferschein-Nr. / Externe Referenz (optional)"
|
label="Referenz"
|
||||||
placeholder="z.B. LS-2026-0042"
|
|
||||||
value={externalNumber}
|
value={externalNumber}
|
||||||
disabled={saving}
|
disabled={saving}
|
||||||
onChange={(e) => this.setState({ externalNumber: e.target.value })}
|
onChange={(e) => this.setState({ externalNumber: e.target.value })}
|
||||||
@@ -316,24 +315,6 @@ export default class OrderShipmentDialog extends PureComponent {
|
|||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
{/* Items selection section */}
|
|
||||||
<Box sx={{ mb: 1, display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
|
||||||
<Typography variant="subtitle2" sx={{ fontWeight: 700 }}>
|
|
||||||
Zu liefernde Artikel ({selectedCount} von {openItems.length} ausgewählt)
|
|
||||||
</Typography>
|
|
||||||
{openItems.length > 0 && (
|
|
||||||
<Button
|
|
||||||
size="small"
|
|
||||||
variant="text"
|
|
||||||
disabled={saving}
|
|
||||||
onClick={() => this.handleToggleAll(openItems)}
|
|
||||||
sx={{ textTransform: 'none', fontWeight: 600, fontSize: '0.8rem' }}
|
|
||||||
>
|
|
||||||
{isAllSelected ? 'Auswahl aufheben' : 'Alle offenen auswählen'}
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
</Box>
|
|
||||||
|
|
||||||
<TableContainer sx={{ border: '1px solid', borderColor: 'divider', borderRadius: 1 }}>
|
<TableContainer sx={{ border: '1px solid', borderColor: 'divider', borderRadius: 1 }}>
|
||||||
<Table size="small">
|
<Table size="small">
|
||||||
<TableHead sx={{ bgcolor: 'action.hover' }}>
|
<TableHead sx={{ bgcolor: 'action.hover' }}>
|
||||||
@@ -430,34 +411,17 @@ export default class OrderShipmentDialog extends PureComponent {
|
|||||||
</TableContainer>
|
</TableContainer>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|
||||||
<DialogActions sx={{ p: 2, justifyContent: 'space-between' }}>
|
<DialogActions sx={{ p: 2, justifyContent: 'flex-end' }}>
|
||||||
<Button variant="outlined" onClick={onClose} disabled={saving}>
|
<Button
|
||||||
Abbrechen
|
variant="contained"
|
||||||
|
color="primary"
|
||||||
|
disabled={saving || allShipped || selectedCount === 0}
|
||||||
|
startIcon={saving ? <CircularProgress size={16} color="inherit" /> : <LocalShippingOutlinedIcon />}
|
||||||
|
onClick={this.handleSubmit}
|
||||||
|
sx={{ textTransform: 'none', fontWeight: 700 }}
|
||||||
|
>
|
||||||
|
{saving ? 'Wird erstellt…' : 'Lieferschein erstellen'}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Stack direction="row" spacing={1.5}>
|
|
||||||
{!allShipped && openItems.length > 0 && (
|
|
||||||
<Button
|
|
||||||
variant="outlined"
|
|
||||||
color="secondary"
|
|
||||||
disabled={saving}
|
|
||||||
onClick={this.handleShipAll}
|
|
||||||
sx={{ textTransform: 'none', fontWeight: 600 }}
|
|
||||||
>
|
|
||||||
Alles liefern
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
<Button
|
|
||||||
variant="contained"
|
|
||||||
color="primary"
|
|
||||||
disabled={saving || allShipped || selectedCount === 0}
|
|
||||||
startIcon={saving ? <CircularProgress size={16} color="inherit" /> : <LocalShippingOutlinedIcon />}
|
|
||||||
onClick={this.handleSubmit}
|
|
||||||
sx={{ textTransform: 'none', fontWeight: 700 }}
|
|
||||||
>
|
|
||||||
{saving ? 'Wird erstellt…' : 'Lieferschein erstellen'}
|
|
||||||
</Button>
|
|
||||||
</Stack>
|
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
</AppDialog>
|
</AppDialog>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -209,9 +209,8 @@ class NewShipmentModal extends PureComponent {
|
|||||||
sx={{ width: 180 }}
|
sx={{ width: 180 }}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
label="Externe Referenz / Lieferschein-Nr."
|
label="Referenz"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="z.B. LS-2026-99"
|
|
||||||
value={externalNumber}
|
value={externalNumber}
|
||||||
onChange={(e) => this.setState({ externalNumber: e.target.value })}
|
onChange={(e) => this.setState({ externalNumber: e.target.value })}
|
||||||
sx={{ flex: 1 }}
|
sx={{ flex: 1 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user