def _set_price_list(quotation, cart_settings):
 if quotation.selling_price_list:
  return
 selling_price_list = None
 if quotation.customer:
  from erpnext.accounts.party import get_default_price_list
  selling_price_list = get_default_price_list(frappe.get_doc(u'Customer', quotation.customer))
 if (not selling_price_list):
  selling_price_list = cart_settings.price_list
 quotation.selling_price_list = selling_price_list

def _set_price_list ( quotation , cart_settings ) : if quotation . selling_price_list : return selling_price_list = None if quotation . customer : from erpnext . accounts . party import get_default_price_list selling_price_list = get_default_price_list ( frappe . get_doc ( u'Customer' , quotation . customer ) ) if ( not selling_price_list ) : selling_price_list = cart_settings . price_list quotation . selling_price_list = selling_price_list
set price list based on customer or shopping cart default .