Fix comp alleg
This commit is contained in:
parent
634dbe832e
commit
d9c132ad25
1 changed files with 4 additions and 1 deletions
|
|
@ -303,7 +303,10 @@ return new class extends Migration
|
|||
$claim = null;
|
||||
if ($row->COMP_ALLEG) {
|
||||
try {
|
||||
$claim = $resolveAllegation($row->COMP_ALLEG);
|
||||
if (!$resolveAllegation($row->COMP_ALLEG)->equals(ClaimEnum::others)) {
|
||||
throw new \Error("`{$row->COMP_ALLEG}` is not resolved as `other`");
|
||||
}
|
||||
$claim = $row->COMP_ALLEG;
|
||||
} catch (\Exception) {
|
||||
throw new \Error("`{$row->COMP_ALLEG}` not found");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue