fix bugs: F1 conflict

fix bugs:
- check sales and purchase edit processing algorithm
- minor