diff --git a/app/destinations/app_languages.php b/app/destinations/app_languages.php index e7f761862a..1e76256c7f 100644 --- a/app/destinations/app_languages.php +++ b/app/destinations/app_languages.php @@ -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é"; -?> \ No newline at end of file +?> diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 793e2c4107..89b68016cd 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + Luis Daniel Lucio Quiroz */ 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 "\n"; echo "\n"; + // billing + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){ + echo "\n"; + echo "\n"; + echo " ".$text['label-monthly_price'].":\n"; + echo "\n"; + echo "\n"; + echo " \n"; + currency_select($currency); + echo "
\n"; + echo $text['description-monthly_price']."\n"; + echo "\n"; + echo "\n"; + } echo "\n"; echo "\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"; -?> \ No newline at end of file +?>