-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented: support for print picklist in open orders (#415) #421
Conversation
…icklists functionality (hotwax#415)
…king is not enabled (hotwax#415)
…n if picklist already created (hotwax#415)
src/views/Orders.vue
Outdated
if(!hasError(resp)) { | ||
showToast(translate("Order packed and ready for delivery")); | ||
const orders = JSON.parse(JSON.stringify(this.orders)); | ||
const orderIndex = orders.findIndex((order: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the similar code to remove updated order in two places. Can we have single action for this logic?
src/views/Orders.vue
Outdated
} | ||
}] | ||
}); | ||
return alert.present(); | ||
}, | ||
async packShippingOrders(currenOrder: any, part: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove part, as it is not used.
componentProps: { order, part, facilityId: this.currentFacility.facilityId } | ||
}); | ||
|
||
assignPickerModal.onDidDismiss().then(async(result: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic should be improved for better readability like, if configure picker is off then set the pickerPartyId to NA else open modal and then set the selected pickerPartyId. In the end if pickerPartyId is set then only run the ceratePicklist flow.
Related Issues
#415
Short Description and Why It's Useful
Screenshots of Visual Changes before/after (If There Are Any)
Contribution and Currently Important Rules Acceptance