Open barnabycollins-s2z opened 1 year ago
ya same problem in here https://github.com/medusajs/medusa/issues/5764#issuecomment-2214702602
i need the metadata to store the data from other service since i unable to do that, I add in 2 fields in draft order entity, migrations created and run but when I call to POST /admin/draft-order, the 2 new fields is unable to insert, which is expected, fine.
So I try to extend the API routes, use a custom endpoint, but I figure out, underneath, the endpoint is using workflows to createOrdersWork flow, which is in the code here
Ok, then I thought to create a endpoint, which will do the same thing,
that will manually createOrderWorkflow
as the code above,
but I also cant, because I cant import the createOrdersWorkflow
function into my file.
so basically, I left 1 option I need to create a new API route, use repository from typeorm, to achieve basically the same thing
Bug report
Describe the bug
Hey there - just wanted to report that I'm seeing two slight issues during the manual draft order creation flow in Medusa Admin v6.0.4. These don't hugely affect the usage of the admin console, but it could cause confusion.
Firstly, the summary at the end of the draft order creation process displays the incorrect item quantities for any items that had their quantities typed rather than entered using the +/- buttons. I believe this bug has been in the admin console for quite some time, as I'd seen it on previous versions too.
Secondly, the metadata entry field in the order creation process doesn't allow the user to directly populate the 'Key' field. Instead, the Key field duplicates whatever is in the Value field.
System information
Medusa version (including plugins):
Node.js version: 18 Database: Postgres Operating system: Linux Browser (if relevant): Firefox 116.0.2 (also observed by others using Chrome)
Steps to reproduce the behavior
For the product quantity problem:
For the metadata problem:
During the 'Customer and shipping details' or 'Billing Address' step of the draft order creation process, try to edit the metadata. The key field cannot be typed in, and typing in the Value field populates both Key and Value with the same data simultaneously.
Expected behavior
Draft order summary shows the correct product counts, and the metadata can be populated as expected
Thanks for all your hard work! :)