Questions tagged [creditmemo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
21 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\...
0
votes
2answers
24 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
1
vote
0answers
11 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="...
0
votes
0answers
14 views

Credit memo : Adjustment negative

I want to define a specific value for adjustment fee, for instance "10". So each refund will be decremented of this value. For example: A customer create an order (100), then create a return....
0
votes
0answers
13 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 ...
0
votes
1answer
28 views

How to edit Order after invoice generated in magento2?

I know magento is not giving functionality to edit order after invoice is generated and payment is captured. Also cancel current order and create new order is option available. But I am finding actual ...
0
votes
0answers
12 views

MAGENTO 2 CREDIT MEMO ROUND PRICE

How to create credit memo subtotal & grandtotal should be roundprice in magento 2.Here is the images for reference.
0
votes
0answers
17 views

How to make refund shipping optional in Credit memo

Heyy, So I'm tearing my head trying to figure how to make the refund shipping optional in credit memo (like checking on a box would make refund shipping appear) ,I've gone through all the forums and ...
-1
votes
1answer
36 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$
1
vote
1answer
115 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="...
0
votes
0answers
22 views

Magento2 and Backorders: what happens when a quote is cancelled or a credit memo is issued?

So when using Magento 2 and Backorders are enabled. Stock = 2 and Backorder Min Qty = -5, resulting in a Salable qty = 2 -- 5 = 7. Now when adding items to the cart we see 1 item in cart (stock = 2, ...
0
votes
0answers
26 views

When issuing a credit memo, it closes the order. Can the order be set to “cancel” instead?

We are on version 1.9x. When we issue a credit memo for a sales order when someone fails age verification and we need to refund them offline, it automatically sets the status to "closed". ...
0
votes
1answer
100 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 ...
0
votes
1answer
193 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 ...
0
votes
0answers
17 views

No paytm Refund after saving Credit Memo

I have implemented custom code to create Credit memo but there are no Refunds issue. Payment gateways used are Paytm, Razorpay public function generateCreditMemo($orderId, $vitems, $orderTotal ,$...
0
votes
0answers
31 views

How to extend Save.php action of Creditmemo using plugin for CreditmemoItem in magento 2?

di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type ...
0
votes
0answers
62 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
17 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::...
2
votes
1answer
246 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/...
1
vote
0answers
137 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\...
1
vote
1answer
566 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....
1
vote
1answer
88 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\...
3
votes
0answers
136 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
1
vote
1answer
268 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.
1
vote
0answers
326 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 ...
1
vote
1answer
580 views

Magento 2 - Create partial Credit Memo programmatically

I can create Credit Memo for invoice as given in this link. Can anyone please help me to create Credit Memo with partial products and not returning all the products in invoice.
0
votes
1answer
21 views

M1.x Is Magento updated_at changed on Credit Memo / Refund when using Mage::getModel('sales/order')->getCollection()?

Is Magento updated_at changed on Credit Memo / Refund when using Mage::getModel('sales/order')->getCollection()? We use Mage::getModel('sales/order')->getCollection() to find orders that have ...
0
votes
1answer
521 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
264 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
136 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
254 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
54 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
383 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
655 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
88 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-&...
5
votes
1answer
284 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
1k 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
4answers
1k 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
80 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
2answers
510 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
368 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?
2
votes
0answers
500 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
498 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
1answer
197 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
1answer
772 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
538 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 (...
1
vote
2answers
4k 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
947 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
23 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?