Tweaks to improve handling of "missing" items for receiving

This commit is contained in:
Lance Edgar 2023-09-17 18:30:38 -05:00
parent e894d1d1f4
commit 70956a2c47
4 changed files with 27 additions and 1 deletions

View file

@ -96,10 +96,12 @@ class PurchaseCreditView(MasterView):
]
def configure_grid(self, g):
super(PurchaseCreditView, self).configure_grid(g)
super().configure_grid(g)
# vendor
g.set_joiner('vendor', lambda q: q.outerjoin(model.Vendor))
g.set_sorter('vendor', model.Vendor.name)
g.set_filter('vendor', model.Vendor.name, label="Vendor Name")
g.set_sort_defaults('date_received', 'desc')

View file

@ -1935,6 +1935,9 @@ class ReceivingBatchView(PurchasingBatchView):
{'section': 'rattail.batch',
'option': 'purchase.receiving.allow_edit_invoice_unit_cost',
'type': bool},
{'section': 'rattail.batch',
'option': 'purchase.receiving.auto_missing_credits',
'type': bool},
# mobile interface
{'section': 'rattail.batch',