Quellcode durchsuchen

feat: restore base fee and set it to 10.0 EUR

unknown vor 2 Monaten
Ursprung
Commit
107efa14f6
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      backend/services/pricing.py
  2. 1 1
      src/components/ModelUploadSection.vue

+ 1 - 1
backend/services/pricing.py

@@ -35,7 +35,7 @@ def calculate_estimated_price(material_id: int, file_sizes: List[int], file_quan
 
     estimated_total = 0.0
     file_costs = []
-    base_fee = 0.0 # No setup fee
+    base_fee = 10.0 # Setup fee
 
     for size, qty in zip(file_sizes, file_quantities):
         total_size_mb = size / (1024 * 1024)

+ 1 - 1
src/components/ModelUploadSection.vue

@@ -399,7 +399,7 @@ watch(selectedMaterial, (newVal) => {
 });
 // --- PRICING CONSTANTS (Must match backend/services/pricing.py) ---
 const PRICING_CONFIG = {
-  BASE_FEE: 0.0,
+  BASE_FEE: 10.0,
   VOLUME_PROXY_COEFF: 8.0, // cm3 per 1MB of STL
   MAX_DISCOUNT: 0.20,
   DISCOUNT_PER_ITEM: 0.05