Merge branch 'develop'
This commit is contained in:
commit
ae4c8a6a48
@ -1,2 +1,2 @@
|
||||
from __future__ import unicode_literals
|
||||
__version__ = '6.7.4'
|
||||
__version__ = '6.7.5'
|
||||
|
@ -168,7 +168,11 @@ def get_pricing_rules(args):
|
||||
field = frappe.scrub(parenttype)
|
||||
condition = ""
|
||||
if args.get(field):
|
||||
lft, rgt = frappe.db.get_value(parenttype, args[field], ["lft", "rgt"])
|
||||
try:
|
||||
lft, rgt = frappe.db.get_value(parenttype, args[field], ["lft", "rgt"])
|
||||
except TypeError:
|
||||
frappe.throw(_("Invalid {0}").format(args[field]))
|
||||
|
||||
parent_groups = frappe.db.sql_list("""select name from `tab%s`
|
||||
where lft<=%s and rgt>=%s""" % (parenttype, '%s', '%s'), (lft, rgt))
|
||||
|
||||
|
@ -29,7 +29,7 @@ blogs.
|
||||
"""
|
||||
app_icon = "icon-th"
|
||||
app_color = "#e74c3c"
|
||||
app_version = "6.7.4"
|
||||
app_version = "6.7.5"
|
||||
source_link = "https://github.com/frappe/erpnext"
|
||||
|
||||
error_report_email = "support@erpnext.com"
|
||||
|
@ -196,11 +196,11 @@ class ProcessPayroll(Document):
|
||||
journal_entry.set("accounts", [
|
||||
{
|
||||
"account": salary_account,
|
||||
"debit": amount
|
||||
"debit_in_account_currency": amount
|
||||
},
|
||||
{
|
||||
"account": default_bank_account,
|
||||
"credit": amount
|
||||
"credit_in_account_currency": amount
|
||||
},
|
||||
])
|
||||
|
||||
|
@ -23,12 +23,15 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
|
||||
|
||||
$.each(cur_frm.doc.items, function(i, item){
|
||||
if(item.delivered_by_supplier == 1 || item.supplier){
|
||||
if(item.qty > flt(item.ordered_qty))
|
||||
if(item.qty > flt(item.ordered_qty)
|
||||
&& item.qty > flt(item.delivered_qty)) {
|
||||
is_delivered_by_supplier = true;
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(item.qty > flt(item.delivered_qty))
|
||||
if(item.qty > flt(item.delivered_qty)) {
|
||||
is_delivery_note = true;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user