Questions tagged [creditmemo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Credit Memo - custom refund amount per product

I want to create Credit Memo with a custom amount per product. i.e. I do have 1st product with 100 price and 2nd product with 250 price. Now when I create a Credit Memo I wanted to change the price ...
Mehul Shah's user avatar
0 votes
1 answer
212 views

magento 2 credit memo set "quantity to refund" column value as 0 by default

i want to set "Qty to refund" column value as 0 by default and then i will update qty for only those product which i want to refund. i tried to set value as 0 but after that the "Update ...
quickshiftin's user avatar
0 votes
0 answers
16 views

Where does retuen qty to stock for crediememo?

public function execute(EventObserver $observer) { /* @var $creditmemo \Magento\Sales\Model\Order\Creditmemo */ $creditmemo = $observer->getEvent()->getCreditmemo(); $order = $this-&...
Allen's user avatar
  • 19
0 votes
2 answers
64 views

How to use returnOrder or returnInvoice method from creditmemo?

I create creditmemo, but when I want to return qty to stock,I don't know how to used; vendor/magento/module-sales/Model/RefundOrder.php vendor/magento/module-sales/Model/RefundInvoice.php
Allen's user avatar
  • 19
0 votes
0 answers
31 views

Row total mismatch on credit memo page (magento version 2.4.3)

See this image it's the order page. The highlighted product's calculations are correct. See this image it's the credit memo page. The highlighted product's calculations are incorrect. Can you kindly ...
Hamendra Sunthwal's user avatar
1 vote
2 answers
301 views

Override item layout of credit memo in email template and add new column

I want to override the item layout in credit memo email template and want to add new column in that. I tried to override that but that item layout in email template is not showing. Overridden email ...
Mitul Vadalia's user avatar
0 votes
0 answers
56 views

Cancel the Credit memo in magento 2 and create again

I had by mistakenly created a complete refund of the products and i did cancelled the Credit memo by following this post. Delete/undo wrong credit memo The status of the credit memo shows cancelled ...
Nicola Smith's user avatar
0 votes
0 answers
20 views

Bundle Creditmemo zero quantity

We cannot issue a credit memo for bundle pack products. The quantity, price and discount is 0 for us only when processing a credit memo
Demir Šmaković's user avatar
1 vote
3 answers
142 views

Magento 2.4.2 credit memo view not working properly

I'm coming to you, because I tested the credit memo functionality on my client's site. I noticed that the view does not load all the CSS and JS (see screen) When I go into the order to create the ...
Hugues's user avatar
  • 11
1 vote
0 answers
212 views

Magento 2.4.5 print invoice or print credit memo not working from the admin side

When I try to print invoices or credit memos from the admin side I face the below error. Error Screenshot: https://i.imgur.com/U6ZmZhj.png I use the below code: File Path: Vendor/Extension/Model/...
Anil Makwana's user avatar
0 votes
1 answer
191 views

How can i get order data using credit memo plugin in Magento 2?

Here I used the credit memo plugin for updating the order data after refund success so how can I get order data in that function? etc/adminhtml/di.xml <?xml version="1.0"?> <...
Jay Parmar's user avatar
0 votes
1 answer
482 views

Online refund payment using Invoice Rest API in Magento 2

There are some orders on the website that is done by the Paypal online method. Now I want to a partial refund of an order item using the invoice API. E.g:: /rest/default/V1/invoice/xxxx/refund { &...
Manoj Jarial's user avatar
2 votes
1 answer
769 views

How to add a custom email variable to magento 2 credit memo email?

I need to add a custom variable based on payment method to credit memo email. I captured the event email_creditmemo_set_template_vars_before in my custom module, Which was dispatched on Magento\Sales\...
Mujahidh's user avatar
  • 2,701
1 vote
0 answers
161 views

Store credit in partial credit memo

I used store credit on checkout first my order total is 120. After I use store credit 40 then my order total 80 rest of amount paid through cash on delivery.That i fully understand. On Admin side I ...
Mr ND's user avatar
  • 19
0 votes
1 answer
150 views

Magento 2.4.2 Order Status stuck on processing

When an order comes in an invoice is created automatically and gets send out. I can also find that invoice when i click on the order. If I ship the order then, the shipment email goes out to the ...
Viktor's user avatar
  • 1
0 votes
0 answers
404 views

Add custom creditmemo attribute to sales_creditmemo_grid table

I have added a custom attribute custom_status to the sales_creditmemo and the sales_creditmemo_grid tables via a InstallData script in a custom module, and added the custom field to the creditmemo ...
Dennis van Schaik's user avatar
0 votes
1 answer
209 views

where can I find refunds in cash and refunds in store credit in the database?

I'm looking to compare refunds that have been paid in cash vs by store credit in the database, but I cannot find any info myself.
Firm Pomegranate's user avatar
0 votes
1 answer
761 views

Create Credit memo using API in Magento 2

I am using the console command to delete an order item so I need also to create a credit memo based on the delete item price and refund the payment to the customer online using API. I used the ...
Manoj Jarial's user avatar
1 vote
3 answers
1k views

Unable to create credit note, "Please enter positive number in this field." validation error for adjustment fields

Preconditions M2.4.3 Order with online or offline payment, and invoice Steps to reproduce Navigate to invoice, create the credit note Refund Shipping, Adjustment refund, Adjustment fee all 0 ...
Bejoy's user avatar
  • 161
0 votes
0 answers
180 views

Change default input text in Credit Memo - Refund total

I am new for Magento and I have to handle the website after old guys out. So, I think I can't make a refund because of template put $ in text box and return false for Validation in 'view/adminhtml/...
Patiphon Ongartittichai's user avatar
0 votes
1 answer
921 views

Change salable quantity and stock status of a simple product after a refund

I need to change the status of the stock to "in_stock" and return the simple product to salable quantity 1 when a refund is made in the case that the last simple product (color = black) of a ...
Tom aguilera's user avatar
0 votes
1 answer
338 views

Put qty back to stock on creditmemo magneto 2 programmatically

I am creating the credit memo from the front-end for the order. Saleable qty are returning back to stock, But Qty Per source is not returning back to stock. I have added this code to my controller. ...
D Singh's user avatar
  • 1,134
1 vote
0 answers
216 views

Magento 2: Credit Memo refund amount in transactional email

So, I have a custom email setup for credit memo and I am using {{var creditmemo.grand_total}} variable to display refunded amount in my transactional email. Everything is fine except I want to show ...
Shivani Singh's user avatar
1 vote
2 answers
1k views

Magento 2 : Error "Unable to create credit memo for order"

I am getting this error while online refunding credit memo using a script. "Unable to create credit memo for order" error appear, this is due to this https://github.com/pepe1518/magento2/...
devhs's user avatar
  • 497
0 votes
1 answer
465 views

Magento 2 : Error while creating credit memo for shipment using a custom script [closed]

Error - If the invoice was created offline, try creating an offline credit memo I am getting above error when refunding shipping amount "online". Can anybody please explain me why i am ...
devhs's user avatar
  • 497
1 vote
1 answer
814 views

How to refund only part of an order programmatically

I am looking for a way to programmatically refund part of an order within a custom module. I have been following this blog post (https://www.rakeshjesadiya.com/create-creditmemo-for-order-item-in-...
SNAFU's user avatar
  • 176
2 votes
2 answers
1k views

Magento 2 : Send custom credit memo email

Here is the scenario - I have credit memo id's, I need to check in those id's if credit memo is created from same order (if credit memo created for same order, then i need to merge those credit memo ...
devhs's user avatar
  • 497
1 vote
1 answer
245 views

Magento 2 : change text "Refund Offline to Refund Store credit"

is their any way i can change this text of button ? https://www.awesomescreenshot.com/image/7867140?key=86b39c1af672331d41d7d7da1ae189af its credit memo button
devhs's user avatar
  • 497
1 vote
2 answers
940 views

Magento 2 error : Registry key "current_creditmemo" already exists

I am getting this error by programmatically creating credit memo. any thoughts why this error is appearing ?
devhs's user avatar
  • 497
0 votes
1 answer
630 views

Magento 2 : How to refund as per payment method using credit memo?

Is their any way to refund online to payment method within credit memo ? Please share your thoughts on this.
devhs's user avatar
  • 497
0 votes
0 answers
73 views

Magento 2 : Create credit memo by Order

Is their any way we can create partial credit memo using order object & item ?
devhs's user avatar
  • 497
0 votes
0 answers
425 views

Magento 2 : Credit memo error

I am getting these errors by creating error memo programatically Creditmemo Document Validation Error(s): A creditmemo can not be created when an order has a status of closed. The quantity to ...
devhs's user avatar
  • 497
2 votes
0 answers
46 views

How to determine refund type while issuing credit memo ? (Magento 2)

i am implementing an functionality where i need to determine refund type while issuing credit memo so based on that i can send different email template to customers. I have checked in Magento\Sales\...
Hamendra Sunthwal's user avatar
0 votes
2 answers
744 views

How to override items.phtml in module ? (Magento 2)

I am trying to override module-sales/view/frontend/templates/email/creditmemo/items.phtml file but no changes appearing. Is their any way i can override it in my module ? Thankyou
dev php's user avatar
  • 45
1 vote
0 answers
42 views

How to get returned items in custom store credit email?

I have created a custom store credit email template, that will be used to sent as email for credit memo. I am not much sure how do i add the returned items in it. I have used {{layout handle="...
Hamendra Sunthwal's user avatar
0 votes
0 answers
123 views

How to create extra PDF credit memo?

I need to create a custom module to add an extra PDF to credit memo. The idea is to have and extra button near "Print" button, called "Print custom PDF" in the credit memo admin ...
andy1786's user avatar
  • 105
-1 votes
3 answers
782 views

Credit Memo - doesn't recalculate tax Magento 2.3.4

Issue :- Credit Memo - doesn't recalculate tax Credit Memo - doesn't recalculate tax :- After add Adjustment Fee Tax not Calculate:- After adding Adjustment Fee tax should be 3.71$
Ronak Rathod's user avatar
  • 6,259
1 vote
1 answer
535 views

Layout handle not working in creditmemo admin email template

I'm trying to setup a creditmemo email template in M2 Admin, but the layout handle for displaying the creditmemo items isn't getting the order and creditmemo params. {{layout handle="...
kmdsax's user avatar
  • 562
0 votes
1 answer
405 views

Magento 2 Why Credit memo reund tax from shipping cost?

When create a Credit memo, I don't want to credit the Shipping cost, So in the field Refund Shipping, I just write 0. but system still refund the tax part of the shipping cost. For example, if the ...
Magento Learner's user avatar
1 vote
1 answer
561 views

Custom Creditmemo Plugin not getting called in magento 2

I have created extension attributes which i would like to use in my custom plugin.I want to call this plugin when after credit memo item is saved which happens when credit memo is saved(refund) But my ...
J. Doe's user avatar
  • 259
0 votes
0 answers
264 views

How to insert data in custom coloumn in sales_creditmemo_item table from \Sales\Controller\Adminhtml\Order\Creditmemo\Save.php? magento 2

Basically I manually created custom column in my database named as item_number Now I want to insert data into this column from app\code\company\Sales\Controller\Adminhtml\Order\Creditmemo\Save.php and ...
J. Doe's user avatar
  • 259
0 votes
1 answer
196 views

Magento2.3.3 - Where can I see the Store Credit amount of an user?

I'm using Magento2.3 Open Source. Here in the doc, you can see references to Store Credit in the Open Source version: If the purchase was paid with store credit, mark the Refund to Store Credit ...
user avatar
0 votes
1 answer
50 views

get creditmemo Pdf with template

I manage to obtain the creditmemos in pdf format via this code (for a webservice) $result = array(); //..... //.... Mage::app()->setCurrentStore($store_id); // my store id $CreditMemo = Mage::...
jordane's user avatar
1 vote
1 answer
795 views

magento 2: error braintree on refund - Notice: Trying to get property of non-object

I have this error on Magento 2.3.3 when I try to refund (credit memo) an order with braintree. Notice: Trying to get property of non-object in vendor/magento/module-braintree/Gateway/Validator/...
Gerardo Siano's user avatar
1 vote
0 answers
659 views

Magento 2.2.2 order refund REST API Before Plugin get item order to refund

Vendor\Module\Plugin\Order\Plugin.php: namespace Vendor\Module\Plugin\Order; class Refund { /** * Create refund for invoice * * @param int $invoiceId * @param \Magento\Sales\...
Juliano Vargas's user avatar
1 vote
1 answer
1k views

Magento 2 credit memo API observer/plugin

I'm interested to know if an observer or plugin will be trigger if a credit memo is created via API rest example: POST /V1/creditmemo/refund OR POST /V1/invoice/{invoiceId}/refund ref:https://devdocs....
Juliano Vargas's user avatar
1 vote
1 answer
286 views

Magento 2 Credit memo array get only one item

public function execute() { $yourDate = date('2019-11-17'); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $collection = $objectManager->get('Magento\Sales\...
Manu's user avatar
  • 175
3 votes
0 answers
203 views

Admin side when Create Credit memo give error like No such entity with cartId = xxx in magento 2

when I am creating a new credit memo error generate like No such entity with cartId = xxx .so why this error generate anyone has a solution then give me. also, remove generated and var/*. Thank You
Vishal Baraiya's user avatar
2 votes
1 answer
974 views

Magento2 Credit memo error: "We found an invalid quantity to refund item"

When I tried to create credit memo of even simple product, it gives me errror message "We found an invalid quantity to refund item "product_name".". I am not managing stock in my website. Please help.
Zarana's user avatar
  • 31
1 vote
0 answers
591 views

Credit Memo Missing in Invoice Magento 2.2.7

I'm using Magento community version 2.2.7 for a multi-store website and for a completed credit card order with a paid invoice when I open the invoice to do an online refund the credit memo button is ...
Zoe's user avatar
  • 11