fix wallet ui
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
export interface WalletInventoryCard {
|
||||
product_id: number
|
||||
title: string
|
||||
group_type: string
|
||||
metal_id: number
|
||||
quantity: number
|
||||
unit: string
|
||||
display_type: 'count' | 'weight'
|
||||
unit_weight?: string | null
|
||||
show_in_assets: boolean
|
||||
is_melted?: boolean
|
||||
is_main_wallet?: boolean
|
||||
}
|
||||
|
||||
export interface WalletMetalTotal {
|
||||
metal_id: number
|
||||
metal_label: string
|
||||
label: string
|
||||
product_weight: number
|
||||
melted_weight: number
|
||||
total_weight: number
|
||||
unit: string
|
||||
}
|
||||
|
||||
export interface WalletAssetsSummary {
|
||||
meta: {
|
||||
metal_ids: number[]
|
||||
weight_unit: string
|
||||
single_metal: boolean
|
||||
}
|
||||
cash_wallet: number
|
||||
inventory_cards: WalletInventoryCard[]
|
||||
count_products: WalletInventoryCard[]
|
||||
metal_totals: WalletMetalTotal[]
|
||||
assets_rial_value: number
|
||||
total_rial_value: number
|
||||
}
|
||||
Reference in New Issue
Block a user