Participant mangement

This commit is contained in:
2026-04-11 22:17:38 +02:00
parent e6bd8c684d
commit ed7f887e3a
47 changed files with 1641 additions and 269 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Providers;
use App\ValueObjects\Amount;
class MissingPaymentProvider {
public static function calculateMissingPayment(Amount $amountPaid, Amount $amountToPay) : Amount {
$workingAmount = clone($amountToPay);
$workingAmount->subtractAmount($amountPaid);
return $workingAmount;
}
}