Merge pull request #32054 from ruthra-kumar/bug_in_process_deferred_accounting
fix: type error on cancellation of Process Deferred Accounting
This commit is contained in:
commit
e424ad5ff2
@ -34,4 +34,4 @@ class ProcessDeferredAccounting(Document):
|
|||||||
filters={"against_voucher_type": self.doctype, "against_voucher": self.name},
|
filters={"against_voucher_type": self.doctype, "against_voucher": self.name},
|
||||||
)
|
)
|
||||||
|
|
||||||
make_gl_entries(gl_entries=gl_entries, cancel=1)
|
make_gl_entries(gl_map=gl_entries, cancel=1)
|
||||||
|
@ -57,3 +57,16 @@ class TestProcessDeferredAccounting(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
|
|
||||||
check_gl_entries(self, si.name, expected_gle, "2019-01-10")
|
check_gl_entries(self, si.name, expected_gle, "2019-01-10")
|
||||||
|
|
||||||
|
def test_pda_submission_and_cancellation(self):
|
||||||
|
pda = frappe.get_doc(
|
||||||
|
dict(
|
||||||
|
doctype="Process Deferred Accounting",
|
||||||
|
posting_date="2019-01-01",
|
||||||
|
start_date="2019-01-01",
|
||||||
|
end_date="2019-01-31",
|
||||||
|
type="Income",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
pda.submit()
|
||||||
|
pda.cancel()
|
||||||
|
Loading…
Reference in New Issue
Block a user