repair item batch purchase-sales

alter file on
web/application/controllers
- item_batch.php

web/application/helpers
- purchase_engine.php
- sales_engine.php

web/application/views/retail/
- purchase/js.php
- sales/js.php