Skip to content

Commit 5e69302

Browse files
author
Dakshina Ranmal
committed
Add GITIGNORE and Consider shipping while calculating
1 parent e8378a5 commit 5e69302

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def validorder(order: Order):
1212
net += item.amount
1313
elif item.type == "product":
1414
net -= item.amount * item.quantity
15+
elif item.type == "shipping":
16+
net -= item.amount
1517
else:
1618
return "Invalid item type: %s" % item.type
1719

0 commit comments

Comments
 (0)