Fixed merge conflict
This commit is contained in:
@@ -46,11 +46,26 @@ erpnext.utils.get_party_details = function(frm, method, args, callback) {
|
||||
frm.updating_party_details = false;
|
||||
if(callback) callback();
|
||||
frm.refresh();
|
||||
erpnext.utils.add_item(frm);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
erpnext.utils.add_item = function(frm) {
|
||||
if(frm.is_new()) {
|
||||
var prev_route = frappe.get_prev_route();
|
||||
if(prev_route[1]==='Item' && !(frm.doc.items && frm.doc.items.length)) {
|
||||
// add row
|
||||
item = frm.add_child('items');
|
||||
frm.refresh_field('items');
|
||||
|
||||
// set item
|
||||
frappe.model.set_value(item.doctype, item.name, 'item_code', prev_route[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
erpnext.utils.get_address_display = function(frm, address_field, display_field, is_your_company_address) {
|
||||
if(frm.updating_party_details) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user