repair purchase-sales batch

alter file on
web/application/views/retail/
- purchase/js.php
- sales/js.php