remove max payment amount for settlements
Some checks failed
CI / update (push) Failing after 5s

This commit is contained in:
2025-09-10 08:08:00 +02:00
parent 73c7626c32
commit c53300d5a7

View File

@@ -98,11 +98,6 @@
return; return;
} }
if (amount > selectedSettlement.amount) {
error = 'Settlement amount cannot exceed the debt amount';
return;
}
try { try {
submitting = true; submitting = true;
error = null; error = null;
@@ -264,13 +259,11 @@
type="number" type="number"
step="0.01" step="0.01"
min="0.01" min="0.01"
max={selectedSettlement.amount}
bind:value={settlementAmount} bind:value={settlementAmount}
placeholder="0.00" placeholder="0.00"
/> />
</div> </div>
<small class="max-amount"> <small class="max-amount">
Maximum: {formatCurrency(selectedSettlement.amount)}
</small> </small>
</div> </div>