def set_taxes(quotation, cart_settings):
 from erpnext.accounts.party import set_taxes
 customer_group = frappe.db.get_value(u'Customer', quotation.customer, u'customer_group')
 quotation.taxes_and_charges = set_taxes(quotation.customer, u'Customer', quotation.transaction_date, quotation.company, customer_group, None, quotation.customer_address, quotation.shipping_address_name, 1)
 quotation.set(u'taxes', [])
 quotation.append_taxes_from_master()

def set_taxes ( quotation , cart_settings ) : from erpnext . accounts . party import set_taxes customer_group = frappe . db . get_value ( u'Customer' , quotation . customer , u'customer_group' ) quotation . taxes_and_charges = set_taxes ( quotation . customer , u'Customer' , quotation . transaction_date , quotation . company , customer_group , None , quotation . customer_address , quotation . shipping_address_name , 1 ) quotation . set ( u'taxes' , [ ] ) quotation . append_taxes_from_master ( )
set taxes based on billing territory .