feat(backend): order channel prices: a product's price per sales point, per product / category / channel
channel_prices rules (migration 0040, services/channel_prices.py): for one or more sales points,
set the price (one product), add an amount or a percentage (with rounding), for listed products,
the products of listed categories, or everything sold there. The most precise rule wins (product
> category > channel, newest on a tie); resolve_price starts from it, so tills, phones, menus and
the cloud's per-sales-point prices all follow. /api/pricing/channel-prices (CRUD) and
/product/{id} (the product editor's quick edit of its own rules, with the fallback shown).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -354,5 +354,9 @@
|
||||
"print": {
|
||||
"printer_off": "Ο εκτυπωτής {{printer}} είναι απενεργοποιημένος στις ρυθμίσεις.",
|
||||
"redirect_failed": "Ούτε ο {{printer}} το τύπωσε ({{error}}). Το δελτίο περιμένει ακόμα."
|
||||
},
|
||||
"channel_price": {
|
||||
"not_found": "Η τιμή καναλιού δεν βρέθηκε.",
|
||||
"set_one_product": "Η σταθερή τιμή είναι για ένα προϊόν: επιλέξτε ένα προϊόν (χωρίς κατηγορίες) ή αλλάξτε την τιμή κατά ποσό ή ποσοστό."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user