[WIP] pms_api_rest: refact payment info datamodel

This commit is contained in:
Sara Lago
2022-11-04 11:11:49 +01:00
committed by Darío Lodeiros
parent 9faa3155d6
commit fffed128dd
3 changed files with 12 additions and 4 deletions

View File

@@ -153,7 +153,9 @@ class PmsAccountPaymentService(Component):
balance=statement.balance_start if isOpen else statement.balance_end_real,
dateTime=statement.create_date.strftime("%d/%m/%Y")
if isOpen
else statement.date_done.strftime("%d/%m/%Y"),
else statement.date_done.strftime("%d/%m/%Y")
if statement.date_done
else None,
)
@restapi.method(