fix: Patch and test codacy

This commit is contained in:
marination 2020-09-08 20:32:25 +05:30
parent 315bf3051c
commit 8484d1cd95
2 changed files with 8 additions and 6 deletions

View File

@ -7,6 +7,10 @@ import frappe
def execute():
parent_list = []
count = 0
frappe.reload_doc('stock', 'doctype', 'purchase_receipt')
frappe.reload_doc('stock', 'doctype', 'purchase_receipt_item')
for data in frappe.db.sql("""
select
`tabPurchase Receipt Item`.purchase_order, `tabPurchase Receipt Item`.name,

View File

@ -260,8 +260,6 @@ class TestDeliveryNote(unittest.TestCase):
make_stock_entry(item_code="_Test Item", target="Stores - TCP1", qty=50, basic_rate=100)
actual_qty_0 = get_qty_after_transaction(warehouse="Stores - TCP1")
dn = create_delivery_note(qty=5, rate=500, warehouse="Stores - TCP1", company=company,
expense_account="Cost of Goods Sold - TCP1", cost_center="Main - TCP1")