PdcCalculation.UpdateChargesAll: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Show == Description == Shows the form of the calculation object == Notes == This method shows the calculation. As this does enables the user to change th..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
UpdateChargesAll | |||
== Description == | == Description == | ||
Update all the charges of a calculation. | |||
== Notes == | == Notes == | ||
This method | 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 == | == Code example == | ||
This code example | This code example updates calculation "1403-00005". | ||
<source lang="vb"> | <source lang="vb"> | ||
dim objCalc | dim objCalc | ||
objCalc. | set objCalc = pdc.Calculations.Open("1403-00005") | ||
objCalc.Save | 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) |
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)