Expose ship_method and notes_to_vendor for purchase, ordering batch

This commit is contained in:
Lance Edgar 2018-02-22 11:16:33 -06:00
parent 37a788a141
commit d75fe88c44
2 changed files with 8 additions and 0 deletions

View file

@ -69,6 +69,8 @@ class PurchaseView(MasterView):
'date_received', 'date_received',
'po_number', 'po_number',
'po_total', 'po_total',
'ship_method',
'notes_to_vendor',
'invoice_date', 'invoice_date',
'invoice_number', 'invoice_number',
'invoice_total', 'invoice_total',

View file

@ -107,6 +107,12 @@ class OrderingBatchView(PurchasingBatchView):
# purchase # purchase
f.remove_field('purchase') f.remove_field('purchase')
def get_batch_kwargs(self, batch, mobile=False):
kwargs = super(OrderingBatchView, self).get_batch_kwargs(batch, mobile=mobile)
kwargs['ship_method'] = batch.ship_method
kwargs['notes_to_vendor'] = batch.notes_to_vendor
return kwargs
def worksheet(self): def worksheet(self):
""" """
View for editing batch row data as an order form worksheet. View for editing batch row data as an order form worksheet.