[fix] [minor] if difference account blank then fetch from company
This commit is contained in:
parent
1b01e0ffb5
commit
2cdeb3bb7a
@ -621,8 +621,10 @@ class DocType(StockController):
|
||||
se_child.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.expense_account = item_dict[d]["expense_account"]
|
||||
se_child.cost_center = item_dict[d]["cost_center"]
|
||||
se_child.expense_account = item_dict[d]["expense_account"] or \
|
||||
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
|
||||
se_child.transfer_qty = flt(item_dict[d]["qty"])
|
||||
|
@ -2,7 +2,7 @@
|
||||
{
|
||||
"creation": "2013-03-29 18:22:12",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-10-23 13:46:52",
|
||||
"modified": "2013-10-23 14:35:46",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
@ -69,7 +69,9 @@
|
||||
"doctype": "DocField",
|
||||
"fieldname": "item_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Item Name"
|
||||
"label": "Item Name",
|
||||
"print_hide": 1,
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
|
Loading…
Reference in New Issue
Block a user