bug fix in edit documents

This commit is contained in:
Hesabix 2025-10-27 18:48:02 +00:00
parent bd1fd1a39a
commit 56ba9a74e8

View file

@ -333,7 +333,7 @@ class DocumentRepository:
line_dict["cash_register_name"] = line.cash_register.title line_dict["cash_register_name"] = line.cash_register.title
if line.petty_cash: if line.petty_cash:
line_dict["petty_cash_name"] = line.petty_cash.title line_dict["petty_cash_name"] = line.petty_cash.name
if line.check: if line.check:
line_dict["check_number"] = line.check.check_number line_dict["check_number"] = line.check.check_number