Skip to content

Commit

Permalink
IPriceListDAO.retrievePriceListIds(PricingSystemId pricingSystemId)
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Jan 28, 2019
1 parent d5e6d46 commit c95bfdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Expand Up @@ -60,6 +60,8 @@ public interface IPriceListDAO extends ISingletonService

I_M_PriceList_Version getPriceListVersionById(PriceListVersionId priceListVersionId);

Set<PriceListId> retrievePriceListIds(PricingSystemId pricingSystemId);

/**
* Returns a list containing all the PO price lists for a given pricing system and a country.<br>
* The method returns both price lists with the given country and without any country. The price list
Expand Down
Expand Up @@ -133,6 +133,19 @@ public Iterator<I_M_ProductPrice> retrieveProductPricesOrderedBySeqNoAndProductI
.iterate(I_M_ProductPrice.class);
}

@Override
public Set<PriceListId> retrievePriceListIds(final PricingSystemId pricingSystemId)
{
final IQueryBL queryBL = Services.get(IQueryBL.class);
return queryBL.createQueryBuilderOutOfTrx(I_M_PriceList.class)
.addEqualsFilter(I_M_PriceList.COLUMNNAME_M_PricingSystem_ID, pricingSystemId)
.addOnlyActiveRecordsFilter()
.orderBy(I_M_PriceList.COLUMNNAME_C_Country_ID)
.create()
.listIds(PriceListId::ofRepoId);

}

@Override
public I_M_PriceList retrievePriceListByPricingSyst(final PricingSystemId pricingSystemId, @NonNull final I_C_BPartner_Location bpartnerLocation, final SOTrx soTrx)
{
Expand Down

0 comments on commit c95bfdb

Please sign in to comment.