Fixed multiple uom in selling
This commit is contained in:
parent
3ad045302b
commit
799619b6b0
@ -1167,8 +1167,15 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
self.assertEqual(flt(si.outstanding_amount), flt(si.grand_total + si.total_advance, si.precision("outstanding_amount")))
|
self.assertEqual(flt(si.outstanding_amount), flt(si.grand_total + si.total_advance, si.precision("outstanding_amount")))
|
||||||
|
|
||||||
def test_multiple_uom_in_selling(self):
|
def test_multiple_uom_in_selling(self):
|
||||||
si = frappe.copy_doc(test_records[1])
|
frappe.db.sql("""delete from `tabItem Price`
|
||||||
|
where price_list='_Test Price List' and item_code='_Test Item'""")
|
||||||
|
item_price = frappe.new_doc("Item Price")
|
||||||
|
item_price.price_list = "_Test Price List"
|
||||||
|
item_price.item_code = "_Test Item"
|
||||||
|
item_price.price_list_rate = 100
|
||||||
|
item_price.insert()
|
||||||
|
|
||||||
|
si = frappe.copy_doc(test_records[1])
|
||||||
si.items[0].uom = "_Test UOM 1"
|
si.items[0].uom = "_Test UOM 1"
|
||||||
si.items[0].conversion_factor = None
|
si.items[0].conversion_factor = None
|
||||||
si.items[0].price_list_rate = None
|
si.items[0].price_list_rate = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user