def set_price_list_and_rate(quotation, cart_settings):
 _set_price_list(quotation, cart_settings)
 quotation.price_list_currency = quotation.currency = quotation.plc_conversion_rate = quotation.conversion_rate = None
 for item in quotation.get(u'items'):
  item.price_list_rate = item.discount_percentage = item.rate = item.amount = None
 quotation.run_method(u'set_price_list_and_item_details')
 if hasattr(frappe.local, u'cookie_manager'):
  frappe.local.cookie_manager.set_cookie(u'selling_price_list', quotation.selling_price_list)

def set_price_list_and_rate ( quotation , cart_settings ) : _set_price_list ( quotation , cart_settings ) quotation . price_list_currency = quotation . currency = quotation . plc_conversion_rate = quotation . conversion_rate = None for item in quotation . get ( u'items' ) : item . price_list_rate = item . discount_percentage = item . rate = item . amount = None quotation . run_method ( u'set_price_list_and_item_details' ) if hasattr ( frappe . local , u'cookie_manager' ) : frappe . local . cookie_manager . set_cookie ( u'selling_price_list' , quotation . selling_price_list )
set price list based on billing territory .