Skip to content

Commit

Permalink
Improved: sending picked quantity as payload in create picklist (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Sep 5, 2024
1 parent b21edcb commit 07be9ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ const actions: ActionTree<OrderState , RootState> ={
items.map((item: any, index: number) => {
formData.append("itemStatusId_o_"+index, "PICKITEM_PENDING")
formData.append("pickerIds_o_"+index, payload.selectedPicker)
formData.append("picked_o_"+index, item.quantity)
Object.keys(item).map((property) => {
if(property !== "facilityId") formData.append(property+'_o_'+index, item[property])
})
Expand Down
1 change: 1 addition & 0 deletions src/views/Orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ export default defineComponent({
items.map((item: any, index: number) => {
formData.append("itemStatusId_o_"+index, "PICKITEM_PENDING")
formData.append("pickerIds_o_"+index, selectedPicker)
formData.append("picked_o_"+index, item.quantity)
Object.keys(item).map((property) => {
if(property !== "facilityId") formData.append(property+'_o_'+index, item[property])
})
Expand Down

0 comments on commit 07be9ec

Please sign in to comment.