diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index 52a2b8d1ef..981f9c0cdd 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -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++; ?> diff --git a/app/destinations/app_languages.php b/app/destinations/app_languages.php index 896924eaa7..5228f4c05d 100644 --- a/app/destinations/app_languages.php +++ b/app/destinations/app_languages.php @@ -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"; diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 97fc79cebb..be80312b77 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -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 "\n"; echo "\n"; + + echo "