Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions shopfloor_reception_mobile/static/src/scenario/reception.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ const Reception = {
path: "quantity_done",
label: "Qty done",
display_no_value: true,
renderer: function (rec, field) {
return rec.quantity_done + " / " + rec.quantity;
},
Comment on lines +384 to +386
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, it should display the quantity by packaging

Suggested change
renderer: function (rec, field) {
return rec.quantity_done + " / " + rec.quantity;
},
render_component: "packaging-qty-picker-display",
render_props: function (record) {
return self.utils.wms.move_line_qty_picker_props(record, {
qtyInit: record.quantity_done,
# qtyTodo: record.quantity,
});
},

And then the component could be improved to support a qtyTodo to render it the same way

Examples:

  • 0 / 1000 (1 PAL, 3 TU)
  • 200 (2 TU) / 1000 (1 PAL, 3 TU)

},
],
},
Expand Down