fixed checking of credit note sale date in relation to invoice sale date