Summary
How it works
Crystal Reports
Date
COPY_ARRAY
IS_WEEKEND
Decimal
COPY_ARRAY
Development
LINK_OPEN
VALIDATE
VALIDATE_TRANSACTION
VIEW_SCREEN
Integer
COPY_ARRAY
Short Integer
COPY_ARRAY
File
CREATE_DIRECTORY
CSV_TO_XLSX
DEL_DIRECTORY
DOWNLOAD
GET_COMPLETE_NAME
GET_EXTENSION
GET_HASH
GET_NAME
LIST_DIRECTORIES
LIST_FILES
PATH_TO_VOLUME
UNZIP
UPLOAD
VOLUME_TO_PATH
ZIP
FTP
DELETE
DOWNLOAD
LIST
UPLOAD
Image
GENERATE_CODE
IMAP
LIST_DIRECTORIES
Json
COUNT
DEL_KEY
GET_KEYS
GET_ONE
GET_POS_KEY
GET_TYPE
GET_VALUE
SET_VALUE
TO_ARRAY
MongoDB
QUERY
SMS
SEND
SMTP
SEND_EMAIL
Stock
GET_AVAILABLE_QTY
GET_COST
Text
COPY_ARRAY
COUNT_OCCURRENCES
HTML_DECODE
HTML_ENCODE
HTML_TO_TXT
IS_NUMERIC
LINK_DECODE
LINK_ENCODE
RANDOM
REPLACE
RTF_TO_TXT
SPLIT
TO_BASE64
User
CHECK_PASSWORD
Sale
CLOSE_ORDER
GET_PRICE
VALIDATE_DELIVERY
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