Tweak how/when we set "manually priced" status for pricing batch rows
This commit is contained in:
		
							parent
							
								
									2b2a27bf6a
								
							
						
					
					
						commit
						6c8932be4d
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -232,6 +232,11 @@ class PricingBatchHandler(BatchHandler):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        Set the row's status code according to its price diff
 | 
					        Set the row's status code according to its price diff
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 | 
					        # manually priced items are "special" unless batch says to re-calc
 | 
				
			||||||
 | 
					        if row.manually_priced and not row.batch.calculate_for_manual:
 | 
				
			||||||
 | 
					            row.status_code = row.STATUS_PRODUCT_MANUALLY_PRICED
 | 
				
			||||||
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # prefer "% Diff" if batch defines that
 | 
					        # prefer "% Diff" if batch defines that
 | 
				
			||||||
        threshold = row.batch.min_diff_percent
 | 
					        threshold = row.batch.min_diff_percent
 | 
				
			||||||
        if threshold:
 | 
					        if threshold:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue