Hi everyone,
I’m a new Tryton user setting up a system for my butcher shop and need guidance on implementing a sophisticated pricing and weight calculation system. Let me explain with some concrete examples.
Core Purchase Example: When I purchase a beef carcass:
- I order 1 piece (the carcass)
- Supplier charges me €5/kg
- Carcass weighs 300kg
- Total purchase cost: €1,500
From this carcass, we process approximately 350 different cuts. Here’s where our calculation needs become complex:
Price Calculation Example: Let’s say I want a 20% overall profit on the carcass. Then for individual cuts:
- Premium Cut (e.g., Filet):
- Base carcass cost: €5/kg
- Carcass profit: 20%
- Cut-specific markup: 300%
- Professional price: €20/kg (no VAT, exact price)
- Shop price: €25.99/kg (including 6% VAT, rounded)
- Webshop price: €26.99/kg (different markup, with VAT, rounded)
- Standard Cut (e.g., Stewing Meat):
- Same base calculations
- Lower cut-specific markup: 100%
- Professional price: €10/kg (no VAT, exact price)
- Shop price: €12.99/kg (including VAT, rounded)
- Webshop price: €13.99/kg
Weight Calculation Example:
- Carcass weight: 300kg
- Filet is 2% of carcass = 6kg expected yield
- Stewing meat is 5% = 15kg expected yield
Currently Activated Modules:
- product_price_list
- product_price_list_cache
- product_price_list_dates
- product_price_list_parent
- production
Key Questions:
- What’s the recommended module structure to implement these tiered calculations?
- How can we maintain these relationships? For example, if the carcass cost changes from €5 to €5.50/kg, all prices should update accordingly.
- What’s the best way to handle the different rounding rules? (Professional clients need exact prices while retail needs .99 rounding)
- Can the weight percentages be integrated with the pricing system?
I’m particularly interested in understanding the correct architectural approach before diving into the implementation details.
Any guidance would be greatly appreciated.
Best regards,
Bjorn