mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-01 17:53:49 +00:00
billing support for destination objects
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
$text['description-destination_description']['en-us'] = "Enter a description for this destination (optional).";
|
||||
$text['description-destination_description']['es-cl'] = "Ingrese una descripción para este destino (opcional)";
|
||||
$text['description-destination_description']['pt-pt'] = "Introduza uma descrição para este destino (opcional).";
|
||||
$text['description-destination_description']['fr-fr'] = "";
|
||||
$text['description-destination_description']['fr-fr'] = "Entrez une description pour cette destination (facultative).";
|
||||
|
||||
$text['label-true']['en-us'] = "True";
|
||||
$text['label-true']['es-cl'] = "Verdadero";
|
||||
@@ -142,6 +142,16 @@
|
||||
$text['label-false']['pt-pt'] = "Não";
|
||||
$text['label-false']['fr-fr'] = "Non";
|
||||
|
||||
$text['label-monthly_price']['en-us'] = "Monthly price";
|
||||
$text['label-monthly_price']['es-cl'] = "Precio mensual";
|
||||
$text['label-monthly_price']['pt-pt'] = "Preço mensal";
|
||||
$text['label-monthly_price']['fr-fr'] = "Prix mensuel";
|
||||
|
||||
$text['description-monthly_price']['en-us'] = "Enter monthly price to bill for this destination (only when inbound)";
|
||||
$text['description-monthly_price']['es-cl'] = "Ingrese el precio mensual a cobrar por este destino (sólo entrante)";
|
||||
$text['description-monthly_price']['pt-pt'] = "Digite o preço mensal de conta para este destino (somente quando entrada)";
|
||||
$text['description-monthly_price']['fr-fr'] = "Entrez prix mensuel de projet de loi pour cette destination (uniquement lorsque entrant)";
|
||||
|
||||
$text['button-add']['en-us'] = "Add";
|
||||
$text['button-add']['es-cl'] = "Agregar";
|
||||
$text['button-add']['pt-pt'] = "Adicionar";
|
||||
@@ -202,4 +212,4 @@
|
||||
$text['message-duplicate']['pt-pt'] = "Duplicar detectado";
|
||||
$text['message-duplicate']['fr-fr'] = "Dupliquer détecté";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
@@ -34,6 +35,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
||||
require_once "app/billings/functions.php";
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
@@ -61,6 +66,8 @@ else {
|
||||
$fax_uuid = check_str($_POST["fax_uuid"]);
|
||||
$destination_enabled = check_str($_POST["destination_enabled"]);
|
||||
$destination_description = check_str($_POST["destination_description"]);
|
||||
$destination_sell = check_str($_POST["destination_sell"]);
|
||||
$currency = check_str($_POST["currency"]);
|
||||
}
|
||||
|
||||
//unset the db_destination_number
|
||||
@@ -283,6 +290,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$fax_uuid = $row["fax_uuid"];
|
||||
$destination_enabled = $row["destination_enabled"];
|
||||
$destination_description = $row["destination_description"];
|
||||
$currency = $row["currency"];
|
||||
$destination_sell = $row["destination_sell"];
|
||||
break; //limit to 1 row
|
||||
}
|
||||
unset ($prep_statement);
|
||||
@@ -524,6 +533,20 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
// billing
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-monthly_price'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='destination_sell' maxlength='255' value=\"$destination_sell\">\n";
|
||||
currency_select($currency);
|
||||
echo "<br />\n";
|
||||
echo $text['description-monthly_price']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-destination_description'].":\n";
|
||||
@@ -554,4 +577,4 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user