-
Notifications
You must be signed in to change notification settings - Fork 16
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
5675.2 link requisition modal #6330
Conversation
useEffect(() => { | ||
if (name && (data?.totalCount === 0 || !manuallyLinkInternalOrder)) { | ||
createInvoice(name.id); | ||
} | ||
}, [name, data]); |
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.
Tried to think of a way of doing this without useEffect... but.. yeah can't call in the supplier's modal onChange since it will never stay on the 'list view' page
const { Modal } = useDialog({ isOpen, onClose }); | ||
|
||
const columns = useColumns<LinkedRequestRowFragment>([ | ||
{ |
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.
Have removed the selection box from design and have used onRowClick instead as per our pattern. Design also doesn't allow users to create an IS without linking from this modal. SO have added a next button with message to state what it does
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.
Looks great! On first pass, it wasn't obvious to me that the next button would allow you to create a linked in bound shipment. I wonder if maybe some UX to show this better?
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.
Nevermind! I just saw now your latest commit adds messaging
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.
I am still thinking a different text for next button would be better (and then doesn't require messaging) would be preferred - but this still works great
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.
Continue or next. Either way it's not clear and we don't wanna put lots of text into a button
Bundle size differenceComparing this PR to
|
client/packages/invoices/src/InboundShipment/api/hooks/document/useListInternalOrders.ts
Show resolved
Hide resolved
@@ -1193,6 +1194,7 @@ | |||
"message.confirm-delete-encounter": "Are you sure?", | |||
"message.confirm-save-new": "Click OK to save the new item, or Cancel to continue editing", | |||
"message.contact-support": "Please contact [email protected] about configuring reports", | |||
"message.continue-to-make-inbound-shipment": "Click Next to continue to make an Inbound Dhipment without linking an Internal Order.", |
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.
Typo on Shipment :)
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.
Spelling is hard Ferg π€£
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.
Looks awesome, thanks Roxy.
Approved but FYI typo on the translation string
Part of #5675
π©π»βπ» What does this PR do?
π§ͺ Testing
Link requisition to Supplier Invoice
turned offRelated documents
section of theMore
panelNext
will allow you to create an Inbound Shipment without linking an Internal Orderπ Documentation
1.
2.