add max payment method for cheque
All checks were successful
Deploy Amap / deploy (push) Successful in 34s

This commit is contained in:
Julien Aldon
2026-02-20 17:36:32 +01:00
parent 72f8005fbd
commit 85a70da07d
10 changed files with 75 additions and 32 deletions

View File

@@ -47,7 +47,8 @@ def update_one(session: Session, id: int, productor: models.ProductorUpdate) ->
models.PaymentMethod(
name=pm["name"],
details=pm["details"],
productor_id=id
productor_id=id,
max=pm["max"]
)
)
del productor_updates["payment_methods"]