test: standalone SI creates and attaches serial nos

This commit is contained in:
Ankush Menat 2022-03-11 19:01:26 +05:30 committed by Ankush Menat
parent 22dfd5a4b1
commit 1c37d2711a

View File

@ -2615,6 +2615,14 @@ class TestSalesInvoice(unittest.TestCase):
frappe.db.set_value('Accounts Settings', None, 'acc_frozen_upto', None)
def test_standalone_serial_no_return(self):
si = create_sales_invoice(item_code="_Test Serialized Item With Series", update_stock=True, is_return=True, qty=-1)
si.submit()
self.assertTrue(si.items[0].serial_no)
return si
def get_sales_invoice_for_e_invoice():
si = make_sales_invoice_for_ewaybill()
si.naming_series = 'INV-2020-.#####'