Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // specify amount for return
- BigDecimal amountToRefund = new BigDecimal(10);
- // specify amount currency
- Currency currencyOfSale = Currency.getInstance("EUR");
- // perform sale Return (Refund)
- accept.sales()
- .saleReturn(Collections.singletonList(new CashTransactionForReturn(amountToRefund, cashRegister.getId())), originalSaleID, currencyOfSale, null, true, null)
- .subscribe(sale -> {
- // Returned Sale detail
- },
- throwable -> {
- // handle error
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement