RMA, Credit Memo, Multiple Lines

Is there a way when creating a credit memo on an RMA, by clicking the Add Credit Memo button, instead of having to add each line individually to the credit memo, have Epicor add all the lines at one time?

Yes you can add a button to read through all line receipted lines on an rma and add them to the credit note.

Do you have an example of how to do that?

Below is E9 code. If there are lot lines, better use DMT.

Loop through each RMADetails and pass RMANumber and line as parameter.

    private void CallRMAProcAdapterRMACreditAddMethod(int lRMANum, int lRMALine)
		// Declare and Initialize EpiDataView Variables
		// Declare and create an instance of the Adapter.
		RMAProcAdapter adapterRMAProc = new RMAProcAdapter(this.oTrans);

		// Declare and Initialize Variables
		bool iCorrection = false;
		Int32 iInvoiceNum = 0;
		Int32 iInvoiceLine = 0;
		string opErrMsg = string.Empty;

		// Call Adapter method
		bool result = adapterRMAProc.RMACreditAdd(lRMANum, lRMALine, iCorrection, out iInvoiceNum, out iInvoiceLine, out opErrMsg);
		// Cleanup Adapter Reference

	} catch (System.Exception ex)
1 Like


Think I had to put a check in as it is possible to create multiple credit note lines for one Rma line. Worth testing hitting the button twice.