diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index 7d21abb2..7b602523 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -666,6 +666,13 @@ class ReceivingBatchView(PurchasingBatchView): super(ReceivingBatchView, self).configure_row_grid(g) g.set_label('department_name', "Department") + # hide 'ordered' columns for truck dump parent, since that batch type + # is only concerned with receiving + batch = self.get_instance() + if batch.is_truck_dump_parent(): + g.hide_column('cases_ordered') + g.hide_column('units_ordered') + def configure_row_form(self, f): super(ReceivingBatchView, self).configure_row_form(f) f.set_readonly('cases_ordered')