Skip to content

biz.bizmodel #

fn get #

fn get(name string) !&BizModel

fn getset #

fn getset(name string) !&BizModel

get bizmodel from global

fn play #

fn play(mut plbook PlayBook) !

fn playmacro #

fn playmacro(action playbook.Action) !string

fn set #

fn set(bizmodel BizModel)

struct BizModel #

struct BizModel {
pub mut:
	name        string
	sheet       &spreadsheet.Sheet
	employees   map[string]&Employee
	departments map[string]&Department
	costcenters map[string]&Costcenter
	products    map[string]&Product
}

struct Costcenter #

struct Costcenter {
pub:
	name        string
	description string
	department  string
}

struct Department #

struct Department {
pub:
	name        string
	description string
	page        string
	title       string
	order       int
}

struct Employee #

struct Employee {
pub:
	name                 string
	description          string
	title                string
	department           string
	cost                 string
	cost_percent_revenue f64
	nrpeople             string
	indexation           f64
	cost_center          string
	page                 string
	fulltime_perc        f64
}

struct Product #

struct Product {
pub mut:
	name                string
	title               string
	description         string
	order               int
	has_revenue         bool
	has_items           bool
	has_oneoffs         bool
	nr_months_recurring int
}