Skip to content

Commit

Permalink
OBPIH-1567 Populate receiving bin for added line on partial receiving
Browse files Browse the repository at this point in the history
  • Loading branch information
dbienkowska committed Jan 23, 2019
1 parent 8ed1818 commit 9c57e6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/components/receiving/modals/EditLineModal.jsx
Expand Up @@ -17,12 +17,13 @@ const FIELDS = {
lines: {
type: ArrayField,
// eslint-disable-next-line react/prop-types
addButton: ({ addRow, shipmentItemId }) => (
addButton: ({ addRow, shipmentItemId, binLocation }) => (
<button
type="button"
className="btn btn-outline-success btn-xs"
onClick={() => addRow({
shipmentItemId,
binLocation,
receiptItemId: null,
newLine: true,
})}
Expand Down Expand Up @@ -202,6 +203,7 @@ class EditLineModal extends Component {
formProps={{
shipmentItemId: this.state.attr.fieldValue.shipmentItemId,
productsFetch: this.productsFetch,
binLocation: this.state.attr.fieldValue.binLocation,
}}
/>
);
Expand Down

0 comments on commit 9c57e6d

Please sign in to comment.