Main.Accert.update_total_cost#

Accert.update_total_cost(c, tc_id, u_i_tc_value, u_i_tc_unit)[source]#

Updates the total cost based on a total cost ID. (Checks if unit conversion is needed)

Parameters:
  • c (MySQLCursor) – MySQLCursor class instantiates objects that can execute MySQL statements.

  • tc_id (str) – COA of the total cost.

  • u_i_tc_value (float) – Total cost’s value.

  • u_i_tc_unit (str) – Total cost’s unit.