fix error in purchase and sales