Skip to content

Commit

Permalink
fixed use stock adds to stock quantity instead of subracting from sto…
Browse files Browse the repository at this point in the history
…ck quantity (#5760)
  • Loading branch information
GokulramGHV authored Jun 28, 2023
1 parent 6771e91 commit 1365104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Facility/AddInventoryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const AddInventoryForm = (props: any) => {
{ id: true, name: "Add Stock" },
{ id: false, name: "Use Stock" },
]}
optionValue={(inventory) => inventory.name}
optionValue={(inventory) => inventory.id}
optionLabel={(inventory) => inventory.name}
error={stockError || state.errors.isIncoming}
/>
Expand Down

0 comments on commit 1365104

Please sign in to comment.