mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
@@ -467,6 +467,7 @@ class TestJournalEntry(unittest.TestCase):
|
|||||||
# Change cost center for bank account - _Test Cost Center for BS Account
|
# Change cost center for bank account - _Test Cost Center for BS Account
|
||||||
create_cost_center(cost_center_name="_Test Cost Center for BS Account", company="_Test Company")
|
create_cost_center(cost_center_name="_Test Cost Center for BS Account", company="_Test Company")
|
||||||
jv.accounts[1].cost_center = "_Test Cost Center for BS Account - _TC"
|
jv.accounts[1].cost_center = "_Test Cost Center for BS Account - _TC"
|
||||||
|
# Ledger reposted implicitly upon 'Update After Submit'
|
||||||
jv.save()
|
jv.save()
|
||||||
|
|
||||||
# Check GL entries after reposting
|
# Check GL entries after reposting
|
||||||
|
|||||||
@@ -1908,6 +1908,7 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin):
|
|||||||
check_gl_entries(self, pi.name, expected_gle, nowdate())
|
check_gl_entries(self, pi.name, expected_gle, nowdate())
|
||||||
|
|
||||||
pi.items[0].expense_account = "Service - _TC"
|
pi.items[0].expense_account = "Service - _TC"
|
||||||
|
# Ledger reposted implicitly upon 'Update After Submit'
|
||||||
pi.save()
|
pi.save()
|
||||||
pi.load_from_db()
|
pi.load_from_db()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user