def calculateTaxes(self):
tax_rate = (getConstant('<STR_LIT>') or <NUM_LIT:0>) / <NUM_LIT:100><EOL>if tax_rate > <NUM_LIT:0>:<EOL><INDENT>if self.buyerPaysSalesTax:<EOL><INDENT>self.taxes = self.total * tax_rate<EOL><DEDENT>else:<EOL><INDENT>adjusted_total = self.total / (<NUM_LIT:1> + tax_rate)<EOL>self.taxes = adjusted_total * tax_rate<EOL><DEDENT><DEDENT>
Updates the tax field to reflect the amount of taxes depending on
the local rate as well as whether the buyer or seller pays sales tax.