object=ue_reservation=receiptwo=<propertie>
issue bom or parent item from a planned document
return: in <value> -1 = error, 0=ok
Worksteps:
1. Create a Planned document
2. Create a receipt from Reservation
--
Create Reservation for Workorder 68 Pos 60 Bom 0, Item C15748, Warehouse 01, Qty 2
Bom 0 means that you are going to generate the receipt for the parent item
declare=res=ue_reservation
res=planned=new=receiptwo
res=planned=addline=<..> (see planned)
res=planned=addline=<...>
if the item is batchnumber-related or warehouse is a bin-warehouse, then you must set this information in the planned document
(example: ...batchnum=A1234<char 9>bincode=1000<char 9>...)
then create the receipt
res=receiptwo
Example
declare=res=ue_reservation
res=planned=new=receiptwo
res=planned=addline=base_doctype=wo<tab>base_docentry=2186<tab>base_linenum=10<tab>base_linenum2=0<tab>itemcode=Jesús<tab>whscode=01<tab>quantity=2<tab>batchnum=111<tab>save
res=receiptwo
if <value> = -1 then
// error handling
end if