← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups

References