changed type of quantity and amount to BigDecimal