if (getBill_Location_ID() == 0 && locs.length > 0)
setBill_Location_ID(locs[0].getC_BPartner_Location_ID());
}
if (getC_BPartner_Location_ID() == 0)
{
throw new BPartnerNoShipToAddressException(bp);
}
if (getBill_Location_ID() == 0)
{
throw new BPartnerNoBillToAddressException(bp);