芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Models/ExchangeRateLog.php
'float', ]; } public function currency(): BelongsTo { return $this->belongsTo(Currency::class); } public function company(): BelongsTo { return $this->belongsTo(Company::class); } public static function addExchangeRateLog($model) { $data = [ 'exchange_rate' => $model->exchange_rate, 'company_id' => $model->company_id, 'base_currency_id' => $model->currency_id, 'currency_id' => CompanySetting::getSetting('currency', $model->company_id), ]; return self::create($data); } }