u
This commit is contained in:
@@ -228,11 +228,13 @@ class PriceOverlay extends Component {
|
||||
unitOptions,
|
||||
articleUnitSi,
|
||||
onOpenEditor,
|
||||
onOpenTiers,
|
||||
} = this.props;
|
||||
if (!editing || draft == null) return null;
|
||||
return (
|
||||
<PriceUnitCorner
|
||||
hasUnit={draft.hasUnit}
|
||||
onOpenTiers={onOpenTiers}
|
||||
onToggleHasUnit={(hasUnit) => {
|
||||
if (hasUnit) {
|
||||
const unitamount = draft.unitamount || '1';
|
||||
@@ -557,7 +559,6 @@ export default class ArticleViewPrice extends PureComponent {
|
||||
: undefined
|
||||
}
|
||||
readOnly={!editing}
|
||||
onOpenTiers={this.openTiersDialog}
|
||||
/>
|
||||
</Box>
|
||||
)}
|
||||
@@ -575,6 +576,7 @@ export default class ArticleViewPrice extends PureComponent {
|
||||
unitOptions={unitOptions}
|
||||
articleUnitSi={articleData.unit?.si}
|
||||
onOpenEditor={this.openUnitEditor}
|
||||
onOpenTiers={this.openTiersDialog}
|
||||
/>
|
||||
)}
|
||||
display={
|
||||
|
||||
Reference in New Issue
Block a user