update
This commit is contained in:
parent
ad147fb729
commit
b626f20c4b
@ -122,7 +122,7 @@
|
||||
|
||||
public function checkInvoice($value, $rule, $params): bool|string
|
||||
{
|
||||
$data = FinancialInvoice::where('id', $value)->where('project_id', $params['project_id'])->findOrEmpty();
|
||||
$data = FinancialInvoice::where('id', $value)->where('contract_id', $params['contract_id'])->findOrEmpty();
|
||||
return $data->isEmpty() ? '开票单据信息不存在' : true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user