feat(admin): full repair of order module including list, statistics, aftersales, cashier, and write-off records with real RPC integration
This commit is contained in:
@@ -121,6 +121,13 @@ export async function fetchOrderSourceStats(startTime: string, endTime: string):
|
||||
} as any)) as any
|
||||
}
|
||||
|
||||
export async function fetchOrderTypeStats(startTime: string, endTime: string): Promise<Array<any>> {
|
||||
return (await rpcOrEmptyArray('rpc_admin_order_type_stats', {
|
||||
p_start_time: startTime,
|
||||
p_end_time: endTime
|
||||
} as any)) as any
|
||||
}
|
||||
|
||||
export async function getOrderSettings(): Promise<UTSJSONObject | null> {
|
||||
const res = await rpcOrValue('rpc_admin_system_config_get', {
|
||||
p_key: 'order_settings'
|
||||
|
||||
Reference in New Issue
Block a user