Fixed error introduced in ff3c5dc

This commit is contained in:
Raphael Michel
2016-08-14 21:05:18 +02:00
parent e90fd57ca3
commit fac9926542

View File

@@ -227,6 +227,7 @@ class ImportView(EventPermissionRequiredMixin, TemplateView):
order = orders[row['code']]
row['order'] = order
if order.status == Order.STATUS_PENDING:
amount = Decimal(row['amount'])
if amount != order.total:
row['class'] = 'danger'
row['message'] = _('Found wrong amount. Expected: %s' % str(order.total))