add debtor code in company module resource for exchange accounting mapping purpose

This commit is contained in:
edmondlang
2023-07-07 00:59:48 +08:00
parent 71edeca994
commit 45b78465da
@@ -50,6 +50,7 @@ class CompanyModuleResource extends JsonResource
'warehouseCharges' => array_key_exists($this->id, $segmentConstant) ? $segmentConstant[$this->id] : null,
'connections' => $this->connections,
'contact' => new ContactResource ($this->when($this->has('contacts'), $this->contacts->first())),
'debtor' => $this->company->debtor,
];
}