Scripting Precalculation

Administration > Setup > Precalculation > Calculation schema > Calculation objects > Calculation Objects Edit > Scripting > Scripting Pre-calculation

Top  Previous  Next
Expand/Collapse Toggles

Scripting for calculation of surcharges in Precalculation. Entered in Script administration > Edit > upper window

For Pre- and for Post-calculation the scripts need to be created separately.
 
See
Calculation objects – Scripting
Scripting
Scripting post-calculation

 

Create script

Three writable variables are available for marginal costs, full costs and description. Special variables are available for accessing calculation results.

 

Writeable variables:

Variable

Descriptions

fccost

Set full costs for the current object.

Example: setvar=fccost=<sum.fc.labor>

mccost

Set marginal costs

description

e_Row

 

youtube Example: Material cost + 5€

 

hmtoggle_plus1Example: set L+M costs

 

Variables: you can access the following special variables

<sum.material>

Material costs without costs for external operation

<sum.manufacturing>

External operation costs

<sum.materialoverheads>

Material surcharge

<sum.mc.labor>        

L+M costs at marginal costs

<sum.fc.labor>

L+M costs at full costs

<sum.mc.production>

Material + External operation + L+M cost at marginal costs

<sum.fc.production>

Material + External operation + L+M cost at marginal costs

<timetype.fc/mc/fx.[timetype]>

<calc.lotsize>

Currently calculated lot size

<calc.line>

Current assembly to be calculated (usually 1)

<calc.docentry>

Calculation number. If <= 0, temporary calculation

<calc.precalcnr>

Calculation number, linked to an offer, sales order or advance invoice via field „u_beas_precalcnr

There is no 1:1-linkage to a customer order. A calculation can be stored in several documents.

<calc.cardcode>

Client number, stored in calculation

<dw_1.item.[fieldname].value>

                         

Place holders return values in Windows regional format with 6 digits.

 

hmtoggle_plus1Example
hmtoggle_plus1Complete example of use

Help URL: https://help.beascloud.com/beas202402/index.html?scripting_precalculation.htm