Skip to content

Commit

Permalink
fix: ignore 0 qty items in orders (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjFaLk authored Oct 14, 2022
1 parent 9608fee commit 005f32e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shipstation_integration/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ def create_erpnext_order(
order_items = frappe.get_attr(process_order_items_hook[0])(order_items)

for item in order_items:

if item.quantity < 1:
continue

settings = frappe.get_doc("Shipstation Settings", store.parent)
item_code = create_item(item, settings=settings, store=store)
item_notes = get_item_notes(item)
Expand Down

0 comments on commit 005f32e

Please sign in to comment.