Add article pack units with Redux-cached company unit list.

Edit amount/unit on the price tile (pc×1 = no pack unit), manage units in a dialog, and keep the default pc unit non-deletable.
This commit is contained in:
seb
2026-08-01 06:37:47 +02:00
parent 1b8652ceaf
commit 80f093649a
7 changed files with 841 additions and 25 deletions

View File

@@ -203,6 +203,7 @@ class EditablePanelTileBase extends Component {
tileKey,
renderDisplay,
renderEdit,
renderOverlay,
contentAlignItems = 'center',
} = this.props;
const { editing, draft, error } = this.state;
@@ -224,6 +225,13 @@ class EditablePanelTileBase extends Component {
})}
>
{this.renderActions()}
{typeof renderOverlay === 'function'
? renderOverlay({
editing,
draft,
onChange: this.handleDraftChange,
})
: null}
{this.renderTitle()}
<Box
sx={{