43 lines
875 B
PHP
43 lines
875 B
PHP
<?php
|
||
|
||
namespace App\Models\Business;
|
||
|
||
use App\Abstracts\Model;
|
||
|
||
/**
|
||
* 财务经营报表 › 快递运费(来源:快递方提供的成本运费明细导入)。
|
||
*/
|
||
class CourierFreightRow extends Model
|
||
{
|
||
protected $table = 'courier_freight_rows';
|
||
|
||
protected $fillable = [
|
||
'company_id',
|
||
'source',
|
||
'part',
|
||
'transaction_no',
|
||
'freight_amount',
|
||
];
|
||
|
||
protected $casts = [
|
||
'freight_amount' => 'decimal:4',
|
||
];
|
||
|
||
public static function columnLabels(): array
|
||
{
|
||
return [
|
||
'source' => '来源',
|
||
'part' => '成品配件',
|
||
'transaction_no' => '交易单号',
|
||
'freight_amount' => '提供成本运费',
|
||
];
|
||
}
|
||
|
||
public static function fieldTypes(): array
|
||
{
|
||
return [
|
||
'freight_amount' => 'currency',
|
||
];
|
||
}
|
||
}
|