Invoicing Elements: Processing Fee Calculation Order

SUGGESTED

Hello,

I am trying to calculate one invoicing element off of another and I seem to be running into a road block. I have tried using the "Calculation order" field, but this did not work. The next step would be using the "Action" and "Processing" fields. However, I do not know of the script needed for this to work.

Has anyone been able to calculate one invoicing element off of another? If so, would you mind sharing the script or method that you used?

Thank you,

  • 0
    SUGGESTED

    I would suggest rather using the entry point CALPIEDHT in source file TRTVENFACC. You can find more information about the entry point in the help file, link attached below:

    online-help.sageerpx3.com/.../

  • 0 in reply to Regard Hulsbos

    Thank you, Regard. I read that the entry point CALPIEDHT in source file TRTVENFACC is directed towards the sales invoice, but my issue is with getting the calculation on the sales order before moving to the actual invoice. We are wanting the processing fee to include other invoicing elements for customers that need to prepay on an order.

  • 0 in reply to Aaron Hunter

    The screen SIHV is a global calculation screen that is used on all sales transactions. You can use the GABREV variable to test the current function, but the invoicing element calculation is all done on this screen and can be edited using this entry point. If you wish to use the definition on the actual invoicing element, the action as indicated above, then using the screen shot below, you source file XXCALC would contain the following:

    $ACTION
    Case ACTION
    When "CALC" : Gosub CALC
    When Default
    Endcase

    Return

    $CALC
    # VARIABLE WMNTCLCBAS IS SET TO THE BASE AMOUNT TO WHICH THE CALCULATION WILL BE APPLIED
    If dim(WMNTCLCBAS)>0
    WMNTCLCBAS = XXX
    Endif

    Return