{"data":{"id":"magento2-38760","source":"github-pr","sourceRef":"magento/magento2#38760","title":"Fix: The Credit Memo Items' base_weee_tax_applied_row_amnt Value is Incorrect","pr":{"number":38760,"url":"https://github.com/magento/magento2/pull/38760","author":"nicolasddev","mergedAt":"2026-01-15T09:26:25Z","mergeCommit":"8576b734ad41ef5cda154b7827056f19ebf53602","headCommit":"288e711feb0e18b7ddd7cddb067deb19f44cb96d","baseRef":"2.4-develop","diffSha256":"f294946e04eb22bb5021dd0ef859377a39a62eea55dfb0ef05bd107604c9ed92"},"issues":[{"number":38765,"url":"https://github.com/magento/magento2/issues/38765","title":"[Issue] Fix: The Credit Memo Items' base_weee_tax_applied_row_amnt Value is Incorrect","labels":["Area: Tax","Component: DB","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: PR in progress","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"pr-derived"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-weee"],"files":[{"path":"app/code/Magento/Weee/Model/Total/Creditmemo/Weee.php","change":"modified","package":"magento/module-weee"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":"1. Backend: Create a product with a $50 Fixed Product Tax (FPT).\n2. Frontend: add 5 quantities of this product to your cart.\n3. Frontend: Make sure that the FPT are applied and place the order.\n4. Backend: Create a credit memo for only a single quantity.\n\n**Expected Result:**\nSince only a single quantity was credited, the values saved in both the sales_creditmemo_item.base_weee_tax_applied_amount and sales_creditmemo_item.base_weee_tax_applied_row_amnt columns should be 50.\n\n**Actual Result:**\nThe values saved in the sales_creditmemo_item.base_weee_tax_applied_amount is 50 and sales_creditmemo_item.base_weee_tax_applied_row_amnt columns is 250 (5x 50).","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Tax"],"component":["DB"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Price/Tax"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"1b9290c3cb2f9a928b8c7bfa9ca216ce41fd9f4d3ac0f4a39a57c3fb0081e980","isBugfix":0.9784,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9828,"feature":0.0024,"refactor":0.0071,"tests_only":0.0029,"docs_only":0.0024,"dependency":0.0024},"confidence":0.9592},"scope":{"score":0.121,"probabilities":{"0":0.9034,"1":0.0722,"2":0.0244},"confidence":0.7329},"risk":{"score":0.76,"probabilities":{"0":0.5683,"1":0.1035,"2":0.3282},"confidence":0.1621},"area":{"choice":"checkout","probabilities":{"catalog":0.0321,"checkout":0.6938,"customer":0.0129,"admin":0.0516,"graphql_api":0.0094,"framework":0.027,"frontend":0.0124,"other":0.1608},"confidence":0.4424},"securityRelevant":0.0068,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0042,"2.4.0-p1":0.0041,"2.4.1":0.0043,"2.4.1-p1":0.0033,"2.4.2":0.0062,"2.4.2-p1":0.0049,"2.4.2-p2":0.0072,"2.4.3":0.0098,"2.4.3-p1":0.0101,"2.4.3-p2":0.0105,"2.4.3-p3":0.0073,"2.4.4":0.013,"2.4.4-p1":0.0092,"2.4.4-p10":0.0069,"2.4.4-p11":0.0076,"2.4.4-p12":0.0068,"2.4.4-p13":0.0063,"2.4.4-p14":0.0087,"2.4.4-p15":0.0061,"2.4.4-p16":0.0066,"2.4.4-p17":0.0067,"2.4.4-p18":0.0051,"2.4.4-p2":0.0029,"2.4.4-p3":0.0028,"2.4.4-p4":0.0032,"2.4.4-p5":0.0039,"2.4.4-p6":0.0047,"2.4.4-p7":0.0041,"2.4.4-p8":0.0049,"2.4.4-p9":0.004,"2.4.5":0.0153,"2.4.5-p1":0.0129,"2.4.5-p10":0.0079,"2.4.5-p11":0.0139,"2.4.5-p12":0.0123,"2.4.5-p13":0.0083,"2.4.5-p14":0.0089,"2.4.5-p15":0.0073,"2.4.5-p16":0.0071,"2.4.5-p17":0.0073,"2.4.5-p2":0.0035,"2.4.5-p3":0.0052,"2.4.5-p4":0.0044,"2.4.5-p5":0.0049,"2.4.5-p6":0.0058,"2.4.5-p7":0.0065,"2.4.5-p8":0.0045,"2.4.5-p9":0.0047,"2.4.6":0.0289,"2.4.6-p1":0.0195,"2.4.6-p10":0.0087,"2.4.6-p11":0.0111,"2.4.6-p12":0.0106,"2.4.6-p13":0.0103,"2.4.6-p14":0.0108,"2.4.6-p15":0.0079,"2.4.6-p2":0.0052,"2.4.6-p3":0.0078,"2.4.6-p4":0.0089,"2.4.6-p5":0.0068,"2.4.6-p6":0.0082,"2.4.6-p7":0.0075,"2.4.6-p8":0.0068,"2.4.6-p9":0.0055,"2.4.7":0.0172,"2.4.7-p1":0.0163,"2.4.7-p10":0.0091,"2.4.7-p2":0.009,"2.4.7-p3":0.0126,"2.4.7-p4":0.0142,"2.4.7-p5":0.0114,"2.4.7-p6":0.0128,"2.4.7-p7":0.012,"2.4.7-p8":0.009,"2.4.7-p9":0.0058,"2.4.8":0.0207,"2.4.8-p1":0.0171,"2.4.8-p2":0.0177,"2.4.8-p3":0.0152,"2.4.8-p4":0.0149,"2.4.8-p5":0.0127,"2.4.9":0.0181,"unspecified":0.2636},"confidence":0.0667},"backportWorthy":{"score":1.6071,"probabilities":{"0":0.0695,"1":0.2539,"2":0.6766},"confidence":0.2906}},"curated":{"title":"Fixes credit memo items saving a wrong base_weee_tax_applied_row_amnt value","description":"When a credit memo is created for a single quantity of an order item with Fixed Product Tax, sales_creditmemo_item.base_weee_tax_applied_row_amnt is set to the order item value, 250 (5x 50), instead of 50. The Weee Creditmemo total now calls setBaseWeeeTaxAppliedRowAmnt instead of setBaseWeeeTaxAppliedRowAmount, matching the database field name.","categories":["Price/Tax"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38760 details"}