PdcMaterial.StockToPurchase: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
== Notes ==
== Notes ==
Change the material from 'write off from stock' to 'purchase on order'.
Change the material from 'write off from stock' to 'purchase on order'.
Result is true when it is succesfull done.
The result of the function is true when it is succesfully done.
An error occurs (Result = false):
1. The material is not stock.
2. The calculation is in production.
3. The material is not type M or K.
 
The error is stored in [[pdc.app.lasterror]]


== Code example ==
== Code example ==

Revision as of 07:31, 4 July 2025

Declaration

StockToPurchase as Boolean

Description

Change the material from 'write off from stock' to 'purchase on order' function.

Notes

Change the material from 'write off from stock' to 'purchase on order'. The result of the function is true when it is succesfully done. An error occurs (Result = false): 1. The material is not stock. 2. The calculation is in production. 3. The material is not type M or K.

The error is stored in pdc.app.lasterror

Code example

Availability