forked from DGNum/gestioCOF
fix by on last statement
This commit is contained in:
parent
0d02d47d33
commit
ac18cbd9d9
1 changed files with 1 additions and 0 deletions
|
@ -858,6 +858,7 @@ def kpsul_checkout_data(request, pk):
|
||||||
last_statement,
|
last_statement,
|
||||||
fields=['id', 'at', 'balance_new', 'balance_old', 'by']
|
fields=['id', 'at', 'balance_new', 'balance_old', 'by']
|
||||||
)
|
)
|
||||||
|
last_statement_data['by'] = str(last_statement.by)
|
||||||
# ``at`` is not editable, so skipped by ``model_to_dict``
|
# ``at`` is not editable, so skipped by ``model_to_dict``
|
||||||
last_statement_data['at'] = last_statement.at
|
last_statement_data['at'] = last_statement.at
|
||||||
data['laststatement'] = last_statement_data
|
data['laststatement'] = last_statement_data
|
||||||
|
|
Loading…
Reference in a new issue