Skip to content
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

[Bug]: Refund doesn't include taxes amount #10760

Open
SaintsPrinting opened this issue Dec 28, 2024 · 0 comments
Open

[Bug]: Refund doesn't include taxes amount #10760

SaintsPrinting opened this issue Dec 28, 2024 · 0 comments

Comments

@SaintsPrinting
Copy link

Package.json file

{
  "name": "medusa-starter-default",
  "version": "0.0.1",
  "description": "A starter for Medusa projects.",
  "author": "Medusa (https://medusajs.com)",
  "license": "MIT",
  "keywords": [
    "sqlite",
    "postgres",
    "typescript",
    "ecommerce",
    "headless",
    "medusa"
  ],
  "scripts": {
    "build": "medusa build && node ./script/postbuild.js",
    "seed": "medusa exec ./src/scripts/seed.ts",
    "start": "medusa start",
    "dev": "medusa develop ",
    "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
    "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit",
    "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
  },
  "dependencies": {
    "@medusajs/admin-sdk": "2.1.3",
    "@medusajs/cli": "2.1.3",
    "@medusajs/event-bus-local": "latest",
    "@medusajs/event-bus-redis": "latest",
    "@medusajs/file-local-next": "^0.0.3",
    "@medusajs/framework": "2.1.3",
    "@medusajs/fulfillment": "2.1.3",
    "@medusajs/medusa": "2.1.3",
    "@medusajs/notification-sendgrid": "2.1.3",
    "@medusajs/payment-stripe": "2.1.3",
    "@mikro-orm/core": "5.9.7",
    "@mikro-orm/knex": "5.9.7",
    "@mikro-orm/migrations": "5.9.7",
    "@mikro-orm/postgresql": "5.9.7",
    "@react-email/components": "0.0.31",
    "awilix": "^8.0.1",
    "medusa-fulfillment-manual": "^1.1.41",
    "multer": "1.4.5-lts.1",
    "pg": "^8.13.0",
    "react-dropdown-select": "^4.11.4",
    "react-error-boundary": "^4.1.2",
    "resend": "^4.0.1"
  },
  "devDependencies": {
    "@mikro-orm/cli": "5.9.7",
    "@swc/core": "1.5.7",
    "@swc/jest": "^0.2.36",
    "@types/jest": "^29.5.13",
    "@types/multer": "^1.4.12",
    "@types/node": "^20.0.0",
    "@types/react": "^18.3.2",
    "@types/react-dom": "^18.2.25",
    "jest": "^29.7.0",
    "medusa-test-utils": "1.1.45",
    "prop-types": "^15.8.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "ts-node": "^10.9.2",
    "typescript": "^5.6.2",
    "vite": "^5.2.11"
  },
  "engines": {
    "node": ">=20"
  },
  "packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
}

Node.js version

v22.10.0

Database and its version

PostgreSQL 15.6.1.115

Operating system name and version

Macbook Pro 2023 - MacOS 15.1.1

Browser name

Google Chrome

What happended?

I placed an order with a product, the total amount included taxes. Now when processing a return in the admin side, the calculations were right but when I confirmed, the refund only processed the item without taxes. Now the outstanding balance is lower than the actual order due to the taxes not being included and I can't refund a user with the entire order.

Expected behavior

Returns to subtract the amount of the item, including any taxes to that item.

Actual behavior

Returns subtracts the amount of the item alone.

Link to reproduction repo

https://github.com/medusajs/medusa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant