Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

1 export type AuditItem={tenantId:string;seq:number;actor:string;action:string;entity:string;at:number}; export type AuditFilter={actor?:string;action?:string;entity?:string;from?:number;to?:number}; export function filterAudit(t:string,e:AuditItem[],f:AuditFilter){return e.filter(x=>x.tenantId===t&&(!f.actor||x.actor===f.actor)&&(!f.action||x.action===f.action)&&(!f.entity||x.entity===f.entity)&&(f.from===undefined||x.at>=f.from)&&(f.to===undefined||x.at<=f.to)).sort((a,b)=>a.seq-b.seq)}