mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
preliminar support for carrier & accountcode for destinations
This commit is contained in:
@@ -132,4 +132,8 @@
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_accountcode";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the accountcode.";
|
||||
$z++;
|
||||
?>
|
||||
|
||||
@@ -152,6 +152,28 @@
|
||||
$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['label-accountcode']['en-us'] = "Account code";
|
||||
$text['label-accountcode']['es-cl'] = "Código de cuenta";
|
||||
$text['label-accountcode']['pt-pt'] = "Codigo de cuenta";
|
||||
$text['label-accountcode']['fr-fr'] = "Nom de client";
|
||||
|
||||
$text['description-accountcode']['en-us'] = "Enter account code. This is use to keep track incase billing";
|
||||
$text['description-accountcode']['es-cl'] = "Ingrese el código de cuenta. Es utilizado en caso de usar la cobranza";
|
||||
$text['description-accountcode']['pt-pt'] = "";
|
||||
$text['description-accountcode']['fr-fr'] = "Entrez nom de client. Il est utilisé en casu ou vous utilisez le billing";
|
||||
|
||||
|
||||
$text['label-carrier']['en-us'] = "Carrier name";
|
||||
$text['label-carrier']['es-cl'] = "Nombre del carrier";
|
||||
$text['label-carrier']['pt-pt'] = "Nombre del carrier";
|
||||
$text['label-carrier']['fr-fr'] = "Nom du carrier";
|
||||
|
||||
$text['description-carrier']['en-us'] = "Enter the carrier name. This is use to keep track incase billing";
|
||||
$text['description-carrier']['es-cl'] = "Ingrese el nombre del carrier. Es utilizado en caso de usar la cobranza";
|
||||
$text['description-carrier']['pt-pt'] = "";
|
||||
$text['description-carrier']['fr-fr'] = "Entrez nom du carrier. Il est utilisé en casu ou vous utilisez le billing";
|
||||
|
||||
$text['button-add']['en-us'] = "Add";
|
||||
$text['button-add']['es-cl'] = "Agregar";
|
||||
$text['button-add']['pt-pt'] = "Adicionar";
|
||||
|
||||
@@ -68,6 +68,8 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config
|
||||
$destination_description = check_str($_POST["destination_description"]);
|
||||
$destination_sell = check_str($_POST["destination_sell"]);
|
||||
$currency = check_str($_POST["currency"]);
|
||||
$destination_accountcode = check_str($_POST["destination_accountcode"]);
|
||||
$destination_carrier = check_str($_POST["destination_carrier"]);
|
||||
}
|
||||
|
||||
//unset the db_destination_number
|
||||
@@ -376,6 +378,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$destination_description = $row["destination_description"];
|
||||
$currency = $row["currency"];
|
||||
$destination_sell = $row["destination_sell"];
|
||||
$destination_accountcode = $row["destination_accountcode"];
|
||||
$destination_carrier = $row["destination_carrier"];
|
||||
break; //limit to 1 row
|
||||
}
|
||||
unset ($prep_statement);
|
||||
@@ -630,7 +634,29 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
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-carrier'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='destination_carrier' maxlength='255' value=\"$destination_carrier\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-carrier']."\n";
|
||||
echo "</td>\n";
|
||||
|
||||
}
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-accountcode'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='destination_accountcode' maxlength='255' value=\"$destination_accountcode\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-accountcode']."\n";
|
||||
echo "</td>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-destination_description'].":\n";
|
||||
|
||||
Reference in New Issue
Block a user