Revised the sort_post_txn_records() utility to fill in the new order as strings instead of integers in the accounting applications.
This commit is contained in:
parent
2c3bd43345
commit
14c6d2e4bf
@ -373,7 +373,7 @@ def sort_post_txn_records(post):
|
|||||||
for i in range(len(record_no[record_type])):
|
for i in range(len(record_no[record_type])):
|
||||||
old_no = record_no[record_type][i]
|
old_no = record_no[record_type][i]
|
||||||
no = i + 1
|
no = i + 1
|
||||||
new_post[F"{record_type}-{no}-ord"] = no
|
new_post[F"{record_type}-{no}-ord"] = str(no)
|
||||||
for attr in ["id", "account", "summary", "amount"]:
|
for attr in ["id", "account", "summary", "amount"]:
|
||||||
if F"{record_type}-{old_no}-{attr}" in post:
|
if F"{record_type}-{old_no}-{attr}" in post:
|
||||||
new_post[F"{record_type}-{no}-{attr}"]\
|
new_post[F"{record_type}-{no}-{attr}"]\
|
||||||
|
Loading…
Reference in New Issue
Block a user