This profile is a showcase of how to setup trackers to allow defining work orders in one tracker, and linked them to billable tasks frmo another one, allowing to define a custom price aside of the guide and get some of the items selected summed in another field of tracker1. The tracker also demonstrates how item link field currently allows to create and link items in a second tracker on the fly and get them stored while adding the new item in the first tracker.
This page will be created:
Some tracker items are created for the price guide to ease the usage of the system.
YAML
permissions:
preferences:
feature_trackers: y
feature_search: y
feature_search_fulltext: n
feature_wiki_argvariable: y
unified_incremental_update: y
wikiplugin_tabs: y
wikiplugin_trackerlist: y
wikiplugin_list: y
trackerfield_dropdownother: y
instructions: Profile_Work_Custom_Pricing_Instructions_page
objects:
Sample data
YAML
objects:
-
type: tracker_item
ref: event_001
data:
tracker: $Work_Custom_Pricing:wcp_work_orders
status: open
values:
- [ $Work_Custom_Pricing:wcp_summary, "Welcome Party" ]
- [ $Work_Custom_Pricing:wcp_location, hall (100 seats) ]
-
type: tracker_item
ref: event_002
data:
tracker: $Work_Custom_Pricing:trac_as_cal
status: pending
values:
- [ $Work_Custom_Pricing:wcp_summary, "Welcome Party" ]
- [ $Work_Custom_Pricing:wcp_location, hall (100 seats) ] -
type: tracker_item
ref: event_003
data:
tracker: $Work_Custom_Pricing:trac_as_cal
status: open
values:
- [ $Work_Custom_Pricing:wcp_summary, "Welcome Party" ]
- [ $Work_Custom_Pricing:wcp_location, hall (100 seats) ]
Add a page to allow adding items
This will include:
Profile_Work_Custom_Pricing_page
YAML
instructions: Work_Custom_Pricing
preferences:
enable: [ feature_wiki ]
objects:
-
type: wiki_page
ref: wcp_page
data:
name: Work_Custom_Pricing
description: Interface to manage work orders
lang: en
content: wikicontent:Profile_Work_Custom_Pricing