chore: linter
This commit is contained in:
parent
199b8dd0e3
commit
ef6480803b
@ -1064,32 +1064,32 @@ class TestDeliveryNote(FrappeTestCase):
|
|||||||
|
|
||||||
self.assertEqual(dn.items[0].rate, rate)
|
self.assertEqual(dn.items[0].rate, rate)
|
||||||
|
|
||||||
def test_internal_transfer_precision_gle(self):
|
def test_internal_transfer_precision_gle(self):
|
||||||
from erpnext.selling.doctype.customer.test_customer import create_internal_customer
|
from erpnext.selling.doctype.customer.test_customer import create_internal_customer
|
||||||
|
|
||||||
item = make_item(properties={"valuation_method": "Moving Average"}).name
|
item = make_item(properties={"valuation_method": "Moving Average"}).name
|
||||||
company = "_Test Company with perpetual inventory"
|
company = "_Test Company with perpetual inventory"
|
||||||
warehouse = "Stores - TCP1"
|
warehouse = "Stores - TCP1"
|
||||||
target = "Finished Goods - TCP1"
|
target = "Finished Goods - TCP1"
|
||||||
customer = create_internal_customer(represents_company=company)
|
customer = create_internal_customer(represents_company=company)
|
||||||
|
|
||||||
# average rate = 128.015
|
# average rate = 128.015
|
||||||
rates = [101.45, 150.46, 138.25, 121.9]
|
rates = [101.45, 150.46, 138.25, 121.9]
|
||||||
|
|
||||||
for rate in rates:
|
for rate in rates:
|
||||||
make_stock_entry(item_code=item, target=warehouse, qty=1, rate=rate)
|
make_stock_entry(item_code=item, target=warehouse, qty=1, rate=rate)
|
||||||
|
|
||||||
dn = create_delivery_note(
|
dn = create_delivery_note(
|
||||||
item_code=item,
|
item_code=item,
|
||||||
company=company,
|
company=company,
|
||||||
customer=customer,
|
customer=customer,
|
||||||
qty=4,
|
qty=4,
|
||||||
warehouse=warehouse,
|
warehouse=warehouse,
|
||||||
target_warehouse=target,
|
target_warehouse=target,
|
||||||
)
|
)
|
||||||
self.assertFalse(
|
self.assertFalse(
|
||||||
frappe.db.exists("GL Entry", {"voucher_no": dn.name, "voucher_type": dn.doctype})
|
frappe.db.exists("GL Entry", {"voucher_no": dn.name, "voucher_type": dn.doctype})
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_reserve_qty_on_sales_return(self):
|
def test_reserve_qty_on_sales_return(self):
|
||||||
frappe.db.set_single_value("Selling Settings", "dont_reserve_sales_order_qty_on_sales_return", 0)
|
frappe.db.set_single_value("Selling Settings", "dont_reserve_sales_order_qty_on_sales_return", 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user