PdcCalculation.UpdateChargesAll: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
set objCalc = pdc.Calculations.Open("1403-00005") | set objCalc = pdc.Calculations.Open("1403-00005") | ||
objCalc.UpdateChargesAll | if objCalc.UpdateChargesAll then | ||
objCalc.Save | |||
objCalc.Show | |||
else | |||
msgbox "The calculation is in production." | |||
end if | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since april 2014 (version 4.3 onwards) | Available since april 2014 (version 4.3 onwards) |
Latest revision as of 13:15, 15 April 2014
Declaration
UpdateChargesAll
Description
Update all the charges of a calculation.
Notes
This method update all the charges of a calculation. The rates, surcharges, waste percentages, process times and all the sub items (Look at the update charges PdC screen) are updated by calling this method.
Code example
This code example updates calculation "1403-00005".
dim objCalc
set objCalc = pdc.Calculations.Open("1403-00005")
if objCalc.UpdateChargesAll then
objCalc.Save
objCalc.Show
else
msgbox "The calculation is in production."
end if
Availability
Available since april 2014 (version 4.3 onwards)