fix total amount without discount in backoffice. Fix #235
fix loop cache system. type argument is now a default argument. Fix #234