🎉 Initial commit - Hazard Odoo 16 project
- Custom modules: hazard_shopify, hazard_inventory_report, hazard_website - Third-party modules: bi_sql_editor, query_deluxe, sql_request_abstract, l10n_mx_sat_sync_itadmin_ee - Docker setup: Odoo 16 + PostgreSQL 17 - Utility scripts: backup_hazard.sh, update_module.py - Agent configuration: .agents/AGENTS.md - Security: Enterprise modules, credentials, backups and production data excluded via .gitignore
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import csv
|
||||
from collections import defaultdict
|
||||
|
||||
filename = 'orders_export_1 (8)(1).csv'
|
||||
|
||||
total = 0
|
||||
with open(filename, 'r', encoding='utf-8-sig') as f:
|
||||
reader = csv.DictReader(f)
|
||||
for row in reader:
|
||||
name = row.get('Lineitem name', '').upper()
|
||||
if 'CLUB 78' in name:
|
||||
price = float(row.get('Lineitem price') or 0)
|
||||
qty = int(row.get('Lineitem quantity') or 0)
|
||||
discount = float(row.get('Lineitem discount') or 0)
|
||||
total += (price * qty) - discount
|
||||
print(f"Total 'CLUB 78': {total}")
|
||||
Reference in New Issue
Block a user