Add ajax loading bar when search for price from database.
1. Validation before print.
2. Write directly to new window when printing instead of concat first.
3. Handle event when saleType changed.
Initial code for saving transaction.