fix some bugs from accounting 3

This commit is contained in:
2026-07-28 21:57:39 +03:30
parent f3a082ef73
commit 2cf4ec1bd9
4 changed files with 85 additions and 6 deletions
+12
View File
@@ -6,6 +6,7 @@ export interface AppNotification {
body: string
severity: 'info' | 'success' | 'warning' | 'danger'
is_active: boolean
is_system?: boolean
created_by?: number | null
created_at?: string
updated_at?: string
@@ -18,6 +19,17 @@ export interface AppNotification {
customer_ids?: number[]
}
export type AppNotificationSourceFilter = 'all' | 'admin' | 'system'
export const APP_NOTIFICATION_SOURCE_TABS: Array<{
value: AppNotificationSourceFilter
label: string
}> = [
{ value: 'all', label: 'همه' },
{ value: 'admin', label: 'اعلان ادمین' },
{ value: 'system', label: 'سیستمی' },
]
export const APP_NOTIFICATION_SEVERITIES = [
{ value: 'info', label: 'اطلاعات (info)' },
{ value: 'success', label: 'موفق (success)' },