test: Added test for PCV cancellation

This commit is contained in:
Nabin Hait
2022-07-19 12:32:54 +05:30
parent 903e42fbdd
commit cfb11f4b84
3 changed files with 53 additions and 38 deletions

View File

@@ -148,7 +148,7 @@ def update_net_values(entry):
def merge_similar_entries(gl_map, precision=None):
merged_gl_map = []
accounting_dimensions = get_accounting_dimensions()
for entry in gl_map:
# if there is already an entry in this account then just add it
# to that entry
@@ -222,6 +222,7 @@ def save_entries(gl_map, adv_adj, update_outstanding, from_repost=False):
for entry in gl_map:
make_entry(entry, adv_adj, update_outstanding, from_repost)
def make_entry(args, adv_adj, update_outstanding, from_repost=False):
gle = frappe.new_doc("GL Entry")
gle.update(args)