mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-27 08:24:14 +00:00
E-Invoice - Initial commit main feature integration
This commit is contained in:
@@ -54,8 +54,7 @@ class CompanyModuleResource extends JsonResource
|
||||
'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,
|
||||
|
||||
'address_einvoice' => $this->company->e_invoice ? new AddressEInvoiceResource($this->when($this->has('addresses'), $this->addresses->where('type', AddressType::E_INVOICE)->sortByDesc('created_at')->first())) : null,
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user