...
This commit is contained in:
12
examples/biztools/bizmodel_full.vsh
Executable file
12
examples/biztools/bizmodel_full.vsh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.biz.bizmodel
|
||||
import os
|
||||
|
||||
|
||||
heroscript := os.join_path(os.dir(@FILE), 'examples/full')
|
||||
|
||||
// Execute the script and print results
|
||||
bizmodel.play(heroscript_path:heroscript)!
|
||||
mut bm := bizmodel.get("threefold")!
|
||||
bm.sheet.pprint(nr_columns: 25)!
|
||||
@@ -1 +0,0 @@
|
||||
name:bizmodel_example
|
||||
@@ -1,14 +0,0 @@
|
||||
# Bizmodel Params
|
||||
|
||||
In this section we can find all the parameters for the bizmodel.
|
||||
|
||||
## how to use and read
|
||||
|
||||
The params are defined in the different instruction files e.g. revenue_params.md
|
||||
|
||||
Often you will see something like `revenue_growth:'10:1000,20:1100'` this can be read as month 10 it 1000, month 20 its 1100.
|
||||
|
||||
The software will extrapolate.
|
||||
|
||||
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
# HR Params
|
||||
|
||||
This company is a cloud company ...
|
||||
|
||||
- bizname, is the name of the biz model we are populating
|
||||
- name, name of product, project
|
||||
- descr, description of the revenue line item
|
||||
|
||||
## descrete revenue (not per item)
|
||||
|
||||
- revenue: one of revenue, is not extrapolated, a deal at certain time
|
||||
- revenue_growth: is a revenue stream which is being extrapolated
|
||||
- cogs_percent: percent of revenue
|
||||
- cogs_delay: delay in months between cogs and revenue
|
||||
|
||||
## grouped per items sold
|
||||
|
||||
- nr_sold: how many do we sell per month (is in growth format e.g. 10:100,20:200, default is 1)
|
||||
- nr_months_recurring: e.g. 60 is 5 years
|
||||
|
||||
- revenue_item_setup, revenue for 1 item '1000usd'
|
||||
- revenue_item_setup_delay, delay between sell and recognition of sale in months
|
||||
- revenue_item_monthly, revenue per month for 1 item
|
||||
- revenue_item_monthly_delay, how many months before monthly revenue starts
|
||||
- revenue_item_maintenance_perc, how much percent of revenue_item_setup will come back over months
|
||||
- cogs_item_setup, cost of good for 1 item at setup
|
||||
- cogs_item_setup_delay, how many months before setup cogs starts, after sales
|
||||
- cogs_item_setup_perc: what is percentage of the cogs (can change over time) for setup e.g. 0:50%
|
||||
- cogs_item_monthly, cost of goods for the monthly per 1 item
|
||||
- cogs_item_monthly_delay, how many months before monthly cogs starts, after sales
|
||||
- cogs_item_monthly_perc: what is percentage of the cogs (can change over time) for monthly e.g. 0:5%,12:10%
|
||||
|
||||
## results in
|
||||
|
||||
- revenue_total which is per product
|
||||
- cogs_total
|
||||
|
||||
```js
|
||||
!!bizmodel.revenue_define bizname:'test' name:'oem1'
|
||||
descr:'OEM Deals'
|
||||
revenue:'10:1000000EUR,15:3333,20:1200000'
|
||||
cogs_percent: '1:5%,20:10%'
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user