Discussions
createdFrom Field in cash refund
Hello all,
I am creating Cash Refunds using webServices from our application .
what I am doing :
I get the cashsale, get items and set the refundamt in the item
and create a cashRefund object
CashRefund cashRefund = new CashRefund();
cashRefund.setEntity(customerRecordRef);
cashRefund.setItemList(refundItemList); - list of items that were present in the cashSale
cashRefund.setChargeIt(true);
cashRefund.setCreatedFrom(createdCashsaleRecordRef);
When I set the createdFrom and add this cashRefund, it creates a cashRefund with the items in the 'itemList' and also I see the original items in the cashSale. This happens only when I set the CreatedFrom ,
Is there a way to set this createdFrom and also set amt to be refunded ? so that only the item is refunded once with the amt that I want to refund.