Executed before pre-calculation started
(Pre calculation, Batch Calculation)
This is for definition of extended properties
Variable
|
Read
|
Write
|
Description
|
checkLotSizeFirstLevel
|
|
x
|
beas 2020.11 and older: The system checked this only in subassemblies
beas 2020.12 and newer: The system check this from first level
if you want to use same functionality as in beas 2020.11, you must change this property to false
// checkLotSize only in subassembly for older precalculation

// Use Lotsize Calculation for all pre calculation whith docment number < 1520
if <str_parm.belnr_id> n< 1520 then
setvar=checkLotSizeFirstLevel=false
end if
end function
|
|
useCalculationLotSize
|
|
x
|
beas 2020.11 and older: The system used Calculation Lot size for split sub assemblies
beas 2020.12 and newer: The system use Production Lot size for split sub assemblies
if you want to use same concept as in 2020.11:

function PreCalculationInit
setvar=useCalculationLotSize=true
end function
Note for compatibility mode
If you want, that old calculation return same result as before and you worked with split sub assemblies, you can define the Calculation Number, which is saved in str_parm.belnr_id

function PreCalculationInit
// Use Lotsize Calculation for all pre calculation whith docment number < 1520
if <str_parm.belnr_id> n< 1520 then
setvar=useCalculationLotSize=true
end if
end function
|
|
lotSizeCalculationType
|
|
x
|
Example:
Lot size Calculation: 100
Lot size Production: 60
Default calculation (Variant 1)
The production lot size is only the max. quantity per production order
if you produce 100 Pcs, the system calculate 60 + 40 Pcs and use the total price

Old calculation type (Variant 2)
The production lot size is the multiple of
if you produce 100 Pcs, the system calculate 2x60 Pcs, but use only the price from 100 Pcs

Notes
• | If you use Variant 2, then you use the production lot size in wrong way. This variant is only for compatibility available |
• | In beas Version 2020.11 and older the system used the "Lot size calculation"
See Parameter "useCalculationLotSize" |
If you work with Variant 1, you don't need to change anything
If you want to work with Variant 2, you must insert follow code

// Use old calculation for lot size
function PreCalculationInit
setvar=lotSizeCalculationType=2
end function
|
|