projects
/
contrib
/
pines.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be6641
)
we need to only void overdue fines accrued on those dates
author
Chris Sharp
<csharp@georgialibraries.org>
Mon, 4 Jan 2016 19:49:37 +0000
(14:49 -0500)
committer
Chris Sharp
<csharp@georgialibraries.org>
Mon, 4 Jan 2016 19:49:37 +0000
(14:49 -0500)
batch_void_fines.sh
patch
|
blob
|
history
diff --git
a/batch_void_fines.sh
b/batch_void_fines.sh
index
eb84c27
..
8c87f69
100755
(executable)
--- a/
batch_void_fines.sh
+++ b/
batch_void_fines.sh
@@
-91,7
+91,8
@@
fi
read -d '' SYSTEM_Q <<END_OF_Q
SELECT * INTO $BACKUP_TABLE
FROM money.billing mb
-WHERE date(billing_ts) IN (
+WHERE btype = 1
+AND date(billing_ts) IN (
'$DATE'
) AND voided = FALSE
AND EXISTS (
@@
-109,7
+110,8
@@
END_OF_Q
read -d '' BRANCH_Q <<END_OF_Q
SELECT * INTO $BACKUP_TABLE
FROM money.billing mb
-WHERE date(billing_ts) IN (
+WHERE btype = 1
+AND date(billing_ts) IN (
'$DATE'
) AND voided = FALSE
AND EXISTS (