saleor / saleor-dashboard

A GraphQL-powered, single-page dashboard application for Saleor.
BSD 3-Clause "New" or "Revised" License
841 stars 1.09k forks source link

Enable refunding specific product lines #4295

Open lkostrowski opened 1 year ago

lkostrowski commented 1 year ago

At the moment, transaction refunds in Dashboard don't allow to attach information about specific checkout lines, so payment and taxes apps don't have enough information. For example, returning "20 USD" for taxes app is not enough, because we don't know what was tax rate of the product.

The API is already available, so only frontend must be adjusted.

Previous discussion also covers a refactor to remove legacy forms + context and apply react-hook-form to simplify this view

Also there is a draft PR that I couldn't finished in time. It can be closed or continued https://github.com/saleor/saleor-dashboard/pull/4299

Consider https://github.com/saleor/saleor-dashboard/issues/3226 implemented in the future

### Tasks
- [ ] https://github.com/saleor/saleor-dashboard/issues/4278
- [ ] https://github.com/saleor/saleor-dashboard/issues/4277
- [ ] Add reason for each line
lkostrowski commented 1 year ago

@andrzejewsky @witoszekdev we decided that @saleor/dashboard will pick this up.

Jonatan please support Dashboard in case of business context needs