Files
boursecu_admin/src/model/walletAssets.ts
T
2026-06-26 22:16:44 +03:30

38 lines
798 B
TypeScript

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
}