mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 00:43:58 +00:00
Create company info table, insert data into company info, update companyResource when businessType is online shop
This commit is contained in:
@@ -66,6 +66,9 @@ class CompanyResource extends JsonResource
|
||||
$this->mergeWhen($this->business_type === BusinessType::CURRENCY_VENDOR, [
|
||||
'currencies' => $segment ? CurrencyResource::collection(Currency::whereIn('id', $segment->detail->currencies)->get()) : [],
|
||||
'service_charge' => $serviceCharge
|
||||
]),
|
||||
$this->mergeWhen($this->business_type === BusinessType::ONLINE_SHOP, [
|
||||
'company_infos' => new CompanyInfoResource($this->infos)
|
||||
])
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user