Add description, notes for pricing batches
This commit is contained in:
		
							parent
							
								
									aea4379fe4
								
							
						
					
					
						commit
						c7855f2ca5
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -49,6 +49,7 @@ class PricingBatchView(BatchMasterView):
 | 
			
		|||
 | 
			
		||||
    grid_columns = [
 | 
			
		||||
        'id',
 | 
			
		||||
        'description',
 | 
			
		||||
        'created',
 | 
			
		||||
        'created_by',
 | 
			
		||||
        'rowcount',
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +77,9 @@ class PricingBatchView(BatchMasterView):
 | 
			
		|||
        fs.configure(
 | 
			
		||||
            include=[
 | 
			
		||||
                fs.id,
 | 
			
		||||
                fs.description,
 | 
			
		||||
                fs.min_diff_threshold,
 | 
			
		||||
                fs.notes,
 | 
			
		||||
                fs.created,
 | 
			
		||||
                fs.created_by,
 | 
			
		||||
                fs.executed,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -517,7 +517,9 @@ class ProductsView(MasterView):
 | 
			
		|||
        Pricing Batch.
 | 
			
		||||
        """
 | 
			
		||||
        class PricingParamsForm(wtforms.Form):
 | 
			
		||||
            description = wtforms.StringField()
 | 
			
		||||
            min_diff_threshold = wtforms.DecimalField(places=2, validators=[wtforms.validators.optional()])
 | 
			
		||||
            notes = wtforms.TextAreaField()
 | 
			
		||||
 | 
			
		||||
        return PricingParamsForm(self.request.POST)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue