mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-24 06:54:09 +00:00
E-Invoice - Initial commit main feature integration
This commit is contained in:
@@ -51,6 +51,11 @@ class CompanyModuleResource extends JsonResource
|
||||
'connections' => $this->connections,
|
||||
'contact' => new ContactResource ($this->when($this->has('contacts'), $this->contacts->first())),
|
||||
'debtor' => $this->company->debtor,
|
||||
'e_invoice' => $this->company->e_invoice,
|
||||
'tin' => $this->company->tin,
|
||||
'msic_code' => $this->company->msic_code,
|
||||
'address_einvoice' => $this->company->e_invoice ? new AddressResource($this->when($this->has('addresses'), $this->addresses->where('type', AddressType::E_INVOICE)->sortByDesc('created_at')->first())) : null,
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user