Industrial ERP + Generative AI

Bordados Pando

Comprehensive operations management system for the mass embroidery industry. 7 machines monitored in real-time, AI generating photorealistic mockups, and automatic queue optimization for production scheduling.

Next.js 15 React 19 Firebase Genkit AI Gemini 2.5 Flash Tailwind CSS Shadcn/UI

Explore System Modules

Toggle switches to see each ERP component in action

AI Quotation

Gemini Mockups

Workshop Monitor

7 Machines Real-time

Order CRM

Kanban + Pipeline

Sales Dashboard

Analytics + Forecasts

bordadospando.com/quote
Ô£¿ Digital Quote Pro

Bordados Pando

Design Contact Quote

Click or drag your logo

PNG, JPG or SVG

­ƒæò

T-Shirt

$15 base

­ƒºó

Cap

$12 base

­ƒÄÆ

Bag

$18 base

Estimate

$ 675 .00

Range: $607 - $742

Gemini 2.5 Flash

Mockup generation

1

AI Mockup Generation

The quotation system uses Google Gemini 2.5 Flash Image to generate photorealistic mockups of embroidered logos on selected garments.

// Genkit flow for mockup generation

const prompt = ai.definePrompt({

  input: { logoDataUri, productType },

  prompt: `Generate photorealistic embroidery 

    mockup on {{productType}}`

});



const { media } = await prompt({

  model: 'googleai/gemini-2.5-flash-image'

});
2

Volume Discount Algorithm

Tiered discounts: 10% from 50 units, 15% from 100.

Base price (50 units) $750.00
Volume discount (-10%) -$75.00
Total estimate $675.00

Workshop Control Panel

Industrial monitor with 7 machines in real-time ÔÇó Firebase Snapshots

Machine 01

Free

Tajima TF-1501

15 heads ÔÇó 1200 rpm

Machine 02

Busy

Order #A2841

ÔÅ▒´©Å 2h 15m remaining

Machine 03

URGENT

Order #A2902

ÔÜá´©Å Deadline in 4 hours

Machine 04

Maintenance

Out of service

­ƒöº Scheduled check

Machine 05

Free

Machine 06

Busy

Machine 07

Free

Today's Production

24

Ôåæ 12% vs yesterday

Hierarchical Production Queue

Algorithm that automatically sorts by deadline and order criticality

1

ACME Corporation

#A2902 ÔÇó 150 t-shirts ÔÇó Chest + Back

Delivery: Today 18:00

CRITICAL
2

TechConf 2024

#A2895 ÔÇó 75 caps ÔÇó Front

Delivery: Tomorrow 12:00

HIGH
3

FitLife Gym

#A2889 ÔÇó 30 bags ÔÇó 1 side

Delivery: Friday

MEDIUM

Automatic Assignment Algorithm

// Queue optimization - Assigns orders to free machines

const optimizeQueue = async () => {

  const freeMachines = machines.filter(m => m.estado === 'free');

  const pendingQueue = orders.filter(o => o.estado === 'in_queue');

  

  // Sort by deadline (most urgent first)

  pendingQueue.sort((a, b) => 

    a.delivery_date - b.delivery_date

  );

  

  // Assign to free machines

  for (let i = 0; i < freeMachines.length; i++) {

    if (pendingQueue[i]) {

      await assignOrderToMachine(

        pendingQueue[i].id, 

        freeMachines[i].id

      );

    }

  }

};

Order CRM

Complete pipeline with Kanban Drag & Drop

Pending

3
#A2910 New

El Gaucho Restaurant

20 aprons ÔÇó Front logo

$340 2h ago

In Queue

2
#A2902 Urgent

ACME Corporation

150 t-shirts ÔÇó Chest+Back

$2,850 Today 18:00

In Process

2
#A2895

TechConf 2024

75 caps ÔÇó Front

$1,125 Mach. 02

Quality

1
#A2881

Martinez Wedding

50 napkins ÔÇó Initial

$425 QC Pass

Delivered

5
#A2845

Elementary School 15

100 t-shirts

$1,500 Ô£ô Delivered

Client Details

­ƒæñ

ACME Corporation

contact@acme.com

12

Orders

$24K

Total

4.9Ôÿà

Rating

Revert System

Capability to revert assignments to correct operational errors without data loss.

// Revert assignment

const revertAssignment = async (orderId) => {

  const batch = writeBatch(db);

  

  // Free machine

  batch.update(doc(db, 'machines', machineId), {

    status: 'free',

    current_order_id: null

  });

  

  // Return order to queue

  batch.update(doc(db, 'orders', orderId), {

    status: 'in_queue',

    history: arrayUnion({

      action: 'reverted',

      timestamp: serverTimestamp()

    })

  });

  

  await batch.commit();

};

Sales Dashboard

Critical metrics and financial forecasts

Monthly Revenue

$45,230

Ôåæ 23% vs last month

Orders

128

94 completed

Avg. Delivery

2.4d

Ôåô 0.3d optimization

Future Pipeline

$78,500

30-day projection

Revenue vs Target

Jan
Feb
Mar
Apr
May
Jun
Actual
Target

Best Selling Products

1

Premium T-Shirts

42%
2

Trucker Caps

28%
3

Eco Bags

18%
4

Aprons

12%

Portfolio Projection Algorithm

Calculates future value based on orders in queue and in process, considering closing probability.

// Financial projection of future portfolio

const calculateFutureRevenue = () => {

  const pendingOrders = orders.filter(o => 

    o.status === 'pending' || 

    o.status === 'in_queue' ||

    o.status === 'in_process'

  );

  

  const weightedRevenue = pendingOrders.reduce((sum, order) => {

    // Weight by status: closer to delivery = more probable

    const probability = {

      'in_process': 0.95,

      'in_queue': 0.85,

      'pending': 0.70

    }[order.status];

    

    return sum + (order.total * probability);

  }, 0);

  

  return weightedRevenue;

};

System Architecture

Frontend

Next.js 15 + React 19 with Server Components for optimized initial load

Backend

Firebase Firestore with real-time snapshots and integrated authentication

AI

Google Genkit + Gemini 2.5 Flash for image generation

Interested in a similar system for your business?