change submitSaleItem function