refactor(test): enable billed amt update on Sales Return(Cr Note)

(cherry picked from commit 0c5bdbdcf3)
This commit is contained in:
ruthra kumar
2023-11-05 08:32:27 +05:30
parent 6eb867a1e4
commit 71ad448281
2 changed files with 2 additions and 4 deletions

View File

@@ -2164,11 +2164,7 @@
"link_fieldname": "consolidated_invoice"
}
],
<<<<<<< HEAD
"modified": "2023-06-19 16:02:05.309332",
=======
"modified": "2023-11-03 14:39:38.012346",
>>>>>>> a3191f1c8c (refactor: flag to toggle billed amy update in DN for Credit Note)
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice",

View File

@@ -1056,6 +1056,7 @@ class TestDeliveryNote(FrappeTestCase):
dn1 = create_delivery_note(is_return=1, return_against=dn.name, qty=-3)
si1 = make_sales_invoice(dn1.name)
si1.update_billed_amount_in_delivery_note = True
si1.insert()
si1.submit()
dn1.reload()
@@ -1064,6 +1065,7 @@ class TestDeliveryNote(FrappeTestCase):
dn2 = create_delivery_note(is_return=1, return_against=dn.name, qty=-4)
si2 = make_sales_invoice(dn2.name)
si2.update_billed_amount_in_delivery_note = True
si2.insert()
si2.submit()
dn2.reload()