mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
test: Update test account
This commit is contained in:
@@ -13,7 +13,7 @@ class TestFinanceBook(unittest.TestCase):
|
|||||||
finance_book = create_finance_book()
|
finance_book = create_finance_book()
|
||||||
|
|
||||||
# create jv entry
|
# create jv entry
|
||||||
jv = make_journal_entry("_Test Bank - _TC", "_Test Receivable - _TC", 100, save=False)
|
jv = make_journal_entry("_Test Bank - _TC", "Debtors - _TC", 100, save=False)
|
||||||
|
|
||||||
jv.accounts[1].update({"party_type": "Customer", "party": "_Test Customer"})
|
jv.accounts[1].update({"party_type": "Customer", "party": "_Test Customer"})
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class TestJournalEntry(unittest.TestCase):
|
|||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""select name from `tabJournal Entry Account`
|
"""select name from `tabJournal Entry Account`
|
||||||
where account = %s and docstatus = 1 and parent = %s""",
|
where account = %s and docstatus = 1 and parent = %s""",
|
||||||
("_Test Receivable - _TC", test_voucher.name),
|
("Debtors - _TC", test_voucher.name),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@ class TestJournalEntry(unittest.TestCase):
|
|||||||
jv.submit()
|
jv.submit()
|
||||||
|
|
||||||
# create jv in USD, but account currency in INR
|
# create jv in USD, but account currency in INR
|
||||||
jv = make_journal_entry("_Test Bank - _TC", "_Test Receivable - _TC", 100, save=False)
|
jv = make_journal_entry("_Test Bank - _TC", "Debtors - _TC", 100, save=False)
|
||||||
|
|
||||||
jv.accounts[1].update({"party_type": "Customer", "party": "_Test Customer USD"})
|
jv.accounts[1].update({"party_type": "Customer", "party": "_Test Customer USD"})
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"doctype": "Journal Entry",
|
"doctype": "Journal Entry",
|
||||||
"accounts": [
|
"accounts": [
|
||||||
{
|
{
|
||||||
"account": "_Test Receivable - _TC",
|
"account": "Debtors - _TC",
|
||||||
"party_type": "Customer",
|
"party_type": "Customer",
|
||||||
"party": "_Test Customer",
|
"party": "_Test Customer",
|
||||||
"credit_in_account_currency": 400.0,
|
"credit_in_account_currency": 400.0,
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
"doctype": "Journal Entry",
|
"doctype": "Journal Entry",
|
||||||
"accounts": [
|
"accounts": [
|
||||||
{
|
{
|
||||||
"account": "_Test Receivable - _TC",
|
"account": "Debtors - _TC",
|
||||||
"party_type": "Customer",
|
"party_type": "Customer",
|
||||||
"party": "_Test Customer",
|
"party": "_Test Customer",
|
||||||
"credit_in_account_currency": 0.0,
|
"credit_in_account_currency": 0.0,
|
||||||
|
|||||||
@@ -1724,7 +1724,7 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
# Party Account currency must be in USD, as there is existing GLE with USD
|
# Party Account currency must be in USD, as there is existing GLE with USD
|
||||||
si4 = create_sales_invoice(
|
si4 = create_sales_invoice(
|
||||||
customer="_Test Customer USD",
|
customer="_Test Customer USD",
|
||||||
debit_to="_Test Receivable - _TC",
|
debit_to="Debtors - _TC",
|
||||||
currency="USD",
|
currency="USD",
|
||||||
conversion_rate=50,
|
conversion_rate=50,
|
||||||
do_not_submit=True,
|
do_not_submit=True,
|
||||||
@@ -1737,7 +1737,7 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
si3.cancel()
|
si3.cancel()
|
||||||
si5 = create_sales_invoice(
|
si5 = create_sales_invoice(
|
||||||
customer="_Test Customer USD",
|
customer="_Test Customer USD",
|
||||||
debit_to="_Test Receivable - _TC",
|
debit_to="Debtors - _TC",
|
||||||
currency="USD",
|
currency="USD",
|
||||||
conversion_rate=50,
|
conversion_rate=50,
|
||||||
do_not_submit=True,
|
do_not_submit=True,
|
||||||
@@ -1816,7 +1816,7 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
"reference_date": nowdate(),
|
"reference_date": nowdate(),
|
||||||
"received_amount": 300,
|
"received_amount": 300,
|
||||||
"paid_amount": 300,
|
"paid_amount": 300,
|
||||||
"paid_from": "_Test Receivable - _TC",
|
"paid_from": "Debtors - _TC",
|
||||||
"paid_to": "_Test Cash - _TC",
|
"paid_to": "_Test Cash - _TC",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user