Changes

Jump to: navigation, search

Pandora - Sample - Updating Level 2 Items

683 bytes added, 21:41, 20 July 2010
no edit summary
= Sample Code - Updating a UTA Level 2 item from a Company and/or Personal Transaction =
The following code sample will be of interest to developers wishing to update a UTA Level 2 item with values stored in company and/or personal transaction.
The particular use for this code is in the Medical Assessment Market where you wish to update a service (Level 2 item) with the billing amount for that service.
 
== Payer Behaviour ==
* The billing amount is derived from a company transaction associated with the payer company.
* The payer company is associated with the Case (level 1).
* The level 2 service name is matched to the Transaction name.
* If no matching transaction can be located in the payer company then a generic payer company is used to get the billing amount.
 
== Provider Behaviour ==
 
* A cost amount for the service is derived from the provider for the service.
* The provider must have been assiocated with the service (single provider only in this code)
* The level 2 service name is matched to the Transaction name.
* If no matching transaction can be located in the provider then a generic provider is used to get the cost amount.
 
* The code should be located in a Script field on the Level 2 entity.
* The code is associated with the Save function on the level 2 page.
<PRE>
 
function savefunc(frm) {
Smartstaff
311
edits

Navigation menu