Tweak how/when we set "manually priced" status for pricing batch rows

This commit is contained in:
Lance Edgar 2020-08-09 16:17:14 -05:00
parent 2b2a27bf6a
commit 6c8932be4d

View file

@ -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: