Expose ship_method and notes_to_vendor for purchase, ordering batch
				
					
				
			This commit is contained in:
		
							parent
							
								
									37a788a141
								
							
						
					
					
						commit
						d75fe88c44
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -69,6 +69,8 @@ class PurchaseView(MasterView):
 | 
			
		|||
        'date_received',
 | 
			
		||||
        'po_number',
 | 
			
		||||
        'po_total',
 | 
			
		||||
        'ship_method',
 | 
			
		||||
        'notes_to_vendor',
 | 
			
		||||
        'invoice_date',
 | 
			
		||||
        'invoice_number',
 | 
			
		||||
        'invoice_total',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -107,6 +107,12 @@ class OrderingBatchView(PurchasingBatchView):
 | 
			
		|||
        # 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):
 | 
			
		||||
        """
 | 
			
		||||
        View for editing batch row data as an order form worksheet.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue