You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15231.up

51 lines
1.5 KiB

use billing;
set autocommit=0;
INSERT INTO email_templates (reseller_id, name, from_email, subject, body)
VALUES
(NULL, 'credit_warning_default_email', '[% adminmail %]',
'Sipwise NGCP credit threshold notification',
'Credit threshold warning for: [% domain %]
The following contracts are below the configured threshold of [% threshold %]:
[% contracts %]
Your faithful Sipwise system
--
This is an automatically generated message. Do not reply.');
INSERT INTO email_templates (reseller_id, name, from_email, subject, body)
VALUES
(NULL, 'customer_fraud_lock_default_email', '[% adminmail %]',
'Customer # [% customer_id %] locked by fraud detection',
'Customer # [% customer_id %] has been locked due to exceeding the configured
credit balance threshold ([% interval_cost %] >= [% interval_limit %]) in the [% type %] settings.
Affected subscribers:
[% subscribers %]
Your faithful Sipwise system
--
This is an automatically generated message. Do not reply.');
INSERT INTO email_templates (reseller_id, name, from_email, subject, body)
VALUES
(NULL, 'customer_fraud_warning_default_email', '[% adminmail %]',
'Customer # [% customer_id %] exceeding fraud detection limit',
'Customer # [% customer_id %] is currently exceeding the configured credit balance
threshold ([% interval_cost %] >= [% interval_limit %]) in the [% type %] settings,
but has not been locked due to configuration.
Affected subscribers:
[% subscribers %]
Your faithful Sipwise system
--
This is an automatically generated message. Do not reply.');
commit;