Better Add buttons in dynamicprice module
This commit is contained in:
parent
99efbd3464
commit
b1568a7319
@ -296,6 +296,8 @@ ComposedProduct=Sub-product
|
|||||||
MinSupplierPrice=Minimum supplier price
|
MinSupplierPrice=Minimum supplier price
|
||||||
DynamicPriceConfiguration=Dynamic price configuration
|
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.
|
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
|
GlobalVariables=Global variables
|
||||||
VariableToUpdate=Variable to update
|
VariableToUpdate=Variable to update
|
||||||
GlobalVariableUpdaters=Global variable updaters
|
GlobalVariableUpdaters=Global variable updaters
|
||||||
|
|||||||
@ -173,6 +173,16 @@ if ($action != 'create_updater' && $action != 'edit_updater') {
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
if (empty($action))
|
||||||
|
{
|
||||||
|
//Action Buttons
|
||||||
|
print '<div class="tabsAction">';
|
||||||
|
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=create_variable">'.$langs->trans("AddVariable").'</a>';
|
||||||
|
print '</div>';
|
||||||
|
//Separator is only need for updaters table is showed after buttons
|
||||||
|
print '<br><br>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Global variable editor
|
//Global variable editor
|
||||||
@ -253,6 +263,14 @@ if ($action != 'create_variable' && $action != 'edit_variable') {
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
if (empty($action))
|
||||||
|
{
|
||||||
|
//Action Buttons
|
||||||
|
print '<div class="tabsAction">';
|
||||||
|
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=create_updater">'.$langs->trans("AddUpdater").'</a>';
|
||||||
|
print '</div>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Updater editor
|
//Updater editor
|
||||||
@ -321,11 +339,6 @@ if ($action == 'create_updater' || $action == 'edit_updater') {
|
|||||||
print '<input type="submit" class="button" name="cancel" id="cancel" value="'.$langs->trans("Cancel").'">';
|
print '<input type="submit" class="button" name="cancel" id="cancel" value="'.$langs->trans("Cancel").'">';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
} else {
|
|
||||||
//Action Buttons
|
|
||||||
print '<div class="tabsAction">';
|
|
||||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=create_updater">'.$langs->trans("Add").'</a>';
|
|
||||||
print '</div>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user