Changes between Version 2 and Version 3 of GenerateReports


Ignore:
Timestamp:
01/09/26 20:19:04 (11 days ago)
Author:
235018
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenerateReports

    v2 v3  
    8888JOIN works_in_store w ON p.id = w.personal_ID
    8989WHERE w.store_ID='001';
     90
    9091}}}
    9192
    92 **9.** Each boss reviews and signs the report. Once at least one boss signs, the report is considered approved.
     93**9.** The boss, or any boss, can edit the version of the report they recived and update it if they notice that something isn't right.
     94
     95{{{#sql
     96UPDATE report
     97SET overall_profit='33000'
     98WHERE report.date >= DATE_TRUNC('month', CURRENT_DATE) AND
     99report.date < (DATE_TRUNC('month', CURRENT_DATE) + INTERVAL '1 month') AND
     100report.store_ID = '001';
     101
     102}}}
     103
     104
     105**10.** Each boss reviews and signs the report. Once at least one boss signs, the report is considered approved.
    93106
    94107{{{#!sql
     
    96109SET owner_signature = boss.signature
    97110WHERE store_ID='001' AND date = '2025-12-30 00:00:00' AND boss.boss_ID = works_in.personal_ID and works_id.store_ID = '001';
     111
    98112}}}