Show cached rial and weight balances on balance-claims activity cards and details.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2253,6 +2253,19 @@ export const ACTIVITY_EDIT_POLICY_LABELS: Record<ActivityEditPolicy, string> = {
|
||||
assignees: "همهٔ مسئولان",
|
||||
};
|
||||
|
||||
/** ماندهٔ کششدهٔ تهحساب برای کارت/جزئیات فعالیت مطالبات */
|
||||
export interface ActivityAccountBalanceWeightDto {
|
||||
key: string;
|
||||
label: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface ActivityAccountBalanceDto {
|
||||
rialBalance: number | null;
|
||||
weights: ActivityAccountBalanceWeightDto[];
|
||||
fetchedAt: string | null;
|
||||
}
|
||||
|
||||
export interface ActivityDto {
|
||||
id: string;
|
||||
type: ActivityType;
|
||||
@@ -2280,6 +2293,11 @@ export interface ActivityDto {
|
||||
importSource?: string;
|
||||
promotedFromPriorAt?: string | null;
|
||||
tags: string[];
|
||||
/**
|
||||
* فقط برای فعالیتهای کاریز مطالبات (تگ balance_claims):
|
||||
* مانده ریالی/وزنی از کش تهحساب؛ null یعنی لینک/کش نیست.
|
||||
*/
|
||||
accountBalance?: ActivityAccountBalanceDto | null;
|
||||
person: PersonSummaryDto | null;
|
||||
company: CompanySummaryDto | null;
|
||||
deal: DealSummaryDto | null;
|
||||
|
||||
Reference in New Issue
Block a user