Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- appController.service.getInvoiceProviderByNumber(tbNewInvoice.getValue(),
- new AsyncCallback<InvoiceProvider>() {
- @Override
- public void onSuccess(InvoiceProvider res) {
- if (res == null) {
- InvoiceProvider ip = new InvoiceProvider();
- ip.setReference(order.getName());
- }
- editInvoice(ip);
- } else {
- editInvoice(res);
- }
- btnEditNewInvoice.setEnabled(true);
- }
- @Override
- public void onFailure(Throwable caught) {
- System.out.println("Cannot communicate with the server ! " + caught);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement