Skip to content
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

Merged
merged 10 commits into from
Sep 12, 2024

Conversation

amansinghbais
Copy link
Contributor

Related Issues

#415

Short Description and Why It's Useful

  • Implemented logic to manage user preference for print picklist preference from settings page.
  • Added support for the option to print picklists for open orders.

Screenshots of Visual Changes before/after (If There Are Any)

Contribution and Currently Important Rules Acceptance

@amansinghbais amansinghbais marked this pull request as ready for review August 28, 2024 09:31
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) => {
Copy link
Collaborator

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?

}
}]
});
return alert.present();
},
async packShippingOrders(currenOrder: any, part: any) {
Copy link
Collaborator

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) => {
Copy link
Collaborator

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.

@ravilodhi ravilodhi merged commit 32622c9 into hotwax:main Sep 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants