Hello,
i am getting error while i am putting credit not againt sales order.
"Reason code must and should only be provided for debit note and credit note."
this error is coming , when i check in edit of the error then there is code.
protected void checkBeforePosting()
{
if (salesParmLine.RemainBefore != (salesLine.RemainSalesFinancial + salesLine.RemainSalesPhysical)||
salesLine.RemainInventPhysical != salesParmLine.RemainBeforeInventPhysical)
throw error("@SYS23025");
// <GMY>
if (TaxGSTFeatureChecker_MY::isCountryRegionMY()
&& (creditNote || salesTable.hasLinesWithReference_MY())
&& !SalesTable.DebitCreditNoteReasonRefRecId_MY)
{
throw error("@SYP6163");
}
// </GMY>
}
Thanks in advance.
Akshay
*This post is locked for comments
I have the same question (0)