Issue during "Order Receipt issue" in Libero Manufacturing

60 views
Skip to first unread message

Guangwei Wei

unread,
Jul 6, 2018, 11:14:42 AM7/6/18
to iDempiere
ID version: 5.1
I had use latest plugin of Libero Manufacturing (org.lib.mfg4)

When i tried to use "Order Receipt issue", i had input the following parameters.


And i tried to debug the related program (.org.libero.form.WOrderReceiptIssue.java)


After it run "result = Messagebox.show(Msg.getMsg(Env.getCtx(), "Update"),"",Messagebox.OK|Messagebox.CANCEL,Messagebox.QUESTION);"

but the message box was not showed to us to choose option and the value of results was set to 1 directly!



And it have the same error for message box "Is close document".


So when we tried to goods receipt, the order will always update and close manufacturing order.

As message box was not showed us to choose before it get value.


Did you got the similar issues?

ferry.ir...@gmail.com

unread,
Feb 23, 2019, 3:16:10 AM2/23/19
to iDempiere
Yup, I got the same condition but still search for slolution :)

ferry.ir...@gmail.com

unread,
Feb 23, 2019, 5:24:58 AM2/23/19
to iDempiere
I got solution from source org.libero.manufacturing. Maybe the source of`WOrderReceiptIssue.java is not the latest one

This is the solution

//-->Ferry 
Messagebox.show(Msg.getMsg(Env.getCtx(), "Update"), "", Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION, new org.zkoss.zk.ui.event.EventListener() 
{
    public void onEvent(Event evt) throws InterruptedException {
        if (evt.getName().equals("onOK")) {
       
Messagebox.show(Msg.parseTranslation(Env.getCtx(),"@IsCloseDocument@ : "+  getPP_Order().getDocumentNo()), "", Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION, new org.zkoss.zk.ui.event.EventListener() 
{
    public void onEvent(Event evt) throws InterruptedException {
        if (evt.getName().equals("onOK")) {
        cmd_process(true, issue);
dispose();
return;
        } else {
        cmd_process(false, issue);
dispose();
        }
    
    }
});        
return;
        } else {
Messagebox.show(Msg.getMsg(Env.getCtx(), "Cancel"),"Info", Messagebox.OK, Messagebox.INFORMATION);
return;
        }
    
    }
});
            /*
int result = -1;
result = Messagebox.show(Msg.getMsg(Env.getCtx(), "Update"),"",Messagebox.OK|Messagebox.CANCEL,Messagebox.QUESTION);
if ( result == 1)
{
final boolean isCloseDocument = (Messagebox.show(Msg.parseTranslation(Env.getCtx(),"@IsCloseDocument@ : "+  getPP_Order().getDocumentNo()),"",Messagebox.OK|Messagebox.CANCEL,Messagebox.QUESTION) == Messagebox.OK); //"@IsCloseDocument@ : &&&&"
if (cmd_process(isCloseDocument, issue))
{
dispose();
return;
}
//Clients.showBusy(TabsReceiptsIssue, null);
}*/
//<--
Reply all
Reply to author
Forward
0 new messages