Skip to content

Commit

Permalink
refactor(test): repost test case for purchase invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Nov 7, 2023
1 parent 6170504 commit 11c8d9f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,12 @@ def test_offsetting_entries_for_accounting_dimensions(self):
disable_dimension()

def test_repost_accounting_entries(self):
# update repost settings
settings = frappe.get_doc("Repost Accounting Ledger Settings")
if not [x for x in settings.allowed_types if x.document_type == "Purchase Invoice"]:
settings.append("allowed_types", {"document_type": "Purchase Invoice", "allowed": True})
settings.save()

pi = make_purchase_invoice(
rate=1000,
price_list_rate=1000,
Expand Down

0 comments on commit 11c8d9f

Please sign in to comment.