feat(claims): implement automatic claim creation for insurance sessions
This commit is contained in:
@@ -28,6 +28,10 @@ class ClaimService
|
||||
throw new AppException(ErrorCodes::ERR_VALIDATION_001, 'فقط از صورتحساب نهاییشده میتوان مطالبه ساخت', 422);
|
||||
}
|
||||
|
||||
if ($invoice->getId() !== null && $this->claimRepo->existsForInvoice($invoice->getId())) {
|
||||
throw new AppException(ErrorCodes::ERR_VALIDATION_001, 'برای این صورتحساب قبلاً مطالبه ثبت شده است', 422);
|
||||
}
|
||||
|
||||
$claims = [];
|
||||
|
||||
$baseId = $invoice->getBaseInsuranceId();
|
||||
|
||||
Reference in New Issue
Block a user