Improve backend

This commit is contained in:
Urtzi Alfaro
2025-11-18 07:17:17 +01:00
parent d36f2ab9af
commit 5c45164c8e
61 changed files with 9846 additions and 495 deletions

View File

@@ -1,19 +1,20 @@
{
"hero": {
"pre_headline": "For Bakeries Losing €500-2,000/Month on Waste",
"pre_headline": "For Bakeries Losing Money on Waste",
"scarcity": "Only 12 spots left out of 20 • 3 months FREE",
"scarcity_badge": "🔥 Only 12 spots left out of 20 in pilot program",
"badge": "Advanced AI for Modern Bakeries",
"title_line1": "Increase Profits,",
"title_line2": "Reduce Waste",
"title_option_a_line1": "Save €500-2,000 Per Month",
"title_option_a_line2": "By Producing Exactly What You'll Sell",
"title_option_a_line1": "Produce Exactly What You'll Sell",
"title_option_a_line2": "and Save Thousands",
"title_option_b": "Stop Guessing How Much to Bake Every Day",
"subtitle": "AI that predicts demand using local data so you produce exactly what you'll sell. Reduce waste, improve margins, save time.",
"subtitle_option_a": "The first AI that knows your neighborhood: nearby schools, local weather, your competition, events. Automatic system every morning. Ready at 6 AM.",
"subtitle_option_a": "AI that knows your neighborhood. Predictions ready every morning at 6 AM.",
"subtitle_option_b": "AI that knows your area predicts sales with 92% accuracy. Wake up with your plan ready: what to make, what to order, when it arrives. Save €500-2,000/month on waste.",
"cta_primary": "Join Pilot Program",
"cta_secondary": "See How It Works (2 min)",
"cta_demo": "See Demo",
"social_proof": {
"bakeries": "20 bakeries already saving €1,500/month on average",
"accuracy": "92% accurate predictions (vs 60% generic systems)",

View File

@@ -97,6 +97,7 @@
},
"actions": {
"approve": "Approve",
"reject": "Reject",
"view_details": "View Details",
"modify": "Modify",
"dismiss": "Dismiss",

View File

@@ -16,7 +16,26 @@
"steps": {
"productType": "Product Type",
"basicInfo": "Basic Information",
"stockConfig": "Stock Configuration"
"stockConfig": "Stock Configuration",
"initialStock": "Initial Stock"
},
"initialStockDescription": "Add one or more lots to register the initial inventory",
"stockConfig": {
"product": "Product",
"totalQuantity": "Total Quantity",
"totalValue": "Total Value",
"lotsRegistered": "Lots Registered",
"lot": "Lot",
"remove": "Remove",
"quantity": "Quantity",
"unitCost": "Unit Cost ($)",
"lotNumber": "Lot Number",
"expirationDate": "Expiration Date",
"location": "Location",
"lotValue": "Lot value:",
"addInitialLot": "Add Initial Lot",
"addAnotherLot": "Add Another Lot",
"skipMessage": "You can skip this step if you prefer to add the initial stock later"
},
"typeDescriptions": {
"ingredient": "Raw materials and ingredients used in recipes",
@@ -499,6 +518,125 @@
}
}
},
"salesEntry": {
"title": "Sales Record",
"steps": {
"entryMethod": "Entry Method",
"entryMethodDescription": "Choose how to register sales",
"manualEntry": "Enter Data",
"manualEntryDescription": "Record sale details",
"fileUpload": "Upload File",
"fileUploadDescription": "Import sales from file",
"review": "Review",
"reviewDescription": "Confirm data before saving"
},
"entryMethod": {
"title": "How do you want to register sales?",
"subtitle": "Choose the method that best suits your needs",
"manual": {
"title": "Manual Entry",
"description": "Enter one or more sales individually",
"benefits": {
"1": "Ideal for daily totals",
"2": "Detailed control per sale",
"3": "Easy and fast"
}
},
"file": {
"title": "Upload File",
"description": "Import from Excel or CSV",
"recommended": "⭐ Recommended for historical data",
"benefits": {
"1": "Ideal for historical data",
"2": "Bulk upload (hundreds of records)",
"3": "Saves significant time"
}
}
},
"manualEntry": {
"title": "Record Manual Sale",
"subtitle": "Enter sale details",
"fields": {
"saleDate": "Sale Date",
"paymentMethod": "Payment Method",
"notes": "Notes (Optional)",
"notesPlaceholder": "Additional information about this sale..."
},
"products": {
"title": "Products Sold",
"addProduct": "+ Add Product",
"loading": "Loading products...",
"noFinishedProducts": "No finished products available",
"addToInventory": "Add products to inventory first",
"noProductsAdded": "No products added",
"clickToBegin": "Click 'Add Product' to begin",
"selectProduct": "Select product...",
"quantity": "Qty.",
"price": "Price",
"removeProduct": "Remove product",
"total": "Total:"
}
},
"fileUpload": {
"title": "Upload Sales File",
"subtitle": "Import your sales from Excel or CSV",
"downloadTemplate": "Download CSV Template",
"downloading": "Downloading...",
"dragDrop": {
"title": "Drag a file here",
"subtitle": "or click to select",
"button": "Select File",
"supportedFormats": "Supported formats: CSV, Excel (.xlsx, .xls)"
},
"validated": {
"title": "✓ File validated successfully",
"recordsFound": "Records found:",
"validRecords": "Valid records:",
"errors": "Errors:"
},
"validateButton": "Validate File",
"validating": "Validating...",
"importButton": "Import Data",
"importing": "Importing...",
"instructions": {
"title": "The file must contain the columns:",
"columns": "date, product, quantity, unit_price, payment_method"
}
},
"review": {
"title": "Review and Confirm",
"subtitle": "Verify that all information is correct",
"fields": {
"date": "Date:",
"paymentMethod": "Payment Method:",
"products": "Products",
"total": "Total:",
"notes": "Notes:"
},
"imported": {
"title": "✓ File imported successfully",
"recordsImported": "Records imported:",
"recordsFailed": "Records failed:"
}
},
"paymentMethods": {
"cash": "Cash",
"card": "Card",
"mobile": "Mobile Payment",
"transfer": "Transfer",
"other": "Other"
},
"messages": {
"errorObtainingTenantInfo": "Could not obtain tenant information",
"errorLoadingProducts": "Error loading products",
"salesEntryCreatedSuccessfully": "Sales entry created successfully",
"errorCreatingSalesEntry": "Error creating sales entry",
"errorValidatingFile": "Error validating file",
"errorImportingFile": "Error importing file",
"fileValidatedSuccessfully": "File validated successfully",
"fileImportedSuccessfully": "File imported successfully"
}
},
"tooltips": {
"averageCost": "Average cost per unit based on purchase history",
"standardCost": "Standard/expected cost per unit for costing calculations",