Merge branch 'develop' of https://github.com/frappe/erpnext into payrec
This commit is contained in:
commit
344dd3793a
@ -13,9 +13,9 @@ ERPNext is built on [frappe](https://github.com/frappe/frappe)
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Development install
|
### Install
|
||||||
|
|
||||||
Use the bench, https://github.com/frappe/frappe-bench.
|
Use the bench, https://github.com/frappe/bench
|
||||||
|
|
||||||
### Admin Login
|
### Admin Login
|
||||||
|
|
||||||
|
|||||||
@ -112,7 +112,8 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
|
|||||||
|
|
||||||
entries_add: function(doc, cdt, cdn) {
|
entries_add: function(doc, cdt, cdn) {
|
||||||
var row = frappe.get_doc(cdt, cdn);
|
var row = frappe.get_doc(cdt, cdn);
|
||||||
this.frm.script_manager.copy_from_first_row("entries", row, ["expense_account", "cost_center"]);
|
this.frm.script_manager.copy_from_first_row("entries", row,
|
||||||
|
["expense_account", "cost_center", "project_name"]);
|
||||||
},
|
},
|
||||||
|
|
||||||
on_submit: function() {
|
on_submit: function() {
|
||||||
|
|||||||
@ -287,8 +287,7 @@ class ProductionPlanningTool(Document):
|
|||||||
'Quantity Requested for Purchase', 'Ordered Qty', 'Actual Qty']]
|
'Quantity Requested for Purchase', 'Ordered Qty', 'Actual Qty']]
|
||||||
for item in self.item_dict:
|
for item in self.item_dict:
|
||||||
total_qty = sum([flt(d[0]) for d in self.item_dict[item]])
|
total_qty = sum([flt(d[0]) for d in self.item_dict[item]])
|
||||||
for item_details in self.item_dict[item]:
|
item_list.append([item, self.item_dict[item][0][1], self.item_dict[item][0][2], total_qty])
|
||||||
item_list.append([item, item_details[1], item_details[2], item_details[0]])
|
|
||||||
item_qty = frappe.db.sql("""select warehouse, indented_qty, ordered_qty, actual_qty
|
item_qty = frappe.db.sql("""select warehouse, indented_qty, ordered_qty, actual_qty
|
||||||
from `tabBin` where item_code = %s""", item, as_dict=1)
|
from `tabBin` where item_code = %s""", item, as_dict=1)
|
||||||
i_qty, o_qty, a_qty = 0, 0, 0
|
i_qty, o_qty, a_qty = 0, 0, 0
|
||||||
|
|||||||
@ -312,7 +312,7 @@ class EmailDigest(Document):
|
|||||||
|
|
||||||
def get_todo_list(self, user_id):
|
def get_todo_list(self, user_id):
|
||||||
todo_list = frappe.db.sql("""select *
|
todo_list = frappe.db.sql("""select *
|
||||||
from `tabToDo` where (owner=%s or assigned_by=%s)
|
from `tabToDo` where (owner=%s or assigned_by=%s) and status="Open"
|
||||||
order by field(priority, 'High', 'Medium', 'Low') asc, date asc""",
|
order by field(priority, 'High', 'Medium', 'Low') asc, date asc""",
|
||||||
(user_id, user_id), as_dict=True)
|
(user_id, user_id), as_dict=True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user