diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index 3dfabdc124d..bf223e0e33e 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -296,6 +296,8 @@ ComposedProduct=Sub-product MinSupplierPrice=Minimum supplier price DynamicPriceConfiguration=Dynamic price configuration DynamicPriceDesc=On product card, with this module enabled, you should be able to set mathematic functions to calculate Customer or Supplier prices. Such function can use all mathematic operators, some constants and variables. You can set here the variables you want to be able and if the variable need an automatic update, the external URL to use to ask Dolibarr to update automaticaly the value. +AddVariable=Add Variable +AddUpdater=Add Updater GlobalVariables=Global variables VariableToUpdate=Variable to update GlobalVariableUpdaters=Global variable updaters diff --git a/htdocs/product/admin/dynamic_prices.php b/htdocs/product/admin/dynamic_prices.php index 84ec54433cd..7c9a46d8972 100644 --- a/htdocs/product/admin/dynamic_prices.php +++ b/htdocs/product/admin/dynamic_prices.php @@ -173,6 +173,16 @@ if ($action != 'create_updater' && $action != 'edit_updater') { print ''; } print ''; + + if (empty($action)) + { + //Action Buttons + print '
'; + print ''.$langs->trans("AddVariable").''; + print '
'; + //Separator is only need for updaters table is showed after buttons + print '

'; + } } //Global variable editor @@ -253,6 +263,14 @@ if ($action != 'create_variable' && $action != 'edit_variable') { print ''; } print ''; + + if (empty($action)) + { + //Action Buttons + print '
'; + print ''.$langs->trans("AddUpdater").''; + print '
'; + } } //Updater editor @@ -321,11 +339,6 @@ if ($action == 'create_updater' || $action == 'edit_updater') { print ''; print ''; print ''; -} else { - //Action Buttons - print '
'; - print ''.$langs->trans("Add").''; - print '
'; } llxFooter();