Need to pick up the dff values from Ship to instead of bill to through OM extension
Summary:
what changes shall i make in code to pick the values from ship to instead of bill to?
Content (required):
Object getParty(Long PartyId,Long partyidentifier)
{
def CustAcctPVO = context.getViewObject("oracle.apps.cdm.foundation.parties.publicView.analytics.CustomerAccountPVO");
def vc = CustAcctPVO.createViewCriteria();
def vcrow = vc.createViewCriteriaRow();
//vcrow.setAttribute("PartyId", PartyId);
vcrow.setAttribute("PartyId", PartyId);
//header.setAttribute("PackingInstructions", PartyId);
def rowset = CustAcctPVO.findByViewCriteria(vc, -1);
def PartyDetails = rowset.first();
def AccountID = PartyDetails.getAttribute("CustAccountId");
def CustAccountSiteView = context.getViewObject("oracle.apps.cdm.foundation.parties.publicView.customerAccounts.CustomerAccountSitePVO");
def CustACCVC = CustAccountSiteView.createViewCriteria();
def CustAccVCrow = CustACCVC.createViewCriteriaRow();
CustAccVCrow.setAttribute("CustAccountId", AccountID);
CustAccVCrow.setAttribute("PartySiteId", partyidentifier);