Skip to content

add a property of 'supplier price' and a 'split' value #474

@carchrae

Description

@carchrae

our co-op, and i think many others, order cases of items from our suppliers. so, a case of 100 apples might be $50 for 100 apples. while we show the price to our members as $0.50 per apple and unit quantity (UQ) of 100, the supplier price is $50 and this is what must be communicated to the supplier when ordering.

i have written a bunch of scripts that convert the supplier price into a price per item, but this isn't ideal. i would prefer to have the original price stored and derive the co-op price from the original price / UQ.

here are some examples of the problems right now:

  1. the rounding problem. so that the co-op does not lose money, i round the price up. so, if there are 66 pears in a box that costs $50, then price per pear is $0.7575757575 - or rather $0.76. now, when i compute the supplier price from my derived price of $0.76, the case cost is listed as 66 UQ * 0.76 = $50.16. the supplier may be confused at the price discrepancy. (and sure i can see how the coop can slowly get rich!).

  2. if the price of the box changes, it requires more calculating to determine the food coop price. for example, say some of the fruit is spoiled/bruised, and the supplier says the box will cost $30, then we cannot update the case price, but need to do more calculating.

  3. if the amount in the box is different, then we need to determine the updated cost based on the new quantity.

i propose that we add a 'case price' to the article model. this price can then be used when producing the ordering pdf/fax to the supplier. it can also be used when updating the costs of articles in a particular order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions