diff --git a/tailbone/templates/purchases/batches/order_form.mako b/tailbone/templates/purchases/batches/order_form.mako index cb56a15a..e6ca382a 100644 --- a/tailbone/templates/purchases/batches/order_form.mako +++ b/tailbone/templates/purchases/batches/order_form.mako @@ -196,10 +196,10 @@ % if data: <% item = data['items'].get(cost.product_uuid) %> % if item: - % if data['purchase']['date_ordered'] and (item['cases_ordered'] is not None or item['units_ordered'] is not None): - ${'{} / {}'.format(int(item['cases_ordered'] or 0), int(item['units_ordered'] or 0))} - % elif item['cases_received'] is not None or item['units_received'] is not None: + % if item['cases_received'] is not None or item['units_received'] is not None: ${'{} / {}'.format(int(item['cases_received'] or 0), int(item['units_received'] or 0))} + % elif item['cases_ordered'] is not None or item['units_ordered'] is not None: + ${'{} / {}'.format(int(item['cases_ordered'] or 0), int(item['units_ordered'] or 0))} % endif % endif % endif