generate purchase order price calculate automatically