Adds the commerce price list to the database. Also notifies the appropriate model listeners.

@param commercePriceList the commerce price list
@return the commerce price list that was added
188129
public static com.liferay.commerce.price.list.model.CommercePriceList addCommercePriceList(
		com.liferay.commerce.price.list.model.CommercePriceList commercePriceList) {
		return getService().addCommercePriceList(commercePriceList);
	}
69082
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountRel addCommerceDiscountRel(
		CommerceDiscountRel commerceDiscountRel) {
		commerceDiscountRel.setNew(true);

		return commerceDiscountRelPersistence.update(commerceDiscountRel);
	}
847834
@Override
	public List<CommercePriceList> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1366294
public static com.liferay.commerce.model.CommerceOrderPayment addCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return getService().addCommerceOrderPayment(commerceOrderPayment);
	}
1040103
protected function _modifySelectListPrice($dPrice, $aChosenList = null)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        // #690
        if ($myConfig->getConfigParam('bl_perfLoadSelectLists') && $myConfig->getConfigParam('bl_perfUseSelectlistPrice')) {
            $aSelLists = $this->getSelectLists();

            foreach ($aSelLists as $key => $aSel) {
                if (isset($aChosenList[$key]) && isset($aSel[$aChosenList[$key]])) {
                    $oSel = $aSel[$aChosenList[$key]];
                    if ($oSel->priceUnit == 'abs') {
                        $dPrice += $oSel->price;
                    } elseif ($oSel->priceUnit == '%') {
                        $dPrice += \OxidEsales\Eshop\Core\Price::percent($dPrice, $oSel->price);
                    }
                }
            }
        }

        return $dPrice;
    }
100105
@Override
	public com.liferay.commerce.wish.list.model.CommerceWishList updateCommerceWishList(
		com.liferay.commerce.wish.list.model.CommerceWishList commerceWishList) {
		return _commerceWishListLocalService.updateCommerceWishList(commerceWishList);
	}
224189
@Override
	public void removeByCommerceCurrencyId(long commerceCurrencyId) {
		for (CommercePriceList commercePriceList : findByCommerceCurrencyId(
				commerceCurrencyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceList);
		}
	}
712765
@Override
	public List<CommercePriceListUserSegmentEntryRel> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
456120
@Override
	public com.liferay.commerce.price.list.model.CommercePriceList createCommercePriceList(
		long commercePriceListId) {
		return _commercePriceListLocalService.createCommercePriceList(commercePriceListId);
	}
969144
@Override
	public void cacheResult(CommercePriceList commercePriceList) {
		entityCache.putResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED,
			CommercePriceListImpl.class, commercePriceList.getPrimaryKey(),
			commercePriceList);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				commercePriceList.getUuid(), commercePriceList.getGroupId()
			}, commercePriceList);

		finderCache.putResult(FINDER_PATH_FETCH_BY_PARENTCOMMERCEPRICELISTID,
			new Object[] { commercePriceList.getParentCommercePriceListId() },
			commercePriceList);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commercePriceList.getCompanyId(),
				commercePriceList.getExternalReferenceCode()
			}, commercePriceList);

		commercePriceList.resetOriginalValues();
	}
1347103
protected function setPriceListAttribute($arPriceList)
    {
        if (empty($arPriceList) || !is_array($arPriceList)) {
            return;
        }

        if (isset($arPriceList[0])) {
            $this->fSavedPrice = array_get($arPriceList[0], 'price');
            $this->fSavedOldPrice = array_get($arPriceList[0], 'old_price');
            unset($arPriceList[0]);
        }

        $this->arSavedPriceList = $arPriceList;
    }
1346687
@Override
	public void cacheResult(
		CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel) {
		entityCache.putResult(CommercePriceListUserSegmentEntryRelModelImpl.ENTITY_CACHE_ENABLED,
			CommercePriceListUserSegmentEntryRelImpl.class,
			commercePriceListUserSegmentEntryRel.getPrimaryKey(),
			commercePriceListUserSegmentEntryRel);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				commercePriceListUserSegmentEntryRel.getUuid(),
				commercePriceListUserSegmentEntryRel.getGroupId()
			}, commercePriceListUserSegmentEntryRel);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				commercePriceListUserSegmentEntryRel.getCommercePriceListId(),
				commercePriceListUserSegmentEntryRel.getCommerceUserSegmentEntryId()
			}, commercePriceListUserSegmentEntryRel);

		commercePriceListUserSegmentEntryRel.resetOriginalValues();
	}
373675
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceCurrency addCommerceCurrency(
		CommerceCurrency commerceCurrency) {
		commerceCurrency.setNew(true);

		return commerceCurrencyPersistence.update(commerceCurrency);
	}
542011
@Override
	public List<CommercePriceList> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
424153
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceWishList updateCommerceWishList(
		CommerceWishList commerceWishList) {
		return commerceWishListPersistence.update(commerceWishList);
	}
669364
@Override
	public com.liferay.commerce.price.list.model.CommercePriceEntry addCommercePriceEntry(
		com.liferay.commerce.price.list.model.CommercePriceEntry commercePriceEntry) {
		return _commercePriceEntryLocalService.addCommercePriceEntry(commercePriceEntry);
	}
708439
@Override
	public List<CommerceTierPriceEntry> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}