Skip to content
Snippets Groups Projects
Commit eee48086 authored by Robert Anderson's avatar Robert Anderson
Browse files

Added missing mod_config_sql_topups to config

Added mod_config_sql_topups queries to config
parent c66781b2
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,7 @@ EOT
[system]
modules=<<EOT
mod_config_sql
mod_config_sql_topups
EOT
......@@ -138,6 +139,43 @@ get_config_query=<<EOT
EOT
# MOD_CONFIG_SQL_TOPUPS
[mod_config_sql_topups]
get_topups_summary_query=<<EOT
SELECT
@TP@topups_summary.Balance,
@TP@topups.Type,
@TP@topups.ID
FROM
@TP@topups_summary,
@TP@topups,
@TP@users
WHERE
@TP@topups.ID = @TP@topups_summary.TopupID
AND @TP@topups.UserID = @TP@users.ID
AND @TP@topups_summary.PeriodKey = ?
AND @TP@topups.Depleted = 0
AND @TP@users.Username = ?
EOT
get_topups_query=<<EOT
SELECT
@TP@topups.ID,
@TP@topups.Type,
@TP@topups.Value
FROM
@TP@topups,
@TP@users
WHERE
@TP@topups.UserID = @TP@users.ID
AND @TP@topups.ValidFrom >= ?
AND @TP@topups.ValidTo >= ?
AND @TP@topups.Depleted = 0
AND @TP@users.Username = ?
EOT
# MOD_ACCOUNTING_SQL
[mod_accounting_sql]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment