From e3d6302978803cb4a58d0289d1efd0fde64f268a Mon Sep 17 00:00:00 2001 From: Dinuka_prasad <127348943+DinukaPrasad@users.noreply.github.com> Date: Thu, 27 Mar 2025 20:20:14 +0530 Subject: [PATCH] add shipping feature --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index 1df8c46..a884191 100644 --- a/src/main.py +++ b/src/main.py @@ -12,6 +12,8 @@ def validorder(order: Order): net += item.amount elif item.type == "product": net -= item.amount * item.quantity + elif item.type == "product": + net -= item.amount else: return "Invalid item type: %s" % item.type