|
@@ -279,7 +279,7 @@ class AuxiliaryAccountService extends Service
|
|
|
$claimTime = strtotime($item['voucher_date']);
|
|
$claimTime = strtotime($item['voucher_date']);
|
|
|
// 判断:voucher_date 必须早于 month
|
|
// 判断:voucher_date 必须早于 month
|
|
|
// 如果 voucher_date 是 2026-02-28,而 month 是 2026-03-01,则校验通过
|
|
// 如果 voucher_date 是 2026-02-28,而 month 是 2026-03-01,则校验通过
|
|
|
- if ($claimTime < $monthStart || $claimTime > $monthEnd) return [false, "第" . ($index + 1) . "凭证日期必须早于当前结算月份(" . $data['month'] . ")"];
|
|
|
|
|
|
|
+ if ($claimTime < $monthStart || $claimTime > $monthEnd) return [false, "第" . ($index + 1) . "凭证日期必须早于当前结算月份(" . date("Y-m", $data['month']) . ")"];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$query = AuxiliaryAccount::where('top_depart_id', $data['top_depart_id'])
|
|
$query = AuxiliaryAccount::where('top_depart_id', $data['top_depart_id'])
|