case fee total updates when a fee is updated

This commit is contained in:
2022-04-21 12:20:22 +01:00
parent 92bce34fb1
commit 86c0fb1f65
2 changed files with 3 additions and 27 deletions

View File

@ -227,11 +227,6 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface
$this->save();
}
public function subtractFromTotalFee(string $amountToSubtract): void {
$this->set('total_fee', $this->total_fee->value - $amountToSubtract);
$this->save();
}
/**
* {@inheritdoc}
*/