mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-23 22:44:19 +00:00
if company doesn't have billing address - hide generate invoice and show create billing address modal
This commit is contained in:
@@ -41,6 +41,7 @@ class AddressResource extends JsonResource
|
||||
'status' => (int) $this->status,
|
||||
'contact' => new ContactResource($this->contacts->first()),
|
||||
'remark' => new RemarkResource($this->remarks->first()),
|
||||
'type' => $this->type,
|
||||
$this->mergeWhen($this->relationLoaded('owner'), [
|
||||
'owner' => $this->when($this->owner instanceof Order, [
|
||||
'reference' => $this->owner->reference,
|
||||
|
||||
Reference in New Issue
Block a user