expose legal_entity_id on transformer

This commit is contained in:
Benjamin Beganović 2024-10-10 18:29:50 +02:00
parent 0371ccd2de
commit f728ebb797
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class CompanyTransformer extends EntityTransformer
'e_invoice' => $company->e_invoice ?: new \stdClass(),
'has_quickbooks_token' => $company->quickbooks ? true : false,
'is_quickbooks_token_active' => $company->quickbooks?->accessTokenKey ?? false,
'legal_entity_id' => $company->legal_entity_id ?? null,
];
}