{"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":"25ef92f867320972d1319d1c2774a17c183a3e45d68912f0140c9114896f4cd4","isBugfix":0.9786,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9795,"feature":0.002,"refactor":0.0058,"tests_only":0.0028,"docs_only":0.002,"dependency":0.002,"cleanup":0.0059},"confidence":0.9529},"scope":{"score":0.1102,"probabilities":{"0":0.9131,"1":0.0636,"2":0.0233},"confidence":0.7574},"risk":{"score":0.7698,"probabilities":{"0":0.5664,"1":0.0974,"2":0.3362},"confidence":0.165},"area":{"choice":"checkout","probabilities":{"catalog":0.0331,"checkout":0.6815,"customer":0.0128,"admin":0.0546,"graphql_api":0.0089,"framework":0.0256,"frontend":0.0112,"other":0.1723},"confidence":0.4277},"securityRelevant":0.0064,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0043,"2.4.0-p1":0.0044,"2.4.1":0.0043,"2.4.1-p1":0.0034,"2.4.2":0.0067,"2.4.2-p1":0.0048,"2.4.2-p2":0.007,"2.4.3":0.0095,"2.4.3-p1":0.0122,"2.4.3-p2":0.0101,"2.4.3-p3":0.0081,"2.4.4":0.0173,"2.4.4-p1":0.0099,"2.4.4-p10":0.0079,"2.4.4-p11":0.0083,"2.4.4-p12":0.0078,"2.4.4-p13":0.0073,"2.4.4-p14":0.0108,"2.4.4-p15":0.0071,"2.4.4-p16":0.0079,"2.4.4-p17":0.0078,"2.4.4-p18":0.006,"2.4.4-p2":0.0033,"2.4.4-p3":0.0034,"2.4.4-p4":0.0035,"2.4.4-p5":0.004,"2.4.4-p6":0.0045,"2.4.4-p7":0.0043,"2.4.4-p8":0.0049,"2.4.4-p9":0.0044,"2.4.5":0.0159,"2.4.5-p1":0.0123,"2.4.5-p10":0.0077,"2.4.5-p11":0.013,"2.4.5-p12":0.012,"2.4.5-p13":0.0088,"2.4.5-p14":0.0104,"2.4.5-p15":0.0078,"2.4.5-p16":0.0081,"2.4.5-p17":0.0079,"2.4.5-p2":0.0035,"2.4.5-p3":0.0054,"2.4.5-p4":0.0058,"2.4.5-p5":0.0041,"2.4.5-p6":0.0055,"2.4.5-p7":0.0059,"2.4.5-p8":0.0051,"2.4.5-p9":0.0047,"2.4.6":0.0287,"2.4.6-p1":0.0237,"2.4.6-p10":0.0097,"2.4.6-p11":0.0125,"2.4.6-p12":0.0114,"2.4.6-p13":0.0109,"2.4.6-p14":0.0118,"2.4.6-p15":0.0086,"2.4.6-p2":0.0052,"2.4.6-p3":0.009,"2.4.6-p4":0.0099,"2.4.6-p5":0.0082,"2.4.6-p6":0.0105,"2.4.6-p7":0.0082,"2.4.6-p8":0.0074,"2.4.6-p9":0.006,"2.4.7":0.017,"2.4.7-p1":0.0157,"2.4.7-p10":0.0088,"2.4.7-p2":0.0091,"2.4.7-p3":0.0119,"2.4.7-p4":0.0148,"2.4.7-p5":0.012,"2.4.7-p6":0.0125,"2.4.7-p7":0.0112,"2.4.7-p8":0.01,"2.4.7-p9":0.0064,"2.4.8":0.0228,"2.4.8-p1":0.0173,"2.4.8-p2":0.0191,"2.4.8-p3":0.0162,"2.4.8-p4":0.0162,"2.4.8-p5":0.0129,"2.4.9":0.0177,"unspecified":0.2176},"confidence":0.0453},"backportWorthy":{"score":1.6191,"probabilities":{"0":0.0666,"1":0.2478,"2":0.6856},"confidence":0.3039}},"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"}