Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [creditmemo]

The tag has no usage guidance.

0
votes
1answer
45 views

How to get Creditmemo ID from sales_order_creditmemo_refund?

If I observe sales_order_creditmemo_refund event, there’s no entity_id or increment_id data in the passed object. I presume those are added before the sales_order_creditmemo_safe_after event. However,...
0
votes
1answer
42 views

Credit Memo Subtotal Mismatch magento 2.2.8

I'm Trying To change Subtotal For The item In Credit Memo Email Product Price:- 4.99 I am creating a credit memo for 10 product but Subtotal is a mismatch The grand total is correct. how can I ...
0
votes
0answers
15 views

Credit Memo - 'Email Copy of Credit Memo' how to set default ON

How to set the 'Email Copy of Credit Memo' checkbox to a default value of checked? (So to negate the requirement to check the box every time) Is there anyway to override the single input line within ...
0
votes
1answer
28 views

Magento 2: How to disable Adjustment Fee field ONLY

I want to disable only the adjustment field from the refund section I already created a custom template called adjustments.phtml which basically it haves all the html <tr> <td class="...
0
votes
1answer
37 views

Please confirm returns logic

I'm very new on Magento 2 framework. Can anyone help me from this problem? I Don't know how it actually product returns work. Is there any standard Magento logic for returns or can you advise on ...
0
votes
1answer
101 views

Create credit memo for my payment method

I'm making a new payment method for Magento 1.9. for now I can make an order and have the invoice correctly. I wane to add the possibility to make credit memos using my payment method, but i can't ...
0
votes
1answer
206 views

Update Text in credit memo email template

app\design\frontend\Theme\name\Magento_Sales\templates\email\creditmemo\items.phtml Below script showing total related details in refund email template. <tfoot class="order-totals"> <?= $...
1
vote
0answers
30 views

Canceling credit memo gives error

I am canceling credit memo using below code: foreach ($collection as $creditmemo) { if($creditmemo->getState() != 3){ $order = $creditmemo->getOrder(); $creditmemo-&...
0
votes
0answers
45 views

Issue with subtotal when calcuate tax for credit memo adjustment refund

I am using Magento1.9.2.4, And want tax for adjustment refund as well that given in credit memo module. I followed this link's one of the solutions to achieve this: Is it possible to refund tax on a ...
5
votes
1answer
92 views

magento2 add credit memo for invoice with items

I am trying to add partial credit memo programatically but it is consuming whole quantity in first credit memo, How can I pass specific items to credit memo? public function createCreditMemo ($...
0
votes
2answers
301 views

Magento 2 - Change order status when Credit memo created

Below code to create credit memo programmatically public __construct( \Magento\Sales\Model\Order $order, \Magento\Sales\Model\Order\CreditmemoFactory $creditmemoFactory, \Magento\Sales\...
0
votes
3answers
247 views

Magento 2 from which database table data comes to credit memo grid.

I need to add custom diiscount to credit memo grid, I added to invoice grid as data populated from sales_invoice table but unable to find table to credit memo.
2
votes
0answers
58 views

partially refund not working proper

i have try to refund invoice in following code $invoice = $this->_invoiceService ->prepareInvoice($order_refund,$itemsArray); $invoice ->setRequestedCaptureCase ...
0
votes
1answer
78 views

Magento 2 - Default Refund Shipping charge to be 0 on Credit Memo

I don't want to refund the shipping charge on issuing a refund. How to i set it to 0 by default.
1
vote
1answer
209 views

Delete all order,invoice,credit memo, and shipment in magento 2

How to delete all magento 2 order, invoice, shipment, and credit memo, and reset the increment_id too using php code?
0
votes
0answers
56 views

Magento 2: How to Pass Adjustment Fee to Credit Memo

Is it possible to pass and auto populate the Adjustment Fee to a new credit memo via url parameters? For example, the create Credit Memo url on an order is generated using the following: public ...
2
votes
0answers
186 views

How to create mass credit memos magento 2?

Total noob in magento here. What I want is to select a bunch of orders, and create credit memos for them if their status is completed, and after the creditmemo is created, I want to set their ...
2
votes
0answers
147 views

Magento 2 credit memo does not return Item to stock

My requirement was qty decrease by invoice generation instead order & it's also working fine So, for that I have did some configuration on magento back end, (I have attached screenshot for that). ...
0
votes
0answers
121 views

Magento 2.1.4 - Error in Create Credit Memo for Braintree transactions

Getting error when do the Credit Memo by clicking on Refund button from admin section using Braintree payment gateway. Magento 2.1.4 In debug log, it is saying that Cannot refund a transaction ...
0
votes
1answer
41 views

Add editable text input to creditmemo totals

How to change the -€5.00 simple text to a text input field (editable) ? This is how I add the totals: <?php namespace My\Discount\Block\Adminhtml\Sales\Order; class Totals extends \Magento\...
0
votes
0answers
191 views

Magento 1.9 - Creditmemo: Is there a workaround for adjustment fee tax calculation?

Steps to reproduce: Create a credit memo and add an adjustment refund / fee Expected result: Tax is recalculated Actual result: No difference in tax Obviously this is wrong from an accountants ...
0
votes
1answer
298 views

Change order state from processing to closed

How can I change order state from processing to closed in Magento 1.9? Normal Magento workflow says that we can get status as closed after creating the credit memo. In my application, I can create ...
0
votes
1answer
180 views

Manage Order “Credit Memo” Error in Magento 2.2.1

I use Magento 2.2.1 I get this error after a customer places an order and i click on "Credit Memo" at Sales-> Orders-> view(or click on an order) -> Credit Memo 1 exception(s): Exception #0 (...
0
votes
2answers
1k views

magento 2 Programmatically create a credit memo by script [duplicate]

Given an order that has been invoiced (by cash on delivery for testing) and is in state "processing", how can I create a credit memo? in code that is outside of Magento routing EDIT: I have found ...
0
votes
1answer
305 views

Magento 2 Credit Memos : Template override doesn't work after clicking “Update Qty's” button

I am creating a custom module to simplify the Credit Memo creation for admin users. One of the features is hiding the "Return to Stock" column. I have overwritten 2 files for this: vendor/magento/...
0
votes
1answer
21 views

Does giving someone credit in the Admin panel issue the credit through Paypal?

Magento 1.9.1 Paypal Payments Pro (Includes Express Checkout) If I give somebody a credit on the back-end (in the Admin panel) - does that go trough on Paypal automatically?
2
votes
0answers
50 views

How Magento 2.2.2 creditmemo create and save functionality work [closed]

While working on custom creditmemo functionalities, I created this flow diagram to show a high level view, how Magento 2.2.2 performs creditmemo create/save operation from admin area.
1
vote
0answers
187 views

How to do multiple partial online refunds?

I am trying to perform online partial refund on Magento 2.2.0, but once I press on creditmemo button in invoice page, and first partial refund is performed, you cannot perform another partial refunds ...
1
vote
0answers
73 views

How to unchecked Return to Stock checkbox of new credit memo in magento 1.9?

I am working on Magento 1.9.2 The problem I am facing is when we create new credit memo there is the list of ordered items in the list where you can tick on the product to make it return to stock or ...
0
votes
1answer
42 views

Magento 1.9 : Class 'Mage_Creditmemoexport_Helper_Data' not found

I am creating a module for exporting Creditmemo data in xml but I am getting following error. I have checked everything but I am unable to find the bug please help me. Config.xml <?xml version="1....
0
votes
2answers
751 views

Delete/undo wrong credit memo

I need to remove/undo a wrong credit memo. Can anyone confirm that the following code is correct/save to achieve this? UPDATE `sales_flat_order` SET `base_discount_refunded`=null, `...
3
votes
0answers
207 views

Add Custom Attribute to Credit Memo and Show it at Grid

In credit memo grid there are some column originally defined I want to add new column, by adding custom attribute with datetime type to credit memo, is there a way to add this custom attribute to ...
2
votes
0answers
486 views

Magento 2.2.0 partial Credit Memo/Refund doesn't work properly

We have to try partial credit memo for Magento 2.2.0 shop admin for below step: 1) Proceed order with default payment and Grand Total are €37.00 2) Create the Invoice. 3) Try to Credit memo with ...
0
votes
1answer
129 views

Get refunded items (only simple products: qty and price) programmtically

I have wrote a script to try to get the refunded items qty and price foreach($credit_memos as $credit_memo) { $items = $credit_memo->getAllItems(); foreach ($items as $item) { ...
1
vote
1answer
343 views

Magento 2.1: Delete credit memo

Is there a way to delete just a credit memo? I have seen some code snippets & extensions that delete whole orders with all linked invoices, shipments & credit memos, but I just want to delete ...
1
vote
1answer
266 views

Check if Invoice can be refunded online programmatically

Is it possible to check programmatically if an given invoice can be refunded online via a payment gateway like Paypal/Braintree?
2
votes
2answers
808 views

How to override a block without name?

I am trying to override following file module-bundle/view/adminhtml/layout/sales_order_creditmemo_new.xml <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. ...
0
votes
0answers
105 views

Magento 2 not able to get creditmemo collection

I am trying to get credit memo collection with following script but am unable to get the collection class Creditmemosync extends \Magento\Framework\App\Action\Action { protected $helper; protected $...
0
votes
1answer
877 views

Magento 2 : Retrieve Credit Memo

I'm new to Magento2 API, I'm trying to retrieve credit memo based on order ID, but it seems to fail to retrieve. Any ideas how to get the credit memo data? $credit_memo = $orderCollection->...
4
votes
0answers
407 views

Magento 1.9 : Add form field to Admin Credit Memos

I need to add custom dropdowns to the Credit Memo create form. I read that you should be able to add a simple field without having to rewrite core code. The following line fails in the Observer: $...
0
votes
1answer
48 views

How to update Customer Order in Magento 1.9.3.1

Customer purchased Product X. We shipped Product Y. Now I want remove Product X and add Product Y in the Sales Order or Sales Invoice.
4
votes
1answer
2k views

Magento 2: How to delete order's invoice, credit memo & shipment programmatically?

I would like to delete order's invoice, credit memo & shipment programmatically. How to achieve this by passing only order id?
1
vote
0answers
199 views

Credit memo return to stock adds a quantity to configurable and simple

When a simple product that is configured to a configurable is bought then refunded and the 'return to stock' check box is ticked, it will return to stock the simple correctly but it will also add a ...
0
votes
1answer
860 views

Can I cancel a credit memo?

When I created the credit memo, it refunded the full amount instead of the amount i needed to refund! Is there anyway to cancel the credit. Also the credit memo situation needs to be fixed ASAP. It ...
2
votes
1answer
204 views

How to extend creditmemo save action in magento 2

I need to extend creditmemo save action: Update post data before action method call Update database after creditmemo save. Which method is better Plugin or preference and if Plugin then how can I ...
1
vote
1answer
3k views

How to add my block and phtml file in magento 2 with reference block

I want to add a text box on the total credit memo. I can input amount to refund. I am trying to add my block in creditmemo_totals What i tried is add code in Company/Custom/view/adminhtml/layout/...
2
votes
0answers
74 views

Cancel discount on creditmemo when conditions do not match anymore

I have a discount code that gives a client 20 euro discount on an order, if the cart contains a specific SKU (this is just an example, it could also be an attribute color with the value blue). This ...
1
vote
2answers
1k views

How to get credit memo collection from last 2 weeks in magento2

I see that Magento\Sales\Model\Order\CreditmemoFactory has createByOrder and createByInvoice methods and I cannot do ->create()->addAttributeToFilter('created_at' I would like to get the credit ...
1
vote
1answer
1k views

Create credit memo programatically - refund offline issue

This is my code: $OldOrder = Mage::getModel('sales/order')->loadByIncrementId(3123121312); $invoices = $OldOrder->getInvoiceCollection(); $service = Mage::getModel('sales/...
6
votes
1answer
1k views

Magento 2 : Add Custom Field To Order, Invoice, Shipment, Credit Memo

I created one custom field in sales_order table, field name is mycstfield. I save my value in that field sucessfully when order is placed. Now, I want to send that field value in following places. ...