Ajout de la possibilité de pouvoir déterminer la date et l'adresse de livraison dans une propale
This commit is contained in:
parent
46ff8a125c
commit
2e9dc28eaa
@ -85,6 +85,20 @@ if ($_POST["action"] == 'setdefaultduration')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($_POST["action"] == 'addshippingdate')
|
||||||
|
{
|
||||||
|
dolibarr_set_const($db, "PROPALE_ADD_SHIPPING_DATE",$_POST["value"]);
|
||||||
|
Header("Location: propale.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_POST["action"] == 'adddeliveryaddress')
|
||||||
|
{
|
||||||
|
dolibarr_set_const($db, "PROPALE_ADD_DELIVERY_ADDRESS",$_POST["value"]);
|
||||||
|
Header("Location: propale.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if ($_POST["action"] == 'setclassifiedinvoiced')
|
if ($_POST["action"] == 'setclassifiedinvoiced')
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER",$_POST["value"]);
|
dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER",$_POST["value"]);
|
||||||
@ -391,6 +405,25 @@ print '<td align="right"><input type="submit" class="button" value="'.$langs->tr
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
|
$var=!$var;
|
||||||
|
print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
|
||||||
|
print "<input type=\"hidden\" name=\"action\" value=\"setaddshippingdate\">";
|
||||||
|
print "<tr ".$bc[$var].">";
|
||||||
|
print '<td>'.$langs->trans("AddShippingDateAbility").'</td>';
|
||||||
|
print '<td>'.$html->selectyesno('value',$conf->global->PROPALE_ADD_SHIPPING_DATE,1).'</td>';
|
||||||
|
print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
|
||||||
|
print '</tr>';
|
||||||
|
print '</form>';
|
||||||
|
|
||||||
|
$var=!$var;
|
||||||
|
print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
|
||||||
|
print "<input type=\"hidden\" name=\"action\" value=\"setadddeliveryaddress\">";
|
||||||
|
print "<tr ".$bc[$var].">";
|
||||||
|
print '<td>'.$langs->trans("AddDeliveryAddressAbility").'</td>';
|
||||||
|
print '<td>'.$html->selectyesno('value',$conf->global->PROPALE_ADD_DELIVERY_ADDRESS,1).'</td>';
|
||||||
|
print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
|
||||||
|
print '</tr>';
|
||||||
|
print '</form>';
|
||||||
|
|
||||||
if ($conf->commande->enabled)
|
if ($conf->commande->enabled)
|
||||||
{
|
{
|
||||||
@ -422,7 +455,7 @@ print "<tr class=\"liste_titre\">\n";
|
|||||||
print " <td>".$langs->trans("Name")."</td>\n";
|
print " <td>".$langs->trans("Name")."</td>\n";
|
||||||
print " <td>".$langs->trans("Value")."</td>\n";
|
print " <td>".$langs->trans("Value")."</td>\n";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print "<tr ".$bc[false].">\n <td width=\"140\">".$langs->trans("Directory")."</td>\n <td>".$conf->propal->dir_output."</td>\n</tr>\n";
|
print "<tr ".$bc[false].">\n <td width=\"140\">".$langs->trans("PathDirectory")."</td>\n <td>".$conf->propal->dir_output."</td>\n</tr>\n";
|
||||||
print "</table>\n<br>";
|
print "</table>\n<br>";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -524,6 +524,8 @@ ProposalsPDFModules=Commercial proposal documents models
|
|||||||
ClassifiedInvoiced=Classified invoiced
|
ClassifiedInvoiced=Classified invoiced
|
||||||
ClassifiedInvoicedWithOrder=Classify invoiced proposal at the same time as the order
|
ClassifiedInvoicedWithOrder=Classify invoiced proposal at the same time as the order
|
||||||
HideTreadedPropal=Hide the treated commercial proposals in the list
|
HideTreadedPropal=Hide the treated commercial proposals in the list
|
||||||
|
AddShippingDateAbility=Add shipping date ability
|
||||||
|
AddDeliveryAddressAbility=Add delivery date ability
|
||||||
##### Orders #####
|
##### Orders #####
|
||||||
OrdersSetup=Orders' management setup
|
OrdersSetup=Orders' management setup
|
||||||
OrdersNumberingModules=Orders numbering modules
|
OrdersNumberingModules=Orders numbering modules
|
||||||
|
|||||||
@ -526,6 +526,8 @@ ProposalsPDFModules=Mod
|
|||||||
ClassifiedInvoiced=Classé facturée
|
ClassifiedInvoiced=Classé facturée
|
||||||
ClassifiedInvoicedWithOrder=Classé facturée la propale en même temps que la commande
|
ClassifiedInvoicedWithOrder=Classé facturée la propale en même temps que la commande
|
||||||
HideTreadedPropal=Cacher les propositions commerciales traitées de la liste
|
HideTreadedPropal=Cacher les propositions commerciales traitées de la liste
|
||||||
|
AddShippingDateAbility=Possibilité de déterminer une date de livraison
|
||||||
|
AddDeliveryAddressAbility=Possibilité de sélectionner une adresse de livraison
|
||||||
##### Orders #####
|
##### Orders #####
|
||||||
OrdersSetup=Configuration du module Commandes
|
OrdersSetup=Configuration du module Commandes
|
||||||
OrdersNumberingModules=Modules de numérotation des commandes
|
OrdersNumberingModules=Modules de numérotation des commandes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user