|
|
|
|
@ -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(
|
|
|
|
|
|