🌐 stslaredo.com
?
β€”
β€”
Daily Entry
Sorting Inspection Form
βš™οΈ One-Time Google Sheets Setup
  1. Open Google Sheets β†’ create a spreadsheet named "STS Inspections"
  2. Extensions β†’ Apps Script β†’ paste code below β†’ Deploy β†’ New deployment β†’ Web App β†’ Anyone β†’ Deploy β†’ copy URL
  3. Paste the URL below and Save Config
πŸ“‹ Apps Script code
function doPost(e) {
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  var data = JSON.parse(e.postData.contents);
  if (sheet.getLastRow() === 0) {
    sheet.appendRow(["Form ID","Date","Customer Code","Customer Name",
      "Service Start","Service End","Part Number","Serial Numbers",
      "Lot Numbers","Mfg Date","Inspected","Approved","Rejected",
      "Reworked","Defect Summary","# People","Total Hours","Notes","Submitted By"]);
  }
  sheet.appendRow([data.formId,data.submitDate,data.customerCode,
    data.customerName,data.serviceStart,data.serviceEnd,data.partNumber,
    data.serialNumbers,data.lotNumbers,data.mfgDate,data.inspected,
    data.approved,data.rejected,data.reworked,data.defectSummary,
    data.numPeople,data.totalHours,data.notes,data.submittedBy]);
  return ContentService.createTextOutput(JSON.stringify({result:"ok"}))
    .setMimeType(ContentService.MimeType.JSON);
}
βœ” Saved!
Job
Customer
πŸ”©
Part Information
01
# Part Number * Part Description Defects
Add rows:
πŸ“Š
Inspection Results
02
⚑ Inspected, Approved & Rejected are auto-calculated from the OK + NOK totals in the defect table below. Enter Reworked manually if needed.
πŸ” Inspected
βœ” Approved (OK)
βœ– Rejected (NOK)
πŸ”§ Reworked
⚠️
Defect Breakdown & Serial / Lot Numbers
03
# Part Number Mfg Date Serial Number Lot & Batch # Defect Description OK NOK
Totals 0 0
Add rows:
Type a number and press Enter, or click + Add Rows
πŸ‘·
Personnel & Hours
04
↳ Rows appear below
#Name / Employee IDRoleHours Worked
Total Hours: 0.00
πŸ“Έ
Photo Evidence
05

Upload photos of parts, defects, or any visual evidence. Photos are embedded directly in this session and the PDF β€” they are never saved to your device.

πŸ“·
Tap to take a photo or choose files
or drag & drop images here Β· JPG, PNG, HEIC
πŸ“
Notes & Observations
06
Submit daily β€” each submission = one row in Google Sheets.
Customer info stays filled. Admin can download PDF from Overview.
Admin
Service Overview
Select a Quote to view its summary
πŸ“‹
All Submissions
πŸ“­
No submissions yet.
πŸ“–
Portal Guide & Setup
πŸ‘€ User Roles
Admin β€” Full access: create jobs, view all submissions, manage client access, payroll, delete reports.
Operator (STS) β€” Sees only STS jobs. Submits inspections, edits own reports. No delete.
Operator 2 (SLI) β€” Same as Operator but sees only SLI jobs.
Client β€” Read-only portal. Sees reports grouped by Month β†’ Job β†’ Submission. Only available after admin releases.

πŸ—‚ Job ID System
Format: STS042026 = Company + Month (MM) + Sequence + Year (YYYY).
Sequence resets every month. Each company (STS / SLI) counts independently.
Admin creates jobs β€” operators just pick from the list. One job per company per sequence number, no duplicates.

πŸ“‹ Inspection Workflow
1. Admin creates a Job (πŸ—‚ Jobs tab) with client info, dates, description.
2. Operator logs in β†’ selects their job β†’ customer info auto-fills β†’ form is hidden.
3. Operator fills Part Info, Defects, Personnel, Photos β†’ submits.
4. Admin reviews in Overview β†’ filter by job to see totals for that specific service.
5. Admin goes to Clients tab β†’ finds the client β†’ clicks Release to Client.
6. Client logs in and sees their reports organized by Month and Job.

🌐 Wix Integration
Option 1 β€” Button link (Recommended): In Wix Editor, add a button β†’ set link to portal.stslaredo.com β†’ opens in new tab.
Option 2 β€” iFrame embed: Add Elements β†’ Embed & Social β†’ iFrame β†’ paste portal URL. Set width 100%, height 900px.

⚠️ Important Notes
β€’ Photos are compressed automatically before saving β€” large photo sets are handled safely.
β€’ Submissions are linked to jobs. Deleting a job does not delete its submissions.
β€’ The Clear All Data function has been removed for safety. Contact your developer to delete records.
β€’ Client portal is always in Spanish. Admin/Operator portal is in English.
β€”
Select a day to view inspections
πŸ“…
Click any highlighted day.
Quote Management
Quotes
πŸ—‚
Create New Job
Quotes
πŸ—‚
No quotes yet.
Admin
Client Directory
πŸ“
No clients yet. Submit an inspection form to populate the directory.
πŸ”©
Service History by Part Number
πŸ“‹
All Submissions for This Client
Admin
Payroll β€” Hours by Operator
Total Hours Logged
β€”
Total Operators
β€”
Weeks on Record
β€”
Filter week:
πŸ’°
No payroll data yet. Submit inspection forms with personnel hours to see payroll breakdown.
Admin
Settings
πŸ”‘
User Credentials

To change passwords, open the HTML file in any text editor and find the USERS object at the top of the script.

const USERS = {
  'sebastian.loera': { pass: 'Loer@0801',  role: 'operator', name: 'Sebastian Loera', company: 'all' },
  'jesus.arevalo':   { pass: 'sli2026',    role: 'operator', name: 'Jesus Arevalo',   company: 'sli' },
  admin:             { pass: 'sts@admin',  role: 'admin',    name: 'Admin',           company: 'all' },
  'cesar.loera':     { pass: 'Loer@0321',  role: 'admin2',   name: 'Cesar Loera',     company: 'sts' },
  'victor.loera':    { pass: 'sts@admin3', role: 'admin3',   name: 'Victor Loera',    company: 'sli' },
};
πŸ—„οΈ
Google Sheets Config
βœ” Saved!
C
β€”
Client
Portal de Cliente
Sus Reportes
⏳
Loading your reports…
β€” β€”