Skip to content

Commit

Permalink
refactor(test): make sure TDS Payable is available for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Oct 15, 2023
1 parent 0207d6e commit fbabf4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2781,6 +2781,13 @@ def test_additional_discount_for_sales_invoice_with_discount_accounting_enabled(
company="_Test Company",
)

tds_payable_account = create_account(
account_name="TDS Payable",
account_type="Tax",
parent_account="Duties and Taxes - _TC",
company="_Test Company",
)

si = create_sales_invoice(parent_cost_center="Main - _TC", do_not_save=1)
si.apply_discount_on = "Grand Total"
si.additional_discount_account = additional_discount_account
Expand Down

0 comments on commit fbabf4a

Please sign in to comment.