fix: Sider issues

This commit is contained in:
Deepesh Garg
2020-12-10 23:16:25 +05:30
parent 7b282d253f
commit 646ead65d8
2 changed files with 3 additions and 3 deletions

View File

@@ -19,8 +19,8 @@ frappe.ui.form.on('Batch', {
'item_code': frm.doc.item,
'selling': 1
}
}
})
};
});
},
refresh: (frm) => {
if(!frm.is_new()) {

View File

@@ -706,7 +706,7 @@ def get_item_price(args, item_code, ignore_party=False):
order by valid_from desc, uom desc """.format(conditions=conditions), args)
def is_valid_item_price(item_price, posting_date):
if item_price.valid_upto and getdate(posting_date) <= getdate(valid_upto):
if item_price.valid_upto and getdate(posting_date) <= getdate(item_price.valid_upto):
return True
if getdate(posting_date) >= getdate(item_price.valid_from):