car body policy and sales extended

This commit is contained in:
2026-09-05 18:37:42 +03:30
parent eb072ef080
commit eb636bdbdd
10 changed files with 1097 additions and 14 deletions

View File

@@ -251,6 +251,8 @@ export class FanavaranAuthService {
forceRefresh?: boolean;
/** Per-request Location override (does not affect token fingerprint). */
locationOverride?: string;
/** Per-request ContractId override (بدنه vs ثالث). Does not affect token fingerprint. */
contractIdOverride?: string;
},
): Promise<{
authenticationToken: string;
@@ -264,10 +266,11 @@ export class FanavaranAuthService {
options,
);
const locationOverride = options?.locationOverride?.trim();
const contractIdOverride = options?.contractIdOverride?.trim();
return {
authenticationToken,
CorpId: profile.auth.corpId,
ContractId: profile.auth.contractId,
ContractId: contractIdOverride || profile.auth.contractId,
Location: locationOverride || profile.auth.location,
};
}