AA charge routine

  • relmedyer
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0

relmedyer created the topic: AA charge routine

hi,
does someone has an example of charge routine?(my requirement is to get a value from a local ref field in term amount an calculate the charge amount based on totcommittment)
#17218

Please Log in or Create an account to join the conversation.

  • Posts: 286
  • Karma: -2
  • Thank you received: 23

Valleyman1 replied the topic: AA charge routine

Good day,

Where do you want to attach the charge routine i.e Commision, CHARGE.MOD.RTN, etc?The signature of the routines will differ from where you need to put it. The general sytax of the charge routines is something like:
*-----------------------------------------------------------------------------
* <Rating>-20</Rating>
*-----------------------------------------------------------------------------
      SUBROUTINE CHARGE.ROUTINE.NAME(PARAM1, PARAM2, PARAM3...,PARAMN)
*
**  routine to calculate charge
*
$INSERT I_COMMON
$INSERT I_EQUATE
*
      GOSUB INITIALISE
      GOSUB  CHARGE.RECORD
*
      RETURN
*
*-----------------------------------------------------------------------------
INITIALISE:
*  initislaise yr file, variables etc here
*
      RETURN
*
*-----------------------------------------------------------------------------
CHARGE.RECORD:
*
*  Logic for calculating charge here
      RETURN
*
#17400

Please Log in or Create an account to join the conversation.

  • relmedyer
  • Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0

relmedyer replied the topic: AA charge routine

thank you Valleyman1
i found an example of charge routine and it's working fine!!
#17412

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 0

drjekoyemi replied the topic: AA charge routine

Please, share with us sample working routine. Thanks
#21986

Please Log in or Create an account to join the conversation.

Time to create page: 0.237 seconds