mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
[fix] [minor] if difference account blank then fetch from company
This commit is contained in:
@@ -621,8 +621,10 @@ class DocType(StockController):
|
|||||||
se_child.uom = item_dict[d]["stock_uom"]
|
se_child.uom = item_dict[d]["stock_uom"]
|
||||||
se_child.stock_uom = item_dict[d]["stock_uom"]
|
se_child.stock_uom = item_dict[d]["stock_uom"]
|
||||||
se_child.qty = flt(item_dict[d]["qty"])
|
se_child.qty = flt(item_dict[d]["qty"])
|
||||||
se_child.expense_account = item_dict[d]["expense_account"]
|
se_child.expense_account = item_dict[d]["expense_account"] or \
|
||||||
se_child.cost_center = item_dict[d]["cost_center"]
|
webnotes.conn.get_value("Company", self.doc.company, "default_expense_account")
|
||||||
|
se_child.cost_center = item_dict[d]["cost_center"] or \
|
||||||
|
webnotes.conn.get_value("Company", self.doc.company, "cost_center")
|
||||||
|
|
||||||
# in stock uom
|
# in stock uom
|
||||||
se_child.transfer_qty = flt(item_dict[d]["qty"])
|
se_child.transfer_qty = flt(item_dict[d]["qty"])
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"creation": "2013-03-29 18:22:12",
|
"creation": "2013-03-29 18:22:12",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-10-23 13:46:52",
|
"modified": "2013-10-23 14:35:46",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
@@ -69,7 +69,9 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"fieldname": "item_name",
|
"fieldname": "item_name",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Item Name"
|
"label": "Item Name",
|
||||||
|
"print_hide": 1,
|
||||||
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
|||||||
Reference in New Issue
Block a user