Shahed Nasser
32dd383e9a
chore(core-flows,types): improve tsdocs of pricing-related workflows ( #11000 )
...
* chore(core-flows,types): improve tsdocs of pricing-related workflows
* fix build error
2025-01-16 20:12:45 +02:00
Shahed Nasser
8e7c13862d
chore(core-flows): improve TSDocs for payment workflows / steps ( #10998 )
2025-01-16 20:12:25 +02:00
Shahed Nasser
b79dc40bc9
chore(core-flows): improve TSDocs of customer and customer groups workflows / steps ( #10993 )
...
* improve customer tsdocs
* finished improving tsdocs
* fix build error
2025-01-16 15:29:59 +02:00
Shahed Nasser
52f6cfe922
chore(core-flows,types): improve tsdocs of fulfillment ( #10995 )
2025-01-16 15:05:01 +02:00
Stevche Radevski
da8e173974
feat: Remove fields from payment models that were leftovers from v1 ( #10987 )
2025-01-16 10:10:03 +01:00
Shahed Nasser
8cd58b3092
chore(core-flows,types): improve TSDocs of cart workflows and steps ( #10962 )
...
* chore(core-flows,types): improve TSDocs of cart workflows and steps
* fix build errors
* fix build error
* fix errors
2025-01-16 09:44:52 +02:00
Carlos R. L. Rodrigues
11f98f374c
feat(core-flows): validate hook in cart workflows ( #10967 )
...
* feat(core-flows): validate hook
* rm only
2025-01-15 18:49:46 -05:00
Shahed Nasser
ff739045fa
chore(core-flows,types): improve TSDocs of order workflows ( #10983 )
2025-01-15 19:46:31 +02:00
Shahed Nasser
8c2b4a5951
chore(core-flows,types): improve TSDocs of product workflows ( #10966 )
2025-01-15 19:46:03 +02:00
Carlos R. L. Rodrigues
c5a207144e
fix(core-flows): missing variable of when condition ( #10958 )
2025-01-15 12:38:18 -05:00
Riqwan Thamir
1758bfb8d0
fix(dashboard, core-flows): improvements to order page on canceled orders ( #10888 )
...
what:
- Remove pending payment for canceled orders
- Hide unfulfilled items for canceled orders
- Disable non refundable payments from being refunded
- Populate refund created_by
- Disable order edit when canceled
- Fix bug https://github.com/medusajs/medusa/issues/10852
RESOLVES CMRC-842
2025-01-13 16:51:38 +00:00
Riqwan Thamir
7232a8a930
fix(core-flows): return refunded when all captured payments have been refunded ( #10923 )
...
what:
- returns refunded when all captured payments have been refunded
2025-01-13 16:25:39 +00:00
Shahed Nasser
60dc8f69c7
chore(core-flows,types): improve tsdocs of workflows [1] ( #10940 )
2025-01-13 18:09:55 +02:00
Shahed Nasser
db338e4b5a
chore(core-flows,types): add tsdocs for create cart workflow ( #10928 )
2025-01-13 11:23:58 +02:00
Kasper Fabricius Kristensen
bc22b81cdf
feat(inventory,dashboard,types,core-flows,js-sdk,medusa): Improve inventory UX ( #10630 )
...
* feat(dashboard): Add UI for bulk editing inventory stock (#10556 )
* progress
* cleanup types
* add changeset
* fix 0 values
* format schema
* add delete event and allow copy/pasting enabled for some fields
* add response types
* add tests
* work on fixing setValue behaviour
* cleanup toggle logic
* add loading state
* format schema
* add support for bidirectional actions in DataGrid and update Checkbox and RadioGroup
* update lock
* lint
* fix 404
* address feedback
* update cursor on bidirectional select
2025-01-12 19:07:14 -05:00
olivermrbl
3919b26eb6
chore: Version packages
2025-01-07 13:31:40 +01:00
Frane Polić
16b0672f8a
feat(core-flows,fulfillment, fulfillment-manual, types): make fulfillment typings more specific ( #10677 )
...
**What**
- attempt to add more specific type definitions around fulfillment provider APIs
---
CLOSES CMRC-814
CLOSES CMRC-816
CLOSES CMRC-817
2025-01-07 08:08:45 +00:00
Riqwan Thamir
47594192b7
feat(dashboard,core-flows,types,utils,medusa): Order cancelations will refund payments ( #10667 )
...
* feat(order, types): Add Credit Line to order module
* chore: add action to inject credit lines
* WIP
* chore: add fixes + observe
* chore: fix balances
* chore: add canceled badge
* chore: fix i18n schema
* chore: remove redunddant query
* chore: add changeset
* chore: add credit lines for all cancel cases
* chore: add accounting total
* chore: address review & cleanup
2025-01-07 07:56:28 +01:00
Riqwan Thamir
99a06102a2
fix(stock-location,core-flows,types): updates existing address when updating stock location ( #10832 )
...
* fix(stock-location,core-flows,types): updates existing address when updating stock location address
* chore: use hasOne instead of hasMany
2025-01-07 07:55:28 +01:00
Anuchit
79c87c09de
fix(core-flow): invalid update quantity in update line item in cart workflow ( #10405 )
...
* fix: invalid update quantity in update line item in cart workflow
* test: update cart workflow test
* fix: rm shallow copy in transform
2025-01-05 14:39:29 +01:00
Harminder Virk
bbf790ea44
feat: deprecate remote link ( #10768 )
...
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-12-30 14:57:43 +05:30
Shahed Nasser
699bb6dc24
fix(core-flows): export updateTaxRegionsStep ( #10732 )
...
Export `updateTaxRegionsStep` to ensure it's included in generated references
2024-12-25 09:08:09 +00:00
olivermrbl
348f866ffe
chore: Version packages
2024-12-20 11:25:36 +01:00
Frane Polić
fc321e96ce
fix(core-flows): select stock locations for reservation from correct SC ( #10661 )
...
* fix: add stock location for reservations only if related to correct SC
* fix: update spec
* fix: wrong SC id get in OE flow
* fix: ensure test case has multiple SC and SLs
2024-12-20 09:25:19 +01:00
Frane Polić
1118e35924
feat(core-flows): pass fields variant details when creating fulfillment ( #10665 )
2024-12-19 16:39:04 +01:00
Riqwan Thamir
5d1098ceb9
fix(core-flows): refresh payment collections upon shipping changes ( #10673 )
...
* fix(core-flows): refresh payment collections upon shipping changes
* chore: fix spec
2024-12-19 16:31:17 +01:00
Frane Polić
3dba551ad2
fix(core-flows): data passed to to fulfillment provider context ( #10660 )
...
* fix: cart data passed to context, from location in validation
* refactor: extract common fields to a const
2024-12-18 21:23:06 +01:00
Shahed Nasser
9d85e663b8
fix(core-flows): use useQueryGraphStep instead of useQueryStep ( #10643 )
...
Replace usage of `useQueryStep` with `useGraphQueryStep` and remove `useQueryStep`, as it's not exported by the package and seems to be a duplicate of `useGraphQueryStep`
2024-12-18 17:18:51 +00:00
Oli Juhl
c9b8db04c1
feat: Custom line items ( #10408 )
...
* feat: Custom line items
* fix tests
* fix migration
* Allow custom items in update line item workflow
* throw if line item doesn't have a price
* minor things
* wip
* fix flows
* fix test
* add default
* add to type
2024-12-18 12:53:57 +01:00
Frane Polić
bde4b82194
feat(core-flows,dashboard,js-sdk,medusa,types): support Fulfillment Options ( #10622 )
...
**What**
- add a list point for fetching fulfillment options for a provider
- add FO support on SO create & update on dashboard
- pass `cart` and `stockLocation` to `validateFufillmentData` context
---
CLOSES CMRC-789
CLOSES CMRC-790
2024-12-18 09:16:26 +00:00
Shahed Nasser
1232a43fce
fix(core-flows): export getItemTaxLinesStep ( #10640 )
2024-12-17 19:31:55 +02:00
olivermrbl
a391a29aa8
chore: Version packages
2024-12-17 14:41:05 +01:00
Riqwan Thamir
6367bccde8
feat(medusa,pricing): Cart pricing context with customer group ( #10579 )
...
* fix(carts): Fixes cart modifications not accounting for certain price lists (#10493 )
*What*
* Fixes #10490
* Expands any available customer_id into its customer_group_ids for cart
updates that add line items.
*Why*
* Cart updates from the storefront were overriding any valid price lists
that were correctly being shown in the storefront's product pages.
*How*
* Adds a new workflow step that expands an optional customer_id into the
customer_group_ids it belongs to.
* Uses this step in the addToCartWorkflow and
updateLineItemInCartWorkflow workflows.
*Testing*
* Using medusa-dev to test on a local backend.
* Adds integration tests for the addToCart and updateLineItemInCart
workflows.
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* chore: update cart workflows to accept new pricing context
* chore: add transfer specs
* chore: fix specs
* chore: modify types + specs
* chore: add data migration + dashboard changes
* chore: fix update line item workflow
* chore: add changeset + unskip spec
---------
Co-authored-by: Sergio Campamá <sergiocampama@gmail.com >
2024-12-17 11:10:30 +01:00
Frane Polić
0c49470066
feat(core-flows): calculate SO price on cart ops ( #10563 )
...
**What**
- calculate the shipping option price when creating a shipping method
- calculate the shipping option price when refreshing cart
- add testing for calculated SO flow
- fix validation on calculated SO creation
- add manual fulfillment provider for testing
- add `from_location` to calculation context
---
RESOLVES CMRC-778
RESOLVES CMRC-602
RESOLVES SUP-136
2024-12-16 22:28:30 +00:00
Riqwan Thamir
429c57095b
fix(core-flows): use customer create workflow to reuse the emit event ( #10601 )
...
what:
- uses the create customer workflow instead to reuse the event emit.
RESOLVES CMRC-792
2024-12-13 14:40:46 +00:00
Frane Polić
472e92e400
feat(medusa, core-flows, fulfillment): calculate SO price endpoint ( #10532 )
...
**What**
- endpoint + flow for fetching calculated price for a shipping option
---
CLOSES CMRC-777
2024-12-12 08:03:56 +00:00
Frane Polić
d8a92dbb2d
feat(core-flows, dashboard, fulfillment, fulfillment-manual, utils, types): create shipping options with calculated prices ( #10495 )
...
**What**
- support creating SO with calculated price
- support updating SO for both types of pricing
- update `validateShippingOptionPricesStep` to handle both SO price_types
- add the `validateShippingOptionsForPriceCalculation` method to `FulfillementModule`
- add `canCalculate` and `calculatePrice` to fulfillment provider service service / interface / manual provider
- disable SO pricing edit on Admin if SO price type is calculated
---
CLOSES CMRC-776
2024-12-11 08:38:44 +00:00
olivermrbl
0e342b491d
chore: Version packages
2024-12-10 14:01:50 +01:00
Oli Juhl
e5e5a34108
fix(core-flows): Refresh cart when items are deleted ( #10513 )
2024-12-09 19:21:32 +01:00
Shahed Nasser
7c76ee24cb
chore: fix documentation links in TSDocs ( #10511 )
2024-12-09 18:52:02 +02:00
Riqwan Thamir
f8f5d57c7c
chore(types): add price types for shipping option endpoints ( #10509 )
...
what:
- adds missing price types for shipping options
2024-12-09 16:30:31 +00:00
Riqwan Thamir
9e797dc3d2
feat(core-flows, types): update shipping methods upon cart ops ( #10382 )
...
* feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context
* chore: add test for shipping options returning free shipping
* feat(core-flows, types): update shipping methods upon cart ops
* chore: fix specs
* chore: fix bugs + specs
* Update update-shipping-methods.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* Update mutations.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* chore: undo refresh changes
* chore: merge with latest
* chore: address PR comments
* chore: fix conflicts
* chore: fix specs
* chore: address reviews
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-12-08 14:06:50 +01:00
Riqwan Thamir
f95c4e240c
fix(promotion, core-flows): updating cart with removed promotion removes adjustments ( #10489 )
2024-12-08 13:13:31 +01:00
Carlos R. L. Rodrigues
90ae187e09
fix(workflows-sdk): name for when/then step ( #10459 )
2024-12-05 15:47:42 -03:00
Sebastian Rindom
7ff3f15d6d
fix(medusa): calculate sales channel availability correctly for variants ( #10448 )
...
* fix: calculate inventory quantities based on sales channel and locations
* Update packages/medusa/src/api/utils/middlewares/products/variant-inventory-quantity.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* Update packages/medusa/src/api/utils/middlewares/products/variant-inventory-quantity.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* Update packages/core/core-flows/src/product/steps/get-variant-availability.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* fix: crk
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-12-05 19:29:47 +01:00
Adrien de Peretti
559fc6587a
fix(): Deleted default sales channel should be prevented ( #10193 )
...
FIXES CMRC-722
**What**
- It should not be allowed to delete a default sales channel
- The admin does not allow to delete a sales channel use as the default for the store
2024-12-05 16:19:45 +00:00
olivermrbl
4723acd949
chore: Version packages
2024-12-04 18:36:57 +01:00
Oli Juhl
ff4663713a
fix(core-flows): Listing return shipping options ( #10432 )
2024-12-04 17:21:07 +01:00
Frane Polić
340769595a
feat(admin, js-sdk, types): update order forms ( #10418 )
...
* feat: edit shipping, billing and email forms
* feat: timeline history, update change model, update tests
* fix: address comments
* fix: invalidation, translation schema, update label
* fix: old/new
2024-12-04 14:56:40 +01:00
Frane Polić
ab948b7c65
feat(core-flows,medusa,order,types): update orders ( #10373 )
...
**What**
- add order update endpoint
- add workflows and steps for updating orders
- add `registerChanges` method to Order module + workflow step
---
CLOSES CMRC-633
2024-12-03 17:15:26 +00:00