KBA-01549: Client Side Calculations for Custom Document

Question:

How do I set up a custom document to have item detail calculations like a PCO or SCO?
Why does my custom document get the value of the property CalculateSCOItemChangeAmount is null or undefined script error?

Answer:

Client side calculations require javascript.  When your custom document type needs to perform such calculations, you must include a DocItemConfig | JSIncludes rule so that the required script is loaded.

The two most common Spitfire supplied calculation libraries:

  • PCOAmountCalculations
    • Includes the CalculateSCOItemChangeAmount function
  • SPRAmountCalculations
    • Includes the CalculateSPRLine function
    • Handles
      • Change of % (requires Subcontract/SOV Amount, sets request amount)
      • Change of Quantity (requires rate, sets request amount
      • Change of Total amount (sets units and percent)
      • Change of Rate

Additional Comments:

See KBA-01158 for more on the DocItemConfig rule group.


KBA-01549; Last updated: January 4, 2022 at 22:56 pm
Keywords:  Item details