Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Modify db repair to harmonize w/ new condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre authored and rohitpaulk committed Apr 4, 2016
1 parent 40564a6 commit bb3439e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/branch.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
BEGIN;
UPDATE payment_instructions SET due = 0 WHERE amount = 0 AND due != 0;
UPDATE payment_instructions SET due = floor(9.41/(amount)) * amount WHERE due > 9.41;
UPDATE payment_instructions SET due = 0 WHERE due > 9.41;
END;

0 comments on commit bb3439e

Please sign in to comment.