Expose ship_method
and notes_to_vendor
for purchase, ordering batch
This commit is contained in:
parent
37a788a141
commit
d75fe88c44
|
@ -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',
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue