← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 786081] Re: Pricelist versions with overlapping dates do not locate correct version

 

Hi OLivier - thanks for the input. I think your idea would achieve the
same results and if it more consistent with the current concept all the
better.

However, just to explain the need for a separate promo pricelist:
imagine there is a promotion for a range of products which applies to
all customers, however if several customers have already assigned
pricelists it would be cumbersome to repeat the promotional items in
every specific customer's pricelist, i.e. it is easier to define the
promotional items once and then reference that pricelist in the customer
specific pricelists within a new version.

In the real world it gets even more complicated in that it may be
required to select the lowest price from the promotional OR the customer
specific prices (i.e. "contract" prices). It would be good to have an
option on the pricelist that would allow this feature as several of my
past customers had this requirement and a current OpenERP customer also
has this requirement. But I guess this is a separate issue.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/786081

Title:
  Pricelist versions with overlapping dates do not locate correct
  version

Status in OpenERP Modules (addons):
  Triaged

Bug description:
  Steps to reproduce:
  1) Create price list (A) version 1 (A-V1) that (say) gives 10% off all products for all dates - Line A-V1.1(sequence =5)
  2) Create another price list (B) version 1 (B-V1) that gives a fixed price on one product (P1) for a date range (promotion pricing)
  3) On price list A-V1 insert a line that references price list B so that for the nominated date range on B price list B will apply for the selected item in B. Make sure the promotional pricing line has a sequence number to make it the first line selected when looking for a price - Line AV1.2(sequence=1)
  4) Enter a sales order and create a line selling the promotional item P1. Make sure the sales order date is outside the promotional date range specified on B-V1 price list

  Result observed:
  OpenERP displays the error message "At least one price list has no active version!" (In fact it does not matter which item is ordered the same message is displayed)

  Expected result:
  The system should NOT fail on looking up a price on the Line AV1.2(sequence=1) (promo line). It should keep looking on the price list going to Line A-V1.1(sequence =5) which would give the normal 10% discount. 

  If this a "by design" rather than a bug, then I suggest we call it a
  bug since if the system behaved as I expected it would make it much
  more flexible for doing promotional pricing, i.e. the system should
  only give an error message if all lines on the price list have failed
  to deliver a price, not fail on the first line that references a price
  list that has expired.

  Version: addons 6 trunk  rev 4577

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/786081/+subscriptions


References