preliminar support for carrier & accountcode for destinations

This commit is contained in:
luis daniel lucio quiroz
2014-07-13 22:29:25 +00:00
parent 40ac982b7e
commit 8748359fc5
3 changed files with 52 additions and 0 deletions
+4
View File
@@ -132,4 +132,8 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description.";
$z++; $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++;
?> ?>
+22
View File
@@ -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']['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['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']['en-us'] = "Add";
$text['button-add']['es-cl'] = "Agregar"; $text['button-add']['es-cl'] = "Agregar";
$text['button-add']['pt-pt'] = "Adicionar"; $text['button-add']['pt-pt'] = "Adicionar";
+26
View File
@@ -68,6 +68,8 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config
$destination_description = check_str($_POST["destination_description"]); $destination_description = check_str($_POST["destination_description"]);
$destination_sell = check_str($_POST["destination_sell"]); $destination_sell = check_str($_POST["destination_sell"]);
$currency = check_str($_POST["currency"]); $currency = check_str($_POST["currency"]);
$destination_accountcode = check_str($_POST["destination_accountcode"]);
$destination_carrier = check_str($_POST["destination_carrier"]);
} }
//unset the db_destination_number //unset the db_destination_number
@@ -376,6 +378,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$destination_description = $row["destination_description"]; $destination_description = $row["destination_description"];
$currency = $row["currency"]; $currency = $row["currency"];
$destination_sell = $row["destination_sell"]; $destination_sell = $row["destination_sell"];
$destination_accountcode = $row["destination_accountcode"];
$destination_carrier = $row["destination_carrier"];
break; //limit to 1 row break; //limit to 1 row
} }
unset ($prep_statement); unset ($prep_statement);
@@ -630,7 +634,29 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo $text['description-monthly_price']."\n"; echo $text['description-monthly_price']."\n";
echo "</td>\n"; echo "</td>\n";
echo "</tr>\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 "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-destination_description'].":\n"; echo " ".$text['label-destination_description'].":\n";