<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Magento Expert</title>
	<atom:link href="https://www.the-mage-expert.com/tag/credit-memo/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Tue, 24 Jan 2023 09:37:24 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Creating a credit memo / refund programmatically</title>
		<link>https://www.the-mage-expert.com/802/magento-creating-a-credit-memo-refund-programmatically/</link>
		<comments>https://www.the-mage-expert.com/802/magento-creating-a-credit-memo-refund-programmatically/#comments</comments>
		<pubDate>Wed, 26 Nov 2014 09:41:03 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[credit memo]]></category>
		<category><![CDATA[refund]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=802</guid>
		<description><![CDATA[The following code creates a Magento credit memo / refund. [crayon-69edcd53782bc/]]]></description>
				<content:encoded><![CDATA[<p>The following code creates a Magento credit memo / refund.</p>
<p></p><pre class="crayon-plain-tag">$invoices = array();
foreach ($this-&gt;getInvoiceCollection() as $invoice) {
    $invoices[] = $invoice;
}
        
$service = Mage::getModel('sales/service_order', $this);
foreach ($invoices as $invoice) {
    $creditmemo = $service-&gt;prepareInvoiceCreditmemo($invoice);
    $creditmemo-&gt;register();
    $creditmemo-&gt;save();
}</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/802/magento-creating-a-credit-memo-refund-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
