Skip to content
jsn.devPortuguês
Close

Sales reports

Builds the report and emails it on schedule

  1. 1. Problem

    Building the same sales report by hand takes time. The idea came from a real problem.

    d2 to d4, d7 to d5

  2. 2. Decision

    I split the work into steps: read sales from a SQLite database, build the spreadsheet, email it and schedule it.

    c2 to c4, e7 to e6

  3. 3. Care

    Passwords stay out of the code. If there are no sales in the period, nothing is sent, and one failure does not stop the schedule.

    b1 to c3, g8 to f6

  4. 4. Result

    I built the structure and stopped halfway. I finished it later with AI help, and it now goes from query to email.

    c1 to g5, f8 to e7

Queen's Gambit

See the code