CaiWuXiTong/app/Models/Business/CourierFreightRow.php
qiuxiang 7fe426211d 快递运费:列名改回「成品配件」(新表含成品运费/配件运费两类)
上一版把列名改成「成品运费」了,按业务要求改回「成品配件」;导入侧继续两种表头都认。
2026-10-08 14:06:22 +08:00

43 lines
875 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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',
];
}
}