Use "warning" status for pricing batch rows, where product not found
This commit is contained in:
		
							parent
							
								
									e99f225def
								
							
						
					
					
						commit
						e153e530a8
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -179,7 +179,8 @@ class PricingBatchView(BatchMasterView):
 | 
			
		|||
        return vendor_id
 | 
			
		||||
 | 
			
		||||
    def row_grid_extra_class(self, row, i):
 | 
			
		||||
        if row.status_code == row.STATUS_CANNOT_CALCULATE_PRICE:
 | 
			
		||||
        if row.status_code in (row.STATUS_PRODUCT_NOT_FOUND,
 | 
			
		||||
                               row.STATUS_CANNOT_CALCULATE_PRICE):
 | 
			
		||||
            return 'warning'
 | 
			
		||||
        if row.status_code in (row.STATUS_PRICE_INCREASE, row.STATUS_PRICE_DECREASE):
 | 
			
		||||
            return 'notice'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue