added rahimi dashboard
This commit is contained in:
@@ -143,3 +143,100 @@ export interface DashboardWalletSums {
|
||||
cash?: number
|
||||
cashToCash?: number
|
||||
}
|
||||
|
||||
export interface MontzarReconcileMandeh {
|
||||
gold: number
|
||||
cash: number
|
||||
gold_abs: number
|
||||
cash_abs: number
|
||||
gold_state: string
|
||||
rial_state: string
|
||||
gold_unit: string
|
||||
cash_unit: string
|
||||
}
|
||||
|
||||
export interface MontzarSiteSummary {
|
||||
buy_gold: number
|
||||
sell_gold: number
|
||||
buy_rial: number
|
||||
sell_rial: number
|
||||
net_gold: number
|
||||
net_rial: number
|
||||
}
|
||||
|
||||
export interface MontzarColleagueRow {
|
||||
index?: number
|
||||
id?: number | string | null
|
||||
doc_id?: number | string | null
|
||||
date?: string | null
|
||||
date_ymd?: string | null
|
||||
desc?: string
|
||||
kind?: string
|
||||
bed_gold?: number
|
||||
bes_gold?: number
|
||||
bed_rial?: number
|
||||
bes_rial?: number
|
||||
net_gold?: number
|
||||
net_rial?: number
|
||||
remain_gold?: number
|
||||
remain_rial?: number
|
||||
gold_state?: string | null
|
||||
rial_state?: string | null
|
||||
}
|
||||
|
||||
export interface MontzarLocalItem {
|
||||
id: number
|
||||
type: string
|
||||
direction?: number
|
||||
direction_label?: string
|
||||
amount: number
|
||||
cash: number
|
||||
montzar_cash?: number
|
||||
covered?: boolean
|
||||
provider_id?: number | string | null
|
||||
product_id?: number | string | null
|
||||
product_title?: string | null
|
||||
customer_name?: string | null
|
||||
note?: string
|
||||
created_at?: string | null
|
||||
date_ymd?: string | null
|
||||
}
|
||||
|
||||
export interface MontzarReconcileDiff {
|
||||
code: string
|
||||
reason: string
|
||||
colleague?: MontzarColleagueRow | null
|
||||
local?: MontzarLocalItem | null
|
||||
}
|
||||
|
||||
export interface MontzarReconcilePayload {
|
||||
mandeh: MontzarReconcileMandeh | null
|
||||
colleague_available?: boolean
|
||||
colleague_error?: string | null
|
||||
last_table_remain?: { gold: number; rial: number } | null
|
||||
summary: {
|
||||
local_all: MontzarSiteSummary
|
||||
local_covered: MontzarSiteSummary
|
||||
local_uncovered: MontzarSiteSummary
|
||||
local_matched: MontzarSiteSummary
|
||||
colleague_site: MontzarSiteSummary
|
||||
diff_site_gold: number
|
||||
diff_site_rial: number
|
||||
order_count: number
|
||||
covered_count: number
|
||||
uncovered_count: number
|
||||
matched_count: number
|
||||
diff_count: number
|
||||
gift_count?: number
|
||||
colleague_row_count: number
|
||||
local_order_count: number
|
||||
}
|
||||
colleague_rows: MontzarColleagueRow[]
|
||||
local_orders: MontzarLocalItem[]
|
||||
local_uncovered_orders?: MontzarLocalItem[]
|
||||
local_gifts: MontzarLocalItem[]
|
||||
matched: Array<{ code: string; colleague: MontzarColleagueRow; local: MontzarLocalItem }>
|
||||
diffs: MontzarReconcileDiff[]
|
||||
colleague_other?: MontzarReconcileDiff[]
|
||||
range: { start: string; end: string }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user