if company doesn't have billing address - hide generate invoice and show create billing address modal

This commit is contained in:
edmondlang
2022-08-05 21:24:36 +08:00
parent 433d8e63b4
commit 2b1fca6b2e
3 changed files with 79 additions and 3 deletions
+1
View File
@@ -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,