Stop applying special pricing twice on live quotes so sell stays below buy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-20 23:59:55 +03:30
co-authored by Cursor
parent 3b83eac099
commit b4a8546ce6
5 changed files with 84 additions and 11 deletions
+6
View File
@@ -35,4 +35,10 @@ export interface Price {
/** montzar | zaarbox | main_product | store = مظنه زنده، database_last = آخرین قیمت ذخیره‌شده */
price_source?: string | null
last_historical?: number
special_pricing?: {
package_id?: number
title?: string
profit_buy?: number
profit_sell?: number
} | null
}
+2
View File
@@ -23,6 +23,8 @@ export interface Product {
cash_fee_sell: number | undefined
cash_fee_buy_is_percent?: boolean | null
cash_fee_sell_is_percent?: boolean | null
special_profit_buy?: number | null
special_profit_sell?: number | null
order_limit_enabled?: boolean
min_order_cash?: number | null
max_order_cash?: number | null