Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // specify amount for return
  2. BigDecimal amountToRefund = new BigDecimal(10);
  3. // specify amount currency
  4. Currency currencyOfSale = Currency.getInstance("EUR");
  5.  
  6. // perform sale Return (Refund)
  7. accept.sales()
  8. .saleReturn(Collections.singletonList(new CashTransactionForReturn(amountToRefund, cashRegister.getId())), originalSaleID, currencyOfSale, null, true, null)
  9. .subscribe(sale -> {
  10. // Returned Sale detail
  11. },
  12. throwable -> {
  13. // handle error
  14. }
  15. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement