def get_decimal_mark(self): """Returns the decimal mark """ setup = api.get_setup() return setup.getDecimalMark()
def setup(self): """Returns the Senaite Setup Object """ return api.get_setup()
def show_categories(self): """Check the setup if analysis services should be categorized """ setup = api.get_setup() return setup.getCategoriseAnalysisServices()
def show_prices(self): """Checks if prices should be shown or not """ setup = api.get_setup() return setup.getShowPrices()
def show_ar_specs(self): """Checks if AR specs should be shown or not """ setup = api.get_setup() return setup.getEnableARSpecs()
def get_default_num_samples(): """Returns the num of Samples (Columns) to be displayed in Sample Add Form """ ar_count = api.get_setup().getDefaultNumberOfARsToAdd() return api.to_int(ar_count, 1)