diff --git a/src/sql/0-run-first/billing.sql b/src/sql/0-run-first/billing.sql index 8008b39..caaea6c 100644 --- a/src/sql/0-run-first/billing.sql +++ b/src/sql/0-run-first/billing.sql @@ -8,11 +8,13 @@ SELECT pkey, accepted_date, (qty * default_price) AS fee, invoice_accepted -FROM billing; +FROM billing +where invoice_accepted = 1; + CREATE INDEX ref_num ON billing_report (refNumber); CREATE INDEX div_idx ON billing_report (division); -# So this little ditty will replace the raw proejct_type info with a prettified string. Only problem is it takes more than +# So this little ditty will replace the raw project_type info with a prettified string. Only problem is it takes more than # 10 minutes to run on our t3a.micro ec2 instance. # UPDATE billing_report # SET division = IF(