Skip to content

Commit

Permalink
Skip itemsuppliers for suppliers that have been archived or excluded …
Browse files Browse the repository at this point in the history
…for whatever other reason
  • Loading branch information
jdetaeye committed Feb 16, 2024
1 parent dd71ecd commit 104e8e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frepple/controllers/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,10 @@ def export_items(self):
)
suppliers = {}
for sup in results:
name = self.map_customers.get(sup["partner_id"][0])
name = self.map_customers.get(sup["partner_id"][0], None)
if not name:
# Skip uninterested suppliers (eg archived ones)
continue
if sup.get("is_subcontractor", False):
if not hasattr(tmpl, "subcontractors"):
tmpl["subcontractors"] = []
Expand Down

0 comments on commit 104e8e7

Please sign in to comment.