def METHOD_NAME(self, fit=None):
    ship_price = 0
    module_price = 0
    drone_price = 0
    fighter_price = 0
    cargo_price = 0
    booster_price = 0
    implant_price = 0
    if fit:
        ship_price = fit.ship.item.price.price
        if fit.modules:
            for module in fit.modules:
                if not module.isEmpty:
                    module_price += module.item.price.price
        if fit.drones:
            for drone in fit.drones:
                drone_price += drone.item.price.price * drone.amount
        if fit.fighters:
            for fighter in fit.fighters:
                fighter_price += fighter.item.price.price * fighter.amount
        if fit.cargo:
            for cargo in fit.cargo:
                cargo_price += cargo.item.price.price * cargo.amount
        if fit.boosters:
            for booster in fit.boosters:
                booster_price += booster.item.price.price
        if fit.appliedImplants:
            for implant in fit.appliedImplants:
                implant_price += implant.item.price.price
    total_price = 0
    total_price += ship_price
    total_price += module_price
    if self.settings.get("drones"):
        total_price += drone_price + fighter_price
    if self.settings.get("cargo"):
        total_price += cargo_price
    if self.settings.get("character"):
        total_price += booster_price + implant_price
    self.labelPriceShip.SetLabel("%s ISK" % formatAmount(ship_price, 3, 3, 9, currency=True))
    self.labelPriceShip.SetToolTip(wx.ToolTip('{:,.2f} ISK'.format(ship_price)))
    self.labelPriceFittings.SetLabel("%s ISK" % formatAmount(module_price, 3, 3, 9, currency=True))
    self.labelPriceFittings.SetToolTip(wx.ToolTip('{:,.2f} ISK'.format(module_price)))
    self.labelPriceDrones.SetLabel("%s ISK" % formatAmount(drone_price + fighter_price, 3, 3, 9, currency=True))
    self.labelPriceDrones.SetToolTip(wx.ToolTip('{:,.2f} ISK'.format(drone_price + fighter_price)))
    self.labelPriceCargobay.SetLabel("%s ISK" % formatAmount(cargo_price, 3, 3, 9, currency=True))
    self.labelPriceCargobay.SetToolTip(wx.ToolTip('{:,.2f} ISK'.format(cargo_price)))
    self.labelPriceCharacter.SetLabel("%s ISK" % formatAmount(booster_price + implant_price, 3, 3, 9, currency=True))
    self.labelPriceCharacter.SetToolTip(wx.ToolTip('{:,.2f} ISK'.format(booster_price + implant_price)))
    self.labelPriceTotal.SetLabel("%s ISK" % formatAmount(total_price, 3, 3, 9, currency=True))
    self.labelPriceTotal.SetToolTip(wx.ToolTip('{:,.2f} ISK'.format(total_price)))