Riqwan Thamir
8119d9964b
fix(promotion): eval conditions for rules are made accurate ( #10915 )
...
what:
- fixes eval conditions for promotion rules
RESOLVES CMRC-851
2025-01-21 21:26:20 +00:00
Riqwan Thamir
5eab9e7399
feat(promotion,dashboard,types,utils,medusa): Add statuses to promotions ( #10950 )
...
what:
- adds a status column to promotion table
- introduce active promotion query
- scope revert, register and compute actions to active promotions
- admin to create and update promotion with statuses
RESOLVES CMRC-845
RESOLVES CMRC-846
RESOLVES CMRC-847
RESOLVES CMRC-848
RESOLVES CMRC-849
RESOLVES CMRC-850
2025-01-16 19:17:22 +00: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
Riqwan Thamir
3fec01ab49
fix(pricing): add null conditions for deleted at during price calculations ( #10896 )
2025-01-09 15:32:57 +01: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
Riqwan Thamir
f7ffa3540f
fix(promotion): don't evaluate rule condition if conditions to evaluate is empty ( #10795 )
2025-01-06 09:31:58 +01:00
Riqwan Thamir
6d989bc8cd
fix(pricing): pricing context calculations only takes into account existing rule attributes ( #10771 )
...
* fix(pricing): pricing context calculations only takes into account existing rule attributes
* chore: add changeset
2025-01-02 10:17:09 +01:00
Riqwan Thamir
d08b71f9b8
fix(product): updating collections with products fix ( #10668 )
2024-12-19 16:31:45 +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
Riqwan Thamir
3f4d574748
feat(order, types): Add Credit Line to order module ( #10636 )
...
* feat(order, types): Add Credit Line to order module
* chore: add action to inject credit lines
2024-12-19 10:36:59 +01:00
Riqwan Thamir
632c340bf5
chore(utils): add comments + cleanup util functions ( #10628 )
...
remnants from https://github.com/medusajs/medusa/pull/10579
2024-12-17 14:22:33 +00:00
Riqwan Thamir and Sergio Campamá
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
Riqwan Thamir
90ad2566fd
feat(types,fulfillment): ability to delete a canceled fulfillment ( #10602 )
2024-12-16 11:17:45 +01: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
Riqwan Thamir
a04238a7f1
fix(payment): ensure that payment error is captured in logger ( #10506 )
...
what:
- when an error occurs upon retrieving a provider, log the original error through the logger
Helps https://github.com/medusajs/medusa/issues/10500 in debugging.
2024-12-09 16:44:32 +00: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 and Oli Juhl
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
Riqwan Thamir
11bd556133
feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context ( #10374 )
...
* feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context
* chore: add test for shipping options returning free shipping
2024-12-01 20:59:26 +01:00
Riqwan Thamir
5719e825ca
feat(core-flows,types,medusa): ability to update/create custom shipping prices ( #10368 )
2024-11-29 15:04:33 +01:00
Riqwan Thamir
324b4ab438
feat(pricing, types): add price rule operators to price calculations ( #10350 )
...
what:
- adds price rule operators when doing price calculations
- rules now accepts a key where the value can be an array of objects `({ operator: string, value: number })`
- validation for available types of operator and value to be a number
```
await service.createPriceSets({
prices: [
{
amount: 50,
currency_code: "usd",
rules: {
region_id: "de",
cart_total: [
{ operator: "gte", value: 400 },
{ operator: "lte", value: 500 },
]
},
},
]
})
```
- price calculations will now account for the operators - lte, gte, lt, gt when the price context is a number
RESOLVES CMRC-747
2024-11-28 20:48:00 +00:00
Riqwan Thamir
3b1a63eca7
feat(pricing,utils,types): add operator field to price rule ( #10315 )
...
what:
- adds an operator field to price rule with specific operator fields
RESOLVES CMRC-746
2024-11-28 09:23:26 +00:00
Riqwan Thamir
6486f2bcce
feat(core-flows,medusa): remove cart customer validation + rename workflow ( #10207 )
...
what:
- removes cart customer takeover validation
- change workflow from update to transfer
2024-11-21 16:57:03 +00:00
Riqwan Thamir
2a8811edd9
feat(medusa): skip draft orders on order list ( #10195 )
2024-11-21 14:09:23 +01:00
Riqwan Thamir
d91da7b418
feat(medusa): enable price list prices for product endpoints ( #10197 )
2024-11-21 14:08:42 +01:00
Riqwan Thamir
6680f69588
fix: move transfer cart under cart ( #10175 )
...
made a whoopsie!
2024-11-20 11:12:49 +00:00
Riqwan Thamir
1185be31c4
fix: incorrect changeset breaks preview builds ( #10173 )
2024-11-20 09:41:40 +00:00
Riqwan Thamir
3c4a9b85d8
chore(medusa): remove unfinished update order endpoint ( #10169 )
2024-11-20 08:44:49 +00:00
Riqwan Thamir
495c381709
feat(types, js-sdk): add updateCustomer to js-sdk ( #10158 )
...
what:
- adds new `POST /store/cart/:id/customer` endpoint to js sdk
2024-11-19 18:32:49 +00:00
Riqwan Thamir
85f9c2b85a
fix(framework,types): correct example of database driver options ( #10166 )
2024-11-19 16:32:31 +00:00
Riqwan Thamir
2783bed8ae
fix(dashboard): updated variant title is used when creating product ( #10155 )
2024-11-19 16:22:34 +01:00
Riqwan Thamir
b7044bb3b0
feat(core-flows,medusa): Add API to update cart's customer ( #10151 )
...
what:
- adds an endpoint that updates a cart's customer
RESOLVES CMRC-718
2024-11-19 11:44:25 +00:00
Riqwan Thamir
d1ce6d4321
Revert "feat(core-flows,medusa): Add customer validation on cart update" ( #9724 )
2024-10-22 18:26:01 +00:00
Riqwan Thamir
0d803b3f2d
feat(core-flows,medusa): Add customer validation on cart update ( #9662 )
2024-10-22 12:19:12 +02:00
Riqwan Thamir
3b50c6d019
feat(core-flows,types,medusa): Add tax region update API ( #9634 )
...
* feat(core-flows,types,medusa): Add tax region update API
* chore: added specs
2024-10-17 14:19:29 +02:00
Riqwan Thamir
449168578d
fix(dashboard): Set correct method value on promotion ( #9610 )
...
<img width="1441" alt="Screenshot 2024-10-16 at 14 17 05" src="https://github.com/user-attachments/assets/7a2e2196-5ca6-4532-9bf0-a4b693c6babc ">
RESOLVES CC-601
2024-10-16 12:31:39 +00:00
Riqwan Thamir and Adrien de Peretti
537567b679
chore: add compare_at_unit_price when price list price is retrieved ( #9564 )
...
* chore: add compare_at_unit_price when price list price is retrieved
* chore: add test for update item + more fixes along the way
* chore: fix tests
* chore: add refresh spec
* Apply suggestions from code review
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
* chore: use undefined checker
* chore: switch to map
---------
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
2024-10-15 13:05:14 +02:00
Riqwan Thamir
20d19c1d67
chore: update slack message ( #9290 )
2024-10-15 07:47:13 +00:00
Riqwan Thamir
70564c3c66
fix(medusa): use transform order for store order endpoints ( #9489 )
...
* fix(medusa): use transform order for store order endpoints
* chore: update amount when unit price is present
2024-10-07 13:55:06 +02:00
Riqwan Thamir
2d1f4bcabc
feat(dashboard,core-flows,types,order): change order accepts price updates ( #9476 )
...
* chore: change order can accept price updates
* chore: add changes to transformed order
* chore: fix transform
* chore: transform raw unit price
2024-10-07 10:54:21 +02:00
Riqwan Thamir
fbbfb0cb62
feat(framework,medusa): Ensure publishable key middleware is set for all store endpoints ( #9429 )
...
* feat(framework,medusa): Ensure publishable key middleware is set for all store endpoints
* chore: fix tests
2024-10-02 18:01:50 +02:00
Riqwan Thamir
56fcec3bac
chore: notify slack on failed release ( #9289 )
2024-09-24 17:22:18 +00:00
Riqwan Thamir
2d202ae0f7
chore: notify slack on failed release ( #9287 )
2024-09-24 18:56:40 +02:00
Riqwan Thamir
69f6645716
feat(core-flows,dashboard,types,fulfillment,medusa): uses requires shipping throughout lifecycle ( #9170 )
...
what:
- uses requires shipping throughout lifecycle
https://github.com/user-attachments/assets/d5ba89d3-5ea0-49c4-b2d5-490c4764933e
2024-09-24 08:26:22 +00:00
Riqwan Thamir
0bce09f0a2
fix(framework): throw when middleware fails to register ( #9211 )
2024-09-22 14:46:52 +02:00
Riqwan Thamir
987d007ba8
fix(core-flows): fixes case where inventory attempts delete when input is empty ( #9156 )
...
what:
- when an empty array is passed to the workflow, it attempts to delete all inventory locations. This PR adds a conditional to prevent it from happening.
RESOLVES CC-477
Fixes https://github.com/medusajs/medusa/issues/9154
2024-09-17 08:04:48 +00:00
Riqwan Thamir
aa0928d437
feat(dashboard,types): added inbound shipping placeholder + shipping summary details ( #9150 )
...
what:
- shipping summary
<img width="1018" alt="Screenshot 2024-09-16 at 18 05 37" src="https://github.com/user-attachments/assets/d7e3d73c-bf11-42e5-90fb-03069437e96c ">
- No Shipping options placeholder
<img width="781" alt="Screenshot 2024-09-16 at 18 06 11" src="https://github.com/user-attachments/assets/05ed682a-97cd-4e66-9af1-f1e77d3d47cb ">
2024-09-16 20:50:41 +00:00
Riqwan Thamir
3e97a64b21
feat(core-flows,medusa,utils,types): adds delivered_quantity to order ( #9130 )
...
what:
- adds delivered_quantity to order
https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
2024-09-16 09:59:01 +00:00
Riqwan Thamir
64d5b74c12
feat(api-key,js-sdk,dashboard): allow deleting api keys only once its revoked ( #9118 )
...
what:
- module only deletes api keys once its revoked
- disables ui elements
https://github.com/user-attachments/assets/437821ae-497e-4b59-b02c-4a6ff36e6a30
RESOLVES CC-106
RESOLVES CC-105
RESOLVES CC-104
2024-09-12 10:16:15 +00:00
Riqwan Thamir
24704f420a
feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted ( #9106 )
...
* feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted
* chore: fix specs
2024-09-11 21:24:01 +02:00
Riqwan Thamir
a729fb3fbb
feat(utils,types,framework,medusa): store endpoints should require publishable key ( #9068 )
...
* feat(utils,types,framework,medusa): store endpoints should require publishable key
* chore: fix specs
* chore: fix more specs
* chore: update js-sdk
* chore: fix specs wrt to default SC
* chore: revert custom headers + change error message
* chore: fix specs
* chore: fix new store specs
2024-09-11 15:08:37 +02:00
Riqwan Thamir
d398009d3f
feat(payment): Payment providers are upserted upon loading ( #9090 )
2024-09-11 09:01:24 +02:00
Riqwan Thamir
c097931469
feat(core-flows,types,medusa): validate deleting location level when quantities exist ( #9086 )
...
what:
- adds validation in workflow to prevent deleting a location level when reserved or stocked quantity exists
- disabled delete button when quantities exist
- consolidate delete workflows
<img width="1079" alt="Screenshot 2024-09-10 at 16 39 02" src="https://github.com/user-attachments/assets/cf1f4b2e-75ea-4f7c-9b97-24622396c632 ">
RESOLVES CC-120
2024-09-10 17:59:03 +00:00
Riqwan Thamir
e9e0267aa8
fix: broken order page due to missing inventory ( #9083 )
2024-09-10 13:24:13 +00:00
Riqwan Thamir
3593bdfebe
fix(promotion): handle promotion buy X get X scenario ( #9002 )
...
* fix(promotion): handle promotion buy X get X scenario
* chore: fix qualifiication rules
2024-09-10 15:12:56 +02:00
Riqwan Thamir
afd0921326
fix(utils,medusa,order,cart): fix totals when promotions are included ( #9014 )
...
* fix(utils): fix totals when promotions are included
* chore: update totals calc
* chore: ignore taxes when taxable amount is 0
* chore: use subtotals everywhere
* chore: fix shipping totals + tests
2024-09-10 10:59:22 +02:00
Riqwan Thamir
0573bb924a
chore: Remove typeORM ( #9005 )
...
* chore: rename js files to txt
* chore: rename ts files to txt
* chore: delete environment helpers
* chore: convert global setup & teardown to txt
* chore: rename helper js/ts files to txt
* chore: rename seeder js/ts files to txt
* chore: remove typeorm
* chore: reintroduce used helpers
2024-09-05 15:45:30 +02:00
Riqwan Thamir and Oli Juhl
5d7179b7d0
feat(core-flows,types,promotion): register promotion campaign usage upon cart completion ( #8970 )
...
* feat(core-flows,types,promotion): register promotion campaign usage upon cart completion
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-09-05 10:43:29 +02:00
Riqwan Thamir and Carlos R. L. Rodrigues
de6f61b05f
feat: added totals tests for end 2 end RMA flow ( #8906 )
...
what:
I've added some specs and comments in the specs for where I think totals are incorrect.
Lets get this test merged in as the status quo and proceed to fix these issues one by one.
Additionally, this also removes the temporary_difference as its not something we use.
RESOLVES CC-346
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-04 13:11:04 +00:00
Riqwan Thamir
ff623f8b00
fix(order,utils): fix outstanding amount stuck on long orders ( #8968 )
2024-09-03 18:48:47 +02:00
Riqwan Thamir
e49d004fef
chore: remove promotions in campaign validators + move tests to http ( #8965 )
2024-09-03 14:19:42 +02:00
Riqwan Thamir and Oli Juhl
230acb700b
feat(core-flows,types): Refunds can only be performed when order is imbalanced ( #8944 )
...
* feat(core-flows,types): Refunds can only be performed when order is imbalanced
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* chore: fix tests
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-09-03 13:53:20 +02:00
Riqwan Thamir
25367734c7
fix(dashboard): fix campaign end date ( #8935 )
...
what:
- scopes the conditional to the right date attribute
<img width="1027" alt="Screenshot 2024-09-02 at 11 47 09" src="https://github.com/user-attachments/assets/87048b93-e118-4548-80ee-2564bc2e56e5 ">
RESOLVES CC-68
2024-09-02 09:59:24 +00:00
Riqwan Thamir
2a6c6fe590
feat(dashboard,types): split damaged activity from received ( #8859 )
...
what:
- split damaged activity from received
- adds a popover to view return details
<img width="1661" alt="Screenshot 2024-08-28 at 23 23 10" src="https://github.com/user-attachments/assets/064e982c-f850-452d-a60d-e5c267d0075a ">
RESOLVES CC-363
2024-08-29 14:04:00 +00:00
Riqwan Thamir
8fbfb1445d
fix(dashboard): align items inside quick view popover ( #8847 )
...
* fix(dashboard): align items inside quick view popover
* chore: remove unwanted w-* classes
2024-08-28 14:37:35 +02:00
Riqwan Thamir
c72b4847b9
fix(dashboard,js-sdk): fixes from rma flows testing ( #8826 )
2024-08-28 10:59:36 +02:00
Riqwan Thamir
2ee374fafc
fix(order): run migration before setting not null ( #8831 )
2024-08-28 10:10:35 +02:00
Riqwan Thamir
531285c1e9
feat(dashboard,types): add active order change panel - claims, exchanges & returns ( #8738 )
...
* feat(dashboard,types): add active order change panel - claims, exchanges & returns
* Apply suggestions from code review
2024-08-23 13:24:38 +02:00
Riqwan Thamir
59599ac237
feat(core-flows,dashboard): adds item validations for claims, returns and exchanges ( #8735 )
...
what:
- adds item validations for claims, returns and exchanges
- prevents autofocus on item add
- reset item quantity when error
2024-08-23 09:30:27 +00:00
Riqwan Thamir
02c6574e01
fix(admin-next,types): fixes order page from breaking in admin server ( #8730 )
2024-08-23 08:07:04 +02:00
Riqwan Thamir
4219674ead
fix: enable next actions bar when refund is available ( #8719 )
2024-08-22 10:02:43 +00:00
Riqwan Thamir
335061d8cd
feat(medusa,types,core-flows): apply created_by values - claims, exchanges, returns, fulfillment ( #8712 )
...
what:
- Applies created_by values - claims, exchanges, returns, fulfillment
RESOLVES CC-96
2024-08-21 18:15:55 +00:00
Riqwan Thamir
cb6cc79018
feat(fulfillment,order): add created_by fields to fulfillment, return, claim, exchange ( #8711 )
...
what:
- add created_by fields to fulfillment, return, claim, exchange
2024-08-21 17:59:42 +00:00
Riqwan Thamir
01583baf6d
chore(order): align mikroorm <> order module ( #8710 )
...
what:
- aligns the order module migrations with mikroorm snapshot
2024-08-21 17:37:17 +00:00
Riqwan Thamir
a5707fd3bc
feat(dashboard): add activities for order - claim, exchange, payment ( #8702 )
...
what:
- add activities for order - claim, exchange, payment
<img width="382" alt="Screenshot 2024-08-21 at 16 12 31" src="https://github.com/user-attachments/assets/56627d63-69b4-4b9c-b9db-c670fe49bfc9 ">
RESOLVES CC-344
2024-08-21 14:38:18 +00:00
Riqwan Thamir
de7848f68d
fix(core-flows): account for unfulfilled items while generating order status ( #8698 )
...
what:
- account for unfulfilled items while generating order status
RESOLVES CC-314
2024-08-21 14:33:43 +00:00
Riqwan Thamir
0da9445d80
fix(dashboard): bust order preview cache to reset fulfilled quantity ( #8687 )
2024-08-21 16:23:49 +02:00
Riqwan Thamir
a7d03ec562
feat(dashboard,core-flows): ability to refund payment post RMA flow ( #8685 )
2024-08-21 09:58:09 +02:00
Riqwan Thamir and Carlos R. L. Rodrigues
8bd284779e
feat(dashboard,core-flows,js-sdk,types): ability to mark payment as paid ( #8679 )
...
* feat(core-flows): create or update payment collections in RMA flows
* chore: change ui to pick payment link from unpaid payment collection
* Apply suggestions from code review
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* chore: fix mathbn
* feat(dashboard,core-flows,js-sdk,types): ability to mark payment as paid
* chore: add captured bt
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-20 22:58:28 +02:00
Riqwan Thamir and Carlos R. L. Rodrigues
430d9a38c4
feat(core-flows): create or update payment collections in RMA flows ( #8676 )
...
* feat(core-flows): create or update payment collections in RMA flows
* chore: change ui to pick payment link from unpaid payment collection
* Apply suggestions from code review
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* chore: fix mathbn
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-20 18:40:58 +02:00
Riqwan Thamir
fa44e3f5a8
feat(dashboard,core-flows,js-sdk,types,link-modules,payment): ability to copy payment link ( #8630 )
...
what:
- enables a button to create a payment link when a payment delta is present
- api to delete order payment collection
- adds a pending amount to payment collections
Note: Not the happiest with the decision on when to create a payment collection and when not to. The code should programatically create or delete payment collections currently to generate the right collection for the payment delta. Adding a more specific flow to create and manage a payment collection will help reduce this burden from the code path and onto CX/merchant.
Another issue I found is that the payment collection status doesn't get updated when payment is complete as it still gets stuck to "authorized" state
https://github.com/user-attachments/assets/037a10f9-3621-43c2-94ba-1ada4b0a041b
2024-08-20 10:30:17 +00:00
Riqwan Thamir
4791d1d775
fix(promotion): validate rules accurately when attribute is scoped by context ( #8655 )
2024-08-19 15:38:42 +02:00
Riqwan Thamir
adcd25650c
feat(medusa,core-flows,types): API to create payment collections for order ( #8617 )
...
what:
- adds an API to create a payment collection for order
2024-08-16 08:16:40 +00:00
Riqwan Thamir
82c147b91e
feat(dashboard,core-flows,js-sdk,types,medusa): Add exchange UI + fixes ( #8606 )
...
what:
- adds exchange UI
- fixes bugs on core-flows and endpoints
- random set of tiny fixes
https://github.com/user-attachments/assets/b163b9c1-4475-4936-ae98-20795760cc55
2024-08-15 17:54:51 +00:00
Riqwan Thamir
4cb28531e5
feat(core-flows,dashboard): add fixes to allow only outbound or inbound claims ( #8590 )
...
what:
- allows completing claim with only inbound items
- allows completing claim with only outbound items
- validates against creating claims when an active change order is present
2024-08-14 21:09:05 +00:00
Riqwan Thamir
01c8e4d3c1
fix(core-flows): fixes build fails ( #8584 )
2024-08-13 13:30:18 +00:00
Riqwan Thamir
e823021446
feat(core-flows): introduce a generic create entities step ( #8553 )
2024-08-13 14:50:17 +02:00
Riqwan Thamir
6f50e376a9
fix(core-flows): fixes duplicate fulfillment issue ( #8581 )
...
what:
- fixes a bug where fulfilling an outbound item was throwing an error due to the entire order being processed for fulfillment
RESOLVES CC-298
2024-08-13 10:40:46 +00:00
Riqwan Thamir
dd4147314f
feat(core-flows,dashboard,medusa): fixes set of tiny bugs in claims flow ( #8551 )
...
* feat(types,dashboard): ability to set shipping methods for claim
* chore: fix a bunch of stuff
* chore: update comment
2024-08-12 13:09:19 +02:00
Riqwan Thamir
3fe5848e72
feat(types,dashboard): ability to set shipping methods for claim ( #8533 )
2024-08-09 11:51:33 +02:00
Riqwan Thamir
a93b025233
feat(dashboard,js-sdk,types): ability to add refund reason and note ( #8466 )
...
what:
- adds ability to add refund reason and note to a refund
<img width="524" alt="Screenshot 2024-08-06 at 13 06 59" src="https://github.com/user-attachments/assets/51537e9b-170b-4dd6-9de5-6bdea5e26822 ">
<img width="1090" alt="Screenshot 2024-08-06 at 12 57 18" src="https://github.com/user-attachments/assets/70bc84a4-5ebf-43e9-8416-370fd37ba615 ">
<img width="247" alt="Screenshot 2024-08-06 at 13 08 46" src="https://github.com/user-attachments/assets/b1dc1d83-7fb8-4af5-9a5b-fddb63ff1812 ">
2024-08-08 21:19:08 +00:00
Riqwan Thamir
a7cace90e0
feat(medusa): filter shipping options by location ( #8511 )
...
what:
- filters shipping options by location ID
RESOLVES CC-328
2024-08-08 14:40:02 +00:00
Riqwan Thamir
85ed025705
feat(dashboard,js-sdk,medusa): add ability to add outbound items to claim ( #8502 )
...
what:
- user can add/remove/update outbound items to a claim
- adds API to query variants
Note: There are several paths that are not implemented yet correctly, but have some code lying around. Those will be tackled in the followup PRs
https://github.com/user-attachments/assets/cadb3f7a-982f-44c7-8d7e-9f4f26949f4f
RESOLVES CC-330
RESOLVES CC-296
2024-08-08 12:20:13 +00:00
d50161fa32
feat(adshboard,types,medusa): enable adding notes/return reason to inbound claims ( #8488 )
...
* wip: setup UI
* wip: rendering modal, adding claim items, create checks
* fix: make form work after merge
* fix: continuation of claim edit
* chore: ability to add and remove items to claim inbound
* chore: minor fixes
* chore: add toast messages on actions
* feat(adshboard,types,medusa): enable adding notes/return reason to inbound items
* chore: fix types in a bunch of places
* chore: add conditional for actions
* Update packages/admin-next/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
---------
Co-authored-by: fPolic <mainacc.polic@gmail.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-08-07 19:32:07 +02:00
Riqwan Thamir and fPolic
eb590417be
feat(core-flows,dashboard,medusa): ability to add and remove items to claim inbound ( #8480 )
...
* wip: setup UI
* wip: rendering modal, adding claim items, create checks
* fix: make form work after merge
* fix: continuation of claim edit
* chore: ability to add and remove items to claim inbound
* chore: minor fixes
---------
Co-authored-by: fPolic <mainacc.polic@gmail.com >
2024-08-07 15:27:04 +02:00
Riqwan Thamir and fPolic
17567b9f0a
feat(dashboard): claims first implementation ( #8468 )
...
* wip: setup UI
* wip: rendering modal, adding claim items, create checks
* fix: make form work after merge
* fix: continuation of claim edit
---------
Co-authored-by: fPolic <mainacc.polic@gmail.com >
2024-08-07 13:40:31 +02:00
0ff5b975e7
feat(core-flows,payment,medusa,types): Refund reasons management API ( #8436 )
...
* feat(core-flows,payment,medusa,types): add ability to set and manage refund reasons
* fix(payment): validate total amount when refunding payment (#8437 )
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* feature: introduce additional_data to the product endpoints (#8405 )
* chore(docs): Generated References (#8440 )
Generated the following references:
- `product`
* chore: align payment database schema
* Update packages/core/core-flows/src/payment-collection/steps/create-refund-reasons.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* chore: address review
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: Harminder Virk <virk.officials@gmail.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-08-06 11:47:42 +02:00
Riqwan Thamir and Carlos R. L. Rodrigues
bcad5052af
fix(payment): validate total amount when refunding payment ( #8437 )
...
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-04 15:32:06 +00:00