Salespersons default but error Attribute SalespersonId in SalesCreditEO is required
Summary:
Salespersons and Revenue Percent defaulted on Sales order after save but error show :Attribute SalespersonId in SalesCreditEO is required and Attribute Percent in SalesCreditEO is required.
OM Extension Code is:
import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
import java.math.BigDecimal;
// Retrieving ShipToPartySiteIdentifier info from the Sales order
Long shipToPartySiteId = header.getAttribute("ShipToPartySiteIdentifier");
// Create an instance of the public view object for the item
def acctUsePVO = context.getViewObject("oracle.apps.cdm.foundation.parties.publicView.customerAccounts.CustomerAccountSitePVO");
// Create the view criteria object
def su = acctUsePVO.createViewCriteria();
// Create the view criteria row