test: standalone SI creates and attaches serial nos
This commit is contained in:
parent
22dfd5a4b1
commit
1c37d2711a
@ -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-.#####'
|
||||
|
Loading…
Reference in New Issue
Block a user