Revised the unapplied original line item report to mark matched offsets for administrators when there are unmatched offsets.

This commit is contained in:
2023-04-08 18:52:41 +08:00
parent 1660e66766
commit 79689ac0e5
4 changed files with 29 additions and 4 deletions

View File

@ -90,6 +90,7 @@ class OffsetMatcher:
continue
self.matched_pairs.append(
OffsetPair(original_item, offset_candidates[0]))
original_item.match = offset_candidates[0]
offset_candidates[0].match = original_item
remains.remove(offset_candidates[0])
self.is_having_matches = len(self.matched_pairs) > 0