mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 05:28:27 +00:00
test: standalone SI creates and attaches serial nos
(cherry picked from commit 1c37d2711a)
This commit is contained in:
committed by
Ankush Menat
parent
d71a8886b4
commit
625034a016
@@ -2540,6 +2540,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-.#####'
|
||||
|
||||
Reference in New Issue
Block a user