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": "The printer {{printer}} is turned off in the settings.",
|
||||
"redirect_failed": "{{printer}} didn't print it either ({{error}}). The ticket is still waiting."
|
||||
},
|
||||
"channel_price": {
|
||||
"not_found": "Channel price not found.",
|
||||
"set_one_product": "A set price is for one product: pick one product (and no categories), or change the price by an amount or a percentage."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user