widthdraw and deposit

This commit is contained in:
2026-06-09 21:04:22 +03:30
parent 95516ee2d8
commit 689c51c27d
26 changed files with 1228 additions and 522 deletions
+43
View File
@@ -0,0 +1,43 @@
import type { ProductFile } from '@/utils/file'
export interface WalletAssetsMeta {
metal_ids: number[]
metal_count: number
has_count_based_products: boolean
has_weight_based_products: boolean
weight_unit: string
single_metal: boolean
}
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
file?: ProductFile | null
}
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: WalletAssetsMeta
cash_wallet: number
inventory_cards: WalletInventoryCard[]
count_products: WalletInventoryCard[]
metal_totals: WalletMetalTotal[]
assets_rial_value: number
total_rial_value: number
}