...
This commit is contained in:
44
examples/biztools/costs.vsh
Executable file
44
examples/biztools/costs.vsh
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.biz.bizmodel
|
||||
import os
|
||||
|
||||
heroscript := "
|
||||
|
||||
//need to define some revenue because otherwise can't see how HR relates to it
|
||||
!!bizmodel.revenue_define bizname:'test' name:'oem1' extrapolate:1
|
||||
descr:'OEM Deals' revenue:'0:1000000,60:10000000'
|
||||
cogs_percent: '0:20%'
|
||||
|
||||
!!bizmodel.employee_define bizn
|
||||
|
||||
!!bizmodel.department_define bizname:'test' name:'marketing'
|
||||
descr:'Marketing Department'
|
||||
|
||||
!!bizmodel.department_define bizname:'test' name:'engineering'
|
||||
descr:'Engineering Department'
|
||||
|
||||
!!bizmodel.costcenter_define bizname:'test' name:'marketing_cc'
|
||||
descr:'Marketing Cost Center'
|
||||
department:'marketing'
|
||||
|
||||
!!bizmodel.cost_define bizname:'test' name:'office_rent'
|
||||
descr:'Office Rent'
|
||||
cost:'5000USD'
|
||||
indexation:'3%'
|
||||
costcenter:'marketing_cc'
|
||||
cost_percent_revenue:'1%'
|
||||
|
||||
!!bizmodel.cost_define bizname:'test' name:'software_licenses'
|
||||
descr:'Annual Software Licenses'
|
||||
cost:'0:10000 10:EUR:20kCHF,12:5000USD'
|
||||
cost_one:'true' // Example of a one-time cost
|
||||
department:'engineering'
|
||||
|
||||
"
|
||||
|
||||
bizmodel.play(heroscript: heroscript)!
|
||||
|
||||
mut bm := bizmodel.get('test')!
|
||||
|
||||
bm.sheet.pprint(nr_columns: 20)!
|
||||
24
examples/biztools/funding.vsh
Executable file
24
examples/biztools/funding.vsh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.biz.bizmodel
|
||||
import os
|
||||
|
||||
heroscript := "
|
||||
|
||||
!!bizmodel.funding_define bizname:'test' name:'seed_capital'
|
||||
descr:'Initial Seed Capital Investment'
|
||||
investment:'0:500000,12:200000'
|
||||
type:'capital'
|
||||
|
||||
!!bizmodel.funding_define bizname:'test' name:'bank_loan'
|
||||
descr:'Bank Loan for Expansion'
|
||||
investment:'6:100000,18:50000'
|
||||
type:'loan'
|
||||
|
||||
"
|
||||
|
||||
bizmodel.play(heroscript: heroscript)!
|
||||
|
||||
mut bm := bizmodel.get('test')!
|
||||
|
||||
bm.sheet.pprint(nr_columns: 20)!
|
||||
Reference in New Issue
Block a user