Summary
How it works
Date
COPY_ARRAY
IS_WEEKEND
Decimal
COPY_ARRAY
Development
LINK_OPEN
VALIDATE
VALIDATE_TRANSACTION
VIEW_SCREEN
Integer
COPY_ARRAY
File
CREATE_DIRECTORY
UNZIP
UPLOAD
LIST_FILES
LIST_DIRECTORIES
GET_HASH
GET_EXTENSION
GET_NAME
GET_COMPLETE_NAME
PATH_TO_VOLUME
DOWNLOAD
VOLUME_TO_PATH
ZIP
Image
GENERATE_CODE
IMAP
LIST_DIRECTORIES
JSON
COUNT
SET_VALUE
GET_KEYS
GET_TYPE
GET_POS_KEY
GET_ONE
GET_VALUE
DEL_KEY
TO_ARRAY
SMS
SEND
SMTP
SEND_EMAIL
Stock
GET_COST
GET_AVAILABLE_QTY
Text
RANDOM
COUNT_OCCURRENCES
COPY_ARRAY
SPLIT
IS_NUMERIC
HTML_DECODE
HTML_ENCODE
HTML_TO_TXT
LINK_DECODE
LINK_ENCODE
REPLACE
RTF_TO_TXT
User
CHECK_PASSWORD
Sale
GET_PRICE
CLOSE_ORDER
func X3.EN_STOCK_GET_COST(Char ITEM_IN, Char FACILITY_IN, Date DATE_IN, Decimal QUANTITY_IN, Char LOT_IN, Char SUBLOT_IN, Char MAJ_VERSION_IN, Char MIN_VERSION_IN, Integer METHOD_IN) : Decimal
Get the cost of an item for a given method
- ITEM_IN Char Article reference
- FACILITY_IN Char Facility code
- DATE_IN Char Calculation date
- QUANTITY_IN Decimal Quantity
- LOT_IN Char Lot number
- SUBLOT_IN Char Sublot number
- MAJ_VERSION_IN Char Major version
- MIN_VERSION_IN Char Minor version
- METHOD_IN Integer Calculation method:
- 1 : Standard Cost
- 2 : Updated Standard Cost
- 3 : Last price
- 4 : PMP
- 5 : FIFO
- 6 : PM Lot
- 7 : Order price
- 8 : LIFO
- 9 : Last purchase price
- 10: Cost Standard budget
- 11: Simulated Standard Cost
Example
Infbox num$(func X3.EN_STOCK_GET_COST("BMS001", "DISTR", date$, 1, "", "", "", "", 3))
Displays the cost of item BMS001 on the DISTR facility on today's date with the Last Price method