Skip to content

Commit

Permalink
fix(E Invoice Import): set item to None instead of ""
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Sep 9, 2024
1 parent 20d4a91 commit 0b14680
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def parse_line_item(self, li: "LineItem"):
item_code = frappe.db.get_value(
"Item Supplier", {"supplier": supplier, "supplier_part_no": item.seller_product_id}, "parent"
)
item.item = item_code
item.item = item_code or None

item.billed_quantity = float(li.delivery.billed_quantity._amount)
item.unit_code = str(li.delivery.billed_quantity._unit_code)
Expand Down

0 comments on commit 0b14680

Please sign in to comment.