Hi Vishal,
In addition to the above suggestion, you have to define GL accounts for cash discount received in OBXU and for cash discount granted in OBXI for vendor and customers accordingly. Based on payment terms, if your business partners will follow within the cash discount periods, then system will post additional entry for discounts.
Regards,
Mukthar