PdcCalculation.ChangeDeliveryDate: Difference between revisions
Jump to navigation
Jump to search
Created page with " dim objCalc set objCalc= pdc.OpenCalculation("01281") if objCalc.changedeliverydate(CDate("2015-10-08"), "KL") then msgbox "OK" else msgbox pdc.LastError end if ..." |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | |||
CheckLevels | |||
== Description == | |||
Changes the production methode of a manufacturing article as is in the materials file | |||
== Notes == | |||
This method checks all materials in the calculation for made-to-order-production or deliver-from-stock. | |||
Stocked materials are added as material, non-stocked F-parts are added as subcalculation. BEWARE; this method also executes a SaveAsArticle command! | |||
== Code example == | |||
This code checks the levels of the whole bill of material. | |||
<source lang="vb"> | |||
dim objCalc | dim objCalc | ||
Line 12: | Line 24: | ||
objCalc.Save | objCalc.Save | ||
objCalc.show | objCalc.show | ||
</source> | |||
== Availability == | |||
Available since 3 June 2014 (Version 4.3 onwards). |
Revision as of 10:14, 3 June 2014
Declaration
CheckLevels
Description
Changes the production methode of a manufacturing article as is in the materials file
Notes
This method checks all materials in the calculation for made-to-order-production or deliver-from-stock.
Stocked materials are added as material, non-stocked F-parts are added as subcalculation. BEWARE; this method also executes a SaveAsArticle command!
Code example
This code checks the levels of the whole bill of material.
dim objCalc
set objCalc= pdc.OpenCalculation("01281")
if objCalc.changedeliverydate(CDate("2015-10-08"), "KL") then
msgbox "OK"
else
msgbox pdc.LastError
end if
objCalc.Save
objCalc.show
Availability
Available since 3 June 2014 (Version 4.3 onwards).