Bug 326733 - collections: bundle pricing
Summary: collections: bundle pricing
Status: RESOLVED UNMAINTAINED
Alias: None
Product: bodega
Classification: Applications
Component: Server (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks: 326736 326737
  Show dependency treegraph
 
Reported: 2013-10-27 12:51 UTC by Aaron J. Seigo
Modified: 2018-09-02 21:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron J. Seigo 2013-10-27 12:51:12 UTC
bundle prices for collections should be shown in collection listings.

2 types of custom pricing should be assigned: automatic summation, publisher bundle price, distributor bundle price.

publisher bundle price should only be available on collections of type "publisher_bundle". these prices can be anything the publisher wishes, but all assets in the collection must be owned by the same partner that owns the collection.

distributor bundle price should only be be available on collections of type "publisher_bundle" and all assets must appear in the same store and that store must be owned by the publisher. this probably implies that collections can optionally have a store associated with them.

a trigger should enforce this rule.

the final price of the collection would be:

(publisher_bundle && publisherPrice ? publisherPrice : sum(assets.basePrice)) * (distributor_bundle && distributor_markup ? distributor_markup : storeMarkup)

the prices *could* be cached per-store and updated whenever the collection, the assets or the store changes (some existing), but this may well be overkill. measuring with `explain analyze` on the production db dataset will tell if this added complexity is at all necessary.

Reproducible: Always
Comment 1 Andrew Crouthamel 2018-09-02 21:59:59 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years and I will be closing this bug.