Changeset 6c8932be in rattail


Ignore:
Timestamp:
08/09/2020 04:17:14 PM (3 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
46dfb3f
Parents:
2b2a27b
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/batch/pricing.py

    r2b2a27b r6c8932be  
    233233        Set the row's status code according to its price diff
    234234        """
     235        # manually priced items are "special" unless batch says to re-calc
     236        if row.manually_priced and not row.batch.calculate_for_manual:
     237            row.status_code = row.STATUS_PRODUCT_MANUALLY_PRICED
     238            return
     239
    235240        # prefer "% Diff" if batch defines that
    236241        threshold = row.batch.min_diff_percent
Note: See TracChangeset for help on using the changeset viewer.