Merge remote-tracking branch 'origin/develop' into 3.8
Conflicts: htdocs/expedition/class/expedition.class.php
This commit is contained in:
commit
e24fd6fa37
@ -224,7 +224,7 @@ Dolibarr better:
|
|||||||
hook afterLogin or afterLoginFailed instead.
|
hook afterLogin or afterLoginFailed instead.
|
||||||
- The trigger USER_CREATE_FROM_CONTACT has been replace with USER_CREATE and property context is now filled
|
- The trigger USER_CREATE_FROM_CONTACT has been replace with USER_CREATE and property context is now filled
|
||||||
to make difference between creation from contact or not.
|
to make difference between creation from contact or not.
|
||||||
|
- Function get_exdir require now 6 parameters. This is to prepare a future feature.
|
||||||
|
|
||||||
***** ChangeLog for 3.7.2 compared to 3.7.1 *****
|
***** ChangeLog for 3.7.2 compared to 3.7.1 *****
|
||||||
FIX [ bug #2855 ] Wrong translation key in localtax report page
|
FIX [ bug #2855 ] Wrong translation key in localtax report page
|
||||||
|
|||||||
@ -117,7 +117,7 @@ http://bugs.debian.org/package
|
|||||||
severity 123 xxx
|
severity 123 xxx
|
||||||
|
|
||||||
|
|
||||||
##### Update but tracker system
|
##### Update bug tracker system
|
||||||
|
|
||||||
To set status of a bug to "pending"
|
To set status of a bug to "pending"
|
||||||
> bts --smtp-host=yoursmtpserver tag 999999 +pending
|
> bts --smtp-host=yoursmtpserver tag 999999 +pending
|
||||||
@ -249,7 +249,7 @@ from git clone dir and make link to git.
|
|||||||
* If local branch upstream and pristine-tar does not exists, create it
|
* If local branch upstream and pristine-tar does not exists, create it
|
||||||
from origin/upstream and origin/pristine.
|
from origin/upstream and origin/pristine.
|
||||||
|
|
||||||
* If new upstream is available onto sourceforge, launch:
|
* When new upstream is available onto sourceforge, launch:
|
||||||
> debian/get-orig-source.sh
|
> debian/get-orig-source.sh
|
||||||
If script fails with error Bad certificate, you can set "export PERL_LWP_SSL_VERIFY_HOSTNAME=0" to solve this.
|
If script fails with error Bad certificate, you can set "export PERL_LWP_SSL_VERIFY_HOSTNAME=0" to solve this.
|
||||||
|
|
||||||
@ -273,8 +273,8 @@ Note: If there was errors solved manually after get-orig-sources.sh, you may nee
|
|||||||
* Fix debian/* files used to build package.
|
* Fix debian/* files used to build package.
|
||||||
Add an entry into debian/changelog
|
Add an entry into debian/changelog
|
||||||
> dch -v x.y.z+dfsgw-v "My comment" will add entry.
|
> dch -v x.y.z+dfsgw-v "My comment" will add entry.
|
||||||
For example: dch -v x.y.z+dfsgw-1 "New upstream release." for a new version (x.y.z = version, w start from 1 and increaed for each new import)
|
For example: dch -v x.y.z+dfsgw-1 "New upstream release." for a new version (x.y.z = version, w start from 1 and increased for each new import)
|
||||||
Then modify changelog to replace "version" or "unstable" with "UNRELEASED".
|
Then check/modify changelog to replace "version" or "unstable" with "UNRELEASED".
|
||||||
Then check/modify also the user/date signature:
|
Then check/modify also the user/date signature:
|
||||||
- Date must have format reported by "date -R"
|
- Date must have format reported by "date -R"
|
||||||
- Name and email must match value into debian/control file (Entry added here is used by next step).
|
- Name and email must match value into debian/control file (Entry added here is used by next step).
|
||||||
@ -299,7 +299,7 @@ Note: Package is built into directory ../build-area
|
|||||||
|
|
||||||
* If package .deb is ok:
|
* If package .deb is ok:
|
||||||
Note: If there was errors managed manually, you may need to make a git commit but do not use option "amend" previous commit
|
Note: If there was errors managed manually, you may need to make a git commit but do not use option "amend" previous commit
|
||||||
> git push --all ou git push origin --all
|
> git push --all
|
||||||
|
|
||||||
* If ok, you can tag.
|
* If ok, you can tag.
|
||||||
> Edit debian/changelog to replace "UNRELEASED" into "unstable", then push
|
> Edit debian/changelog to replace "UNRELEASED" into "unstable", then push
|
||||||
|
|||||||
@ -182,7 +182,8 @@ if ($result)
|
|||||||
$formquestion=array();
|
$formquestion=array();
|
||||||
print $form->formconfirm($_SERVER["PHP_SELF"].'?noparam=noparam', $langs->trans('PurgeAuditEvents'), $langs->trans('ConfirmPurgeAuditEvents'),'confirm_purge',$formquestion,'no',1);
|
print $form->formconfirm($_SERVER["PHP_SELF"].'?noparam=noparam', $langs->trans('PurgeAuditEvents'), $langs->trans('ConfirmPurgeAuditEvents'),'confirm_purge',$formquestion,'no',1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<table class="liste" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"e.dateevent","","",'align="left"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"e.dateevent","","",'align="left"',$sortfield,$sortorder);
|
||||||
@ -195,7 +196,6 @@ if ($result)
|
|||||||
|
|
||||||
|
|
||||||
// Lignes des champs de filtres
|
// Lignes des champs de filtres
|
||||||
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|
||||||
print '<td class="liste_titre" width="15%">'.$form->select_date($date_start,'date_start',0,0,0,'',1,0,1).$form->select_date($date_end,'date_end',0,0,0,'',1,0,1).'</td>';
|
print '<td class="liste_titre" width="15%">'.$form->select_date($date_start,'date_start',0,0,0,'',1,0,1).$form->select_date($date_end,'date_end',0,0,0,'',1,0,1).'</td>';
|
||||||
@ -222,7 +222,6 @@ if ($result)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
|
|
||||||
@ -283,7 +282,7 @@ if ($result)
|
|||||||
if ($usefilter) print '<tr><td colspan="6">'.$langs->trans("NoEventFoundWithCriteria").'</td></tr>';
|
if ($usefilter) print '<tr><td colspan="6">'.$langs->trans("NoEventFoundWithCriteria").'</td></tr>';
|
||||||
else print '<tr><td colspan="6">'.$langs->trans("NoEventOrNoAuditSetup").'</td></tr>';
|
else print '<tr><td colspan="6">'.$langs->trans("NoEventOrNoAuditSetup").'</td></tr>';
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table></form>";
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
|
|
||||||
if ($num)
|
if ($num)
|
||||||
|
|||||||
@ -61,15 +61,15 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
* Search form
|
* Search form
|
||||||
*/
|
*/
|
||||||
$var=false;
|
$var=false;
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/askpricesupplier/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/askpricesupplier/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchRequest").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchRequest").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print "</form></table><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -96,7 +96,8 @@ if ($result)
|
|||||||
|
|
||||||
$param = "&sall=".$sall;
|
$param = "&sall=".$sall;
|
||||||
if ($filteremail) $param.='&filteremail='.urlencode($filteremail);
|
if ($filteremail) $param.='&filteremail='.urlencode($filteremail);
|
||||||
|
|
||||||
|
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<table class="liste">';
|
print '<table class="liste">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"m.rowid",$param,"","",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"m.rowid",$param,"","",$sortfield,$sortorder);
|
||||||
@ -108,7 +109,6 @@ if ($result)
|
|||||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],($filteremail?"mc.statut":"m.statut"),$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],($filteremail?"mc.statut":"m.statut"),$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td class="liste_titre">';
|
print '<td class="liste_titre">';
|
||||||
print '<input type="text" class="flat" name="sref" value="'.$sref.'" size="6">';
|
print '<input type="text" class="flat" name="sref" value="'.$sref.'" size="6">';
|
||||||
@ -123,7 +123,6 @@ if ($result)
|
|||||||
print '<td class="liste_titre" align="right"><input class="liste_titre" type="image" src="'.img_picto($langs->trans("Search"),'search.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
print '<td class="liste_titre" align="right"><input class="liste_titre" type="image" src="'.img_picto($langs->trans("Search"),'search.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
|
|
||||||
@ -177,7 +176,7 @@ if ($result)
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table>";
|
print '</table></form>';
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -63,15 +63,15 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
* Search form
|
* Search form
|
||||||
*/
|
*/
|
||||||
$var=false;
|
$var=false;
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/propal/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/propal/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchPropal").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchPropal").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print "</form></table><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -54,15 +54,15 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
if (! empty($conf->propal->enabled))
|
if (! empty($conf->propal->enabled))
|
||||||
{
|
{
|
||||||
$var=false;
|
$var=false;
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/propal.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/propal.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAProposal").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAProposal").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sf_ref" size="18"></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sf_ref" size="18"></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print "</form></table><br>\n";
|
print "</table></form><br>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -62,15 +62,15 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
|
|
||||||
// Search customer orders
|
// Search customer orders
|
||||||
$var=false;
|
$var=false;
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/commande/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/commande/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchOrder").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchOrder").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print "</form></table><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -158,7 +158,6 @@ if ($result)
|
|||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</form>";
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Line to add category
|
* Line to add category
|
||||||
@ -172,9 +171,7 @@ if ($action != 'edit')
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table>";
|
print '</table></form>';
|
||||||
|
|
||||||
print "</form>";
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
|
|||||||
@ -596,8 +596,7 @@ if ($result)
|
|||||||
}
|
}
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print "</table>";
|
print '</table></form>';
|
||||||
print '</form>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -610,22 +609,21 @@ print '</div>';
|
|||||||
|
|
||||||
|
|
||||||
// List of bank categories
|
// List of bank categories
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
|
|
||||||
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'?rowid='.$rowid.'&id='.$id.'">';
|
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'?rowid='.$rowid.'&id='.$id.'">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<input type="hidden" name="action" value="class">';
|
print '<input type="hidden" name="action" value="class">';
|
||||||
print '<input type="hidden" name="orig_account" value="'.$orig_account.'">';
|
print '<input type="hidden" name="orig_account" value="'.$orig_account.'">';
|
||||||
|
|
||||||
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Rubriques").'</td><td colspan="2">';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Rubriques").'</td><td colspan="2">';
|
||||||
if ($user->rights->banque->modifier)
|
if ($user->rights->banque->modifier)
|
||||||
{
|
{
|
||||||
print '<select class="flat" name="cat1">'.$options.'</select> ';
|
print '<select class="flat" name="cat1">'.$options.'</select> ';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
print '<input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||||
}
|
}
|
||||||
print "</tr>";
|
print '</tr>';
|
||||||
print "</form>";
|
|
||||||
|
|
||||||
$sql = "SELECT c.label, c.rowid";
|
$sql = "SELECT c.label, c.rowid";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."bank_class as a, ".MAIN_DB_PREFIX."bank_categ as c";
|
$sql.= " FROM ".MAIN_DB_PREFIX."bank_class as a, ".MAIN_DB_PREFIX."bank_categ as c";
|
||||||
@ -650,13 +648,13 @@ if ($result)
|
|||||||
{
|
{
|
||||||
print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=delete_categ&rowid='.$rowid.'&fk_categ='.$objp->rowid.'">'.img_delete($langs->trans("Remove")).'</a></td>';
|
print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=delete_categ&rowid='.$rowid.'&fk_categ='.$objp->rowid.'">'.img_delete($langs->trans("Remove")).'</a></td>';
|
||||||
}
|
}
|
||||||
print "</tr>";
|
print '</tr>';
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
print "</table>";
|
print '</table></form>';
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@ if (GETPOST('button_search'))
|
|||||||
}
|
}
|
||||||
if ($option == 'late') $filter = 'paye:0';
|
if ($option == 'late') $filter = 'paye:0';
|
||||||
if ($option == 'unpaidall') $filter = 'paye:0';
|
if ($option == 'unpaidall') $filter = 'paye:0';
|
||||||
if ($mode == 'sendremind' && $filter == '') $filter = 'paye:0';
|
if ($mode == 'sendmassremind' && $filter == '') $filter = 'paye:0';
|
||||||
if ($filter == '') $filter = 'paye:0';
|
if ($filter == '') $filter = 'paye:0';
|
||||||
|
|
||||||
$search_user = GETPOST('search_user','int');
|
$search_user = GETPOST('search_user','int');
|
||||||
|
|||||||
@ -269,7 +269,7 @@ if ($result)
|
|||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<input type="hidden" name="view" value="'.htmlspecialchars($view).'">';
|
print '<input type="hidden" name="view" value="'.dol_escape_htmltag($view).'">';
|
||||||
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
||||||
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
||||||
|
|
||||||
|
|||||||
@ -153,7 +153,9 @@ if ($resql)
|
|||||||
if ($mode == "4" && $filter == "expired") $title=$langs->trans("ListOfExpiredServices");
|
if ($mode == "4" && $filter == "expired") $title=$langs->trans("ListOfExpiredServices");
|
||||||
if ($mode == "5") $title=$langs->trans("ListOfClosedServices");
|
if ($mode == "5") $title=$langs->trans("ListOfClosedServices");
|
||||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder,'',$num,$totalnboflines,'title_commercial.png');
|
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder,'',$num,$totalnboflines,'title_commercial.png');
|
||||||
|
|
||||||
|
print '<form method="POST" action="'. $_SERVER["PHP_SELF"] .'">';
|
||||||
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<table class="liste" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -169,9 +171,6 @@ if ($resql)
|
|||||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"], "cd.statut,c.statut",$param,"","align=\"right\"",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"], "cd.statut,c.statut",$param,"","align=\"right\"",$sortfield,$sortorder);
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
print '<form method="POST" action="'. $_SERVER["PHP_SELF"] .'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td class="liste_titre">';
|
print '<td class="liste_titre">';
|
||||||
print '<input type="hidden" name="filter" value="'.$filter.'">';
|
print '<input type="hidden" name="filter" value="'.$filter.'">';
|
||||||
@ -203,7 +202,6 @@ if ($resql)
|
|||||||
print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="'.img_picto($langs->trans("Search"),'search.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="'.img_picto($langs->trans("Search"),'search.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
||||||
print '<input type="image" class="liste_titre" name="button_removefilter" src="'.img_picto($langs->trans("Search"),'searchclear.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'" title="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'">';
|
print '<input type="image" class="liste_titre" name="button_removefilter" src="'.img_picto($langs->trans("Search"),'searchclear.png','','',1).'" value="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'" title="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'">';
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
$contractstatic=new Contrat($db);
|
$contractstatic=new Contrat($db);
|
||||||
$productstatic=new Product($db);
|
$productstatic=new Product($db);
|
||||||
@ -278,7 +276,7 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
|
|
||||||
print "</table>";
|
print '</table></form>';
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -105,7 +105,7 @@ class box_contacts extends ModeleBoxes
|
|||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'align="left"',
|
||||||
'text' => $societestatic->getNomUrl(1),
|
'text' => ($objp->fk_soc > 0 ? $societestatic->getNomUrl(1) : ''),
|
||||||
'asis' => 1,
|
'asis' => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -303,13 +303,14 @@ class FormOther
|
|||||||
* Return select list for categories (to use in form search selectors)
|
* Return select list for categories (to use in form search selectors)
|
||||||
*
|
*
|
||||||
* @param int $type Type of categories (0=product, 1=suppliers, 2=customers, 3=members)
|
* @param int $type Type of categories (0=product, 1=suppliers, 2=customers, 3=members)
|
||||||
* @param integer $selected Preselected value
|
* @param integer $selected Preselected value
|
||||||
* @param string $htmlname Name of combo list
|
* @param string $htmlname Name of combo list
|
||||||
* @param int $nocateg Show also an entry "Not categorized"
|
* @param int $nocateg Show also an entry "Not categorized"
|
||||||
|
* @param int $showempty Add also an empty line
|
||||||
* @return string Html combo list code
|
* @return string Html combo list code
|
||||||
* @see select_all_categories
|
* @see select_all_categories
|
||||||
*/
|
*/
|
||||||
function select_categories($type,$selected=0,$htmlname='search_categ',$nocateg=0)
|
function select_categories($type,$selected=0,$htmlname='search_categ',$nocateg=0,$showempty=1)
|
||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
@ -331,7 +332,7 @@ class FormOther
|
|||||||
|
|
||||||
// Print a select with each of them
|
// Print a select with each of them
|
||||||
$moreforfilter.='<select class="flat minwidth100" id="select_categ_'.$htmlname.'" name="'.$htmlname.'"'.$nodatarole.'>';
|
$moreforfilter.='<select class="flat minwidth100" id="select_categ_'.$htmlname.'" name="'.$htmlname.'"'.$nodatarole.'>';
|
||||||
$moreforfilter.='<option value=""> </option>'; // Should use -1 to say nothing
|
if ($showempty) $moreforfilter.='<option value="0"> </option>'; // Should use -1 to say nothing
|
||||||
|
|
||||||
if (is_array($tab_categs))
|
if (is_array($tab_categs))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3743,7 +3743,7 @@ function yn($yesno, $case=1, $color=0)
|
|||||||
*
|
*
|
||||||
* @param string $num Id of object
|
* @param string $num Id of object
|
||||||
* @param int $level Level of subdirs to return (1, 2 or 3 levels)
|
* @param int $level Level of subdirs to return (1, 2 or 3 levels)
|
||||||
* @param int $alpha Use alpha ref
|
* @param int $alpha 0=Keep number only to forge path, 1=Use alpha part afer the - (By default, use 0).
|
||||||
* @param int $withoutslash 0=With slash at end, 1=without slash at end (except if '/', we return '')
|
* @param int $withoutslash 0=With slash at end, 1=without slash at end (except if '/', we return '')
|
||||||
* @param Object $object Object
|
* @param Object $object Object
|
||||||
* @param string $modulepart Type of object ('invoice_supplier, 'donation', 'invoice', ...')
|
* @param string $modulepart Type of object ('invoice_supplier, 'donation', 'invoice', ...')
|
||||||
|
|||||||
@ -1023,14 +1023,13 @@ function print_projecttasks_array($db, $form, $socid, $projectsListId, $mytasks=
|
|||||||
if (!empty($conf->global->PROJECT_LIMIT_YEAR_RANGE))
|
if (!empty($conf->global->PROJECT_LIMIT_YEAR_RANGE))
|
||||||
{
|
{
|
||||||
//Add the year filter input
|
//Add the year filter input
|
||||||
|
print '<form method="get" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<table width="100%">';
|
print '<table width="100%">';
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td>'.$langs->trans("Year").'</td>';
|
print '<td>'.$langs->trans("Year").'</td>';
|
||||||
print '<form method="get" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<td style="text-align:right"><input type="text" size="4" class="flat" name="project_year_filter" value="'.$project_year_filter.'"/>';
|
print '<td style="text-align:right"><input type="text" size="4" class="flat" name="project_year_filter" value="'.$project_year_filter.'"/>';
|
||||||
print '</form>';
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print '</table>';
|
print '</table></form>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -154,6 +154,11 @@ class pdf_baleine extends ModelePDFProjects
|
|||||||
$task = new Task($this->db);
|
$task = new Task($this->db);
|
||||||
$tasksarray = $task->getTasksArray(0,0,$object->id);
|
$tasksarray = $task->getTasksArray(0,0,$object->id);
|
||||||
|
|
||||||
|
if (! $object->id > 0) // Special case when used with object = specimen, we may return all lines
|
||||||
|
{
|
||||||
|
$tasksarray=array_slice($tasksarray, 0, min(5, count($tasksarray)));
|
||||||
|
}
|
||||||
|
|
||||||
$object->lines=$tasksarray;
|
$object->lines=$tasksarray;
|
||||||
$nblignes=count($object->lines);
|
$nblignes=count($object->lines);
|
||||||
|
|
||||||
@ -230,12 +235,12 @@ class pdf_baleine extends ModelePDFProjects
|
|||||||
$pdf->MultiCell($this->posxprogress-$this->posxworkload, 3, $planned_workload, 0, 'R');
|
$pdf->MultiCell($this->posxprogress-$this->posxworkload, 3, $planned_workload, 0, 'R');
|
||||||
$pdf->SetXY($this->posxprogress, $curY);
|
$pdf->SetXY($this->posxprogress, $curY);
|
||||||
$pdf->MultiCell($this->posxdatestart-$this->posxprogress, 3, $progress, 0, 'R');
|
$pdf->MultiCell($this->posxdatestart-$this->posxprogress, 3, $progress, 0, 'R');
|
||||||
|
|
||||||
$pdf->SetXY($this->posxdatestart, $curY);
|
$pdf->SetXY($this->posxdatestart, $curY);
|
||||||
$pdf->MultiCell($this->posxdateend-$this->posxdatestart, 3, $datestart, 0, 'C');
|
$pdf->MultiCell($this->posxdateend-$this->posxdatestart, 3, $datestart, 0, 'C');
|
||||||
$pdf->SetXY($this->posxdateend, $curY);
|
$pdf->SetXY($this->posxdateend, $curY);
|
||||||
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$this->posxdateend, 3, $dateend, 0, 'C');
|
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$this->posxdateend, 3, $dateend, 0, 'C');
|
||||||
|
|
||||||
|
|
||||||
$pageposafter=$pdf->getPage();
|
$pageposafter=$pdf->getPage();
|
||||||
|
|
||||||
$pdf->SetFont('','', $default_font_size - 1); // On repositionne la police par defaut
|
$pdf->SetFont('','', $default_font_size - 1); // On repositionne la police par defaut
|
||||||
|
|||||||
@ -111,7 +111,7 @@ class pdf_beluga extends ModelePDFProjects
|
|||||||
{
|
{
|
||||||
global $user,$langs,$conf;
|
global $user,$langs,$conf;
|
||||||
|
|
||||||
$formproject=new FormProjets($this->db);
|
$formproject=new FormProjets($this->db);
|
||||||
|
|
||||||
if (! is_object($outputlangs)) $outputlangs=$langs;
|
if (! is_object($outputlangs)) $outputlangs=$langs;
|
||||||
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
|
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
|
||||||
@ -223,233 +223,216 @@ $formproject=new FormProjets($this->db);
|
|||||||
$iniY = $tab_top + 7;
|
$iniY = $tab_top + 7;
|
||||||
$curY = $tab_top + 7;
|
$curY = $tab_top + 7;
|
||||||
$nexY = $tab_top + 7;
|
$nexY = $tab_top + 7;
|
||||||
|
|
||||||
$listofreferent=array(
|
$listofreferent=array(
|
||||||
'propal'=>array(
|
'propal'=>array(
|
||||||
'name'=>"Proposals",
|
'name'=>"Proposals",
|
||||||
'title'=>"ListProposalsAssociatedProject",
|
'title'=>"ListProposalsAssociatedProject",
|
||||||
'class'=>'Propal',
|
'class'=>'Propal',
|
||||||
'table'=>'propal',
|
'table'=>'propal',
|
||||||
'datefieldname'=>'datep',
|
'datefieldname'=>'datep',
|
||||||
'test'=>$conf->propal->enabled && $user->rights->propale->lire),
|
'test'=>$conf->propal->enabled && $user->rights->propale->lire),
|
||||||
'order'=>array(
|
'order'=>array(
|
||||||
'name'=>"CustomersOrders",
|
'name'=>"CustomersOrders",
|
||||||
'title'=>"ListOrdersAssociatedProject",
|
'title'=>"ListOrdersAssociatedProject",
|
||||||
'class'=>'Commande',
|
'class'=>'Commande',
|
||||||
'table'=>'commande',
|
'table'=>'commande',
|
||||||
'datefieldname'=>'date_commande',
|
'datefieldname'=>'date_commande',
|
||||||
'test'=>$conf->commande->enabled && $user->rights->commande->lire),
|
'test'=>$conf->commande->enabled && $user->rights->commande->lire),
|
||||||
'invoice'=>array(
|
'invoice'=>array(
|
||||||
'name'=>"CustomersInvoices",
|
'name'=>"CustomersInvoices",
|
||||||
'title'=>"ListInvoicesAssociatedProject",
|
'title'=>"ListInvoicesAssociatedProject",
|
||||||
'class'=>'Facture',
|
'class'=>'Facture',
|
||||||
'margin'=>'add',
|
'margin'=>'add',
|
||||||
'table'=>'facture',
|
'table'=>'facture',
|
||||||
'datefieldname'=>'datef',
|
'datefieldname'=>'datef',
|
||||||
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
||||||
'invoice_predefined'=>array(
|
'invoice_predefined'=>array(
|
||||||
'name'=>"PredefinedInvoices",
|
'name'=>"PredefinedInvoices",
|
||||||
'title'=>"ListPredefinedInvoicesAssociatedProject",
|
'title'=>"ListPredefinedInvoicesAssociatedProject",
|
||||||
'class'=>'FactureRec',
|
'class'=>'FactureRec',
|
||||||
'table'=>'facture_rec',
|
'table'=>'facture_rec',
|
||||||
'datefieldname'=>'datec',
|
'datefieldname'=>'datec',
|
||||||
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
||||||
'order_supplier'=>array(
|
'order_supplier'=>array(
|
||||||
'name'=>"SuppliersOrders",
|
'name'=>"SuppliersOrders",
|
||||||
'title'=>"ListSupplierOrdersAssociatedProject",
|
'title'=>"ListSupplierOrdersAssociatedProject",
|
||||||
'class'=>'CommandeFournisseur',
|
'class'=>'CommandeFournisseur',
|
||||||
'table'=>'commande_fournisseur',
|
'table'=>'commande_fournisseur',
|
||||||
'datefieldname'=>'date_commande',
|
'datefieldname'=>'date_commande',
|
||||||
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->commande->lire),
|
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->commande->lire),
|
||||||
'invoice_supplier'=>array(
|
'invoice_supplier'=>array(
|
||||||
'name'=>"BillsSuppliers",
|
'name'=>"BillsSuppliers",
|
||||||
'title'=>"ListSupplierInvoicesAssociatedProject",
|
'title'=>"ListSupplierInvoicesAssociatedProject",
|
||||||
'class'=>'FactureFournisseur',
|
'class'=>'FactureFournisseur',
|
||||||
'margin'=>'minus',
|
'margin'=>'minus',
|
||||||
'table'=>'facture_fourn',
|
'table'=>'facture_fourn',
|
||||||
'datefieldname'=>'datef',
|
'datefieldname'=>'datef',
|
||||||
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire),
|
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire),
|
||||||
'contract'=>array(
|
'contract'=>array(
|
||||||
'name'=>"Contracts",
|
'name'=>"Contracts",
|
||||||
'title'=>"ListContractAssociatedProject",
|
'title'=>"ListContractAssociatedProject",
|
||||||
'class'=>'Contrat',
|
'class'=>'Contrat',
|
||||||
'table'=>'contrat',
|
'table'=>'contrat',
|
||||||
'datefieldname'=>'date_contrat',
|
'datefieldname'=>'date_contrat',
|
||||||
'test'=>$conf->contrat->enabled && $user->rights->contrat->lire),
|
'test'=>$conf->contrat->enabled && $user->rights->contrat->lire),
|
||||||
'intervention'=>array(
|
'intervention'=>array(
|
||||||
'name'=>"Interventions",
|
'name'=>"Interventions",
|
||||||
'title'=>"ListFichinterAssociatedProject",
|
'title'=>"ListFichinterAssociatedProject",
|
||||||
'class'=>'Fichinter',
|
'class'=>'Fichinter',
|
||||||
'table'=>'fichinter',
|
'table'=>'fichinter',
|
||||||
'datefieldname'=>'date_valid',
|
'datefieldname'=>'date_valid',
|
||||||
'disableamount'=>1,
|
'disableamount'=>1,
|
||||||
'test'=>$conf->ficheinter->enabled && $user->rights->ficheinter->lire),
|
'test'=>$conf->ficheinter->enabled && $user->rights->ficheinter->lire),
|
||||||
'trip'=>array(
|
'trip'=>array(
|
||||||
'name'=>"TripsAndExpenses",
|
'name'=>"TripsAndExpenses",
|
||||||
'title'=>"ListTripAssociatedProject",
|
'title'=>"ListTripAssociatedProject",
|
||||||
'class'=>'Deplacement',
|
'class'=>'Deplacement',
|
||||||
'table'=>'deplacement',
|
'table'=>'deplacement',
|
||||||
'datefieldname'=>'dated',
|
'datefieldname'=>'dated',
|
||||||
'margin'=>'minus',
|
'margin'=>'minus',
|
||||||
'disableamount'=>1,
|
'disableamount'=>1,
|
||||||
'test'=>$conf->deplacement->enabled && $user->rights->deplacement->lire),
|
'test'=>$conf->deplacement->enabled && $user->rights->deplacement->lire),
|
||||||
'agenda'=>array(
|
'agenda'=>array(
|
||||||
'name'=>"Agenda",
|
'name'=>"Agenda",
|
||||||
'title'=>"ListActionsAssociatedProject",
|
'title'=>"ListActionsAssociatedProject",
|
||||||
'class'=>'ActionComm',
|
'class'=>'ActionComm',
|
||||||
'table'=>'actioncomm',
|
'table'=>'actioncomm',
|
||||||
'datefieldname'=>'datep',
|
'datefieldname'=>'datep',
|
||||||
'disableamount'=>1,
|
'disableamount'=>1,
|
||||||
'test'=>$conf->agenda->enabled && $user->rights->agenda->allactions->lire)
|
'test'=>$conf->agenda->enabled && $user->rights->agenda->allactions->lire)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
foreach ($listofreferent as $key => $value)
|
foreach ($listofreferent as $key => $value)
|
||||||
{
|
{
|
||||||
$title=$value['title'];
|
$title=$value['title'];
|
||||||
$classname=$value['class'];
|
$classname=$value['class'];
|
||||||
$tablename=$value['table'];
|
$tablename=$value['table'];
|
||||||
$datefieldname=$value['datefieldname'];
|
$datefieldname=$value['datefieldname'];
|
||||||
$qualified=$value['test'];
|
$qualified=$value['test'];
|
||||||
|
|
||||||
if ($qualified)
|
if ($qualified)
|
||||||
{
|
{
|
||||||
$elementarray = $object->get_element_list($key, $tablename, $datefieldname, $dates, $datee);
|
$elementarray = $object->get_element_list($key, $tablename, $datefieldname, $dates, $datee);
|
||||||
$num=count($elementarray);
|
$num = count($elementarray);
|
||||||
if ($num> 0)
|
if ($num > 0)
|
||||||
{
|
{
|
||||||
$nexY = $pdf->GetY()+5;
|
$nexY = $pdf->GetY() + 5;
|
||||||
$curY = $nexY;
|
$curY = $nexY;
|
||||||
$pdf->SetXY($this->posxref, $curY);
|
$pdf->SetXY($this->posxref, $curY);
|
||||||
$pdf->MultiCell($this->posxstatut-$this->posxref, 3, $outputlangs->transnoentities($title), 0, 'L');
|
$pdf->MultiCell($this->posxstatut - $this->posxref, 3, $outputlangs->transnoentities($title), 0, 'L');
|
||||||
|
|
||||||
|
$selectList = $formproject->select_element($tablename, $project->thirdparty->id);
|
||||||
$selectList=$formproject->select_element($tablename,$project->thirdparty->id);
|
$nexY = $pdf->GetY() + 1;
|
||||||
$nexY = $pdf->GetY()+1;
|
$curY = $nexY;
|
||||||
$curY = $nexY;
|
$pdf->SetXY($this->posxref, $curY);
|
||||||
$pdf->SetXY($this->posxref, $curY);
|
$pdf->MultiCell($this->posxdate - $this->posxref, 3, $outputlangs->transnoentities("Ref"), 1, 'L');
|
||||||
$pdf->MultiCell($this->posxdate-$this->posxref, 3, $outputlangs->transnoentities("Ref"), 1, 'L');
|
$pdf->SetXY($this->posxdate, $curY);
|
||||||
$pdf->SetXY($this->posxdate, $curY);
|
$pdf->MultiCell($this->posxsociety - $this->posxdate, 3, $outputlangs->transnoentities("Date"), 1, 'C');
|
||||||
$pdf->MultiCell($this->posxsociety-$this->posxdate, 3, $outputlangs->transnoentities("Date"), 1, 'C');
|
$pdf->SetXY($this->posxsociety, $curY);
|
||||||
$pdf->SetXY($this->posxsociety, $curY);
|
$pdf->MultiCell($this->posxamountht - $this->posxsociety, 3, $outputlangs->transnoentities("ThirdParty"), 1, 'L');
|
||||||
$pdf->MultiCell($this->posxamountht-$this->posxsociety, 3, $outputlangs->transnoentities("ThirdParty"), 1, 'L');
|
if (empty($value['disableamount'])) {
|
||||||
if (empty($value['disableamount']))
|
$pdf->SetXY($this->posxamountht, $curY);
|
||||||
{
|
$pdf->MultiCell($this->posxamountttc - $this->posxamountht, 3, $outputlangs->transnoentities("AmountHT"), 1, 'R');
|
||||||
$pdf->SetXY($this->posxamountht, $curY);
|
$pdf->SetXY($this->posxamountttc, $curY);
|
||||||
$pdf->MultiCell($this->posxamountttc-$this->posxamountht, 3, $outputlangs->transnoentities("AmountHT"), 1, 'R');
|
$pdf->MultiCell($this->posxstatut - $this->posxamountttc, 3, $outputlangs->transnoentities("AmountTTC"), 1, 'R');
|
||||||
$pdf->SetXY($this->posxamountttc, $curY);
|
} else {
|
||||||
$pdf->MultiCell($this->posxstatut-$this->posxamountttc, 3, $outputlangs->transnoentities("AmountTTC"), 1, 'R');
|
$pdf->SetXY($this->posxamountht, $curY);
|
||||||
}
|
$pdf->MultiCell($this->posxstatut - $this->posxamountht, 3, "", 1, 'R');
|
||||||
else
|
}
|
||||||
{
|
$pdf->SetXY($this->posxstatut, $curY);
|
||||||
$pdf->SetXY($this->posxamountht, $curY);
|
$pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->posxstatut, 3, $outputlangs->transnoentities("Statut"), 1, 'R');
|
||||||
$pdf->MultiCell($this->posxstatut-$this->posxamountht, 3, "", 1, 'R');
|
|
||||||
}
|
if (is_array($elementarray) && count($elementarray) > 0)
|
||||||
$pdf->SetXY($this->posxstatut, $curY);
|
{
|
||||||
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$this->posxstatut, 3, $outputlangs->transnoentities("Statut"), 1, 'R');
|
$nexY = $pdf->GetY();
|
||||||
|
$curY = $nexY;
|
||||||
|
|
||||||
if (is_array($elementarray) && count($elementarray)>0)
|
$total_ht = 0;
|
||||||
{
|
$total_ttc = 0;
|
||||||
$nexY = $pdf->GetY();
|
$num = count($elementarray);
|
||||||
$curY = $nexY;
|
for ($i = 0; $i < $num; $i ++) {
|
||||||
|
$element = new $classname($this->db);
|
||||||
$total_ht = 0;
|
$element->fetch($elementarray[$i]);
|
||||||
$total_ttc = 0;
|
$element->fetch_thirdparty();
|
||||||
$num=count($elementarray);
|
// print $classname;
|
||||||
for ($i = 0; $i < $num; $i++)
|
|
||||||
{
|
$qualifiedfortotal = true;
|
||||||
$element = new $classname($this->db);
|
if ($key == 'invoice') {
|
||||||
$element->fetch($elementarray[$i]);
|
if ($element->close_code == 'replaced')
|
||||||
$element->fetch_thirdparty();
|
$qualifiedfortotal = false; // Replacement invoice
|
||||||
//print $classname;
|
}
|
||||||
|
|
||||||
$qualifiedfortotal=true;
|
$pdf->SetXY($this->posxref, $curY);
|
||||||
if ($key == 'invoice')
|
$pdf->MultiCell($this->posxdate - $this->posxref, 3, $element->ref, 1, 'L');
|
||||||
{
|
|
||||||
if ($element->close_code == 'replaced') $qualifiedfortotal=false; // Replacement invoice
|
// Date
|
||||||
}
|
if ($tablename == 'commande_fournisseur' || $tablename == 'supplier_order')
|
||||||
|
$date = $element->date_commande;
|
||||||
$pdf->SetXY($this->posxref, $curY);
|
else {
|
||||||
$pdf->MultiCell($this->posxdate-$this->posxref, 3, $element->ref, 1, 'L');
|
$date = $element->date;
|
||||||
|
if (empty($date))
|
||||||
|
$date = $element->datep;
|
||||||
// Date
|
if (empty($date))
|
||||||
if ($tablename == 'commande_fournisseur' || $tablename == 'supplier_order') $date=$element->date_commande;
|
$date = $element->date_contrat;
|
||||||
else
|
if (empty($date))
|
||||||
{
|
$date = $element->datev; // Fiche inter
|
||||||
$date=$element->date;
|
}
|
||||||
if (empty($date)) $date=$element->datep;
|
|
||||||
if (empty($date)) $date=$element->date_contrat;
|
$pdf->SetXY($this->posxdate, $curY);
|
||||||
if (empty($date)) $date=$element->datev; //Fiche inter
|
$pdf->MultiCell($this->posxsociety - $this->posxdate, 3, dol_print_date($date, 'day'), 1, 'C');
|
||||||
}
|
|
||||||
|
$pdf->SetXY($this->posxsociety, $curY);
|
||||||
$pdf->SetXY($this->posxdate, $curY);
|
if (is_object($element->thirdparty))
|
||||||
$pdf->MultiCell($this->posxsociety-$this->posxdate, 3, dol_print_date($date,'day'), 1, 'C');
|
$pdf->MultiCell($this->posxamountht - $this->posxsociety, 3, $element->thirdparty->name, 1, 'L');
|
||||||
|
|
||||||
$pdf->SetXY($this->posxsociety, $curY);
|
// Amount without tax
|
||||||
if (is_object($element->thirdparty))
|
if (empty($value['disableamount'])) {
|
||||||
$pdf->MultiCell($this->posxamountht-$this->posxsociety, 3, $element->thirdparty->name, 1, 'L');
|
$pdf->SetXY($this->posxamountht, $curY);
|
||||||
|
$pdf->MultiCell($this->posxamountttc - $this->posxamountht, 3, (isset($element->total_ht) ? price($element->total_ht) : ' '), 1, 'R');
|
||||||
|
$pdf->SetXY($this->posxamountttc, $curY);
|
||||||
// Amount without tax
|
$pdf->MultiCell($this->posxstatut - $this->posxamountttc, 3, (isset($element->total_ttc) ? price($element->total_ttc) : ' '), 1, 'R');
|
||||||
if (empty($value['disableamount']))
|
} else {
|
||||||
{
|
$pdf->SetXY($this->posxamountht, $curY);
|
||||||
$pdf->SetXY($this->posxamountht, $curY);
|
$pdf->MultiCell($this->posxstatut - $this->posxamountht, 3, "", 1, 'R');
|
||||||
$pdf->MultiCell($this->posxamountttc-$this->posxamountht, 3,
|
}
|
||||||
(isset($element->total_ht)?price($element->total_ht):' '), 1, 'R');
|
|
||||||
$pdf->SetXY($this->posxamountttc, $curY);
|
// Status
|
||||||
$pdf->MultiCell($this->posxstatut-$this->posxamountttc, 3,
|
if ($element instanceof CommonInvoice) {
|
||||||
(isset($element->total_ttc)?price($element->total_ttc):' '), 1, 'R');
|
// This applies for Facture and FactureFournisseur
|
||||||
}
|
$outputstatut = $element->getLibStatut(1, $element->getSommePaiement());
|
||||||
else
|
} else {
|
||||||
{
|
$outputstatut = $element->getLibStatut(1);
|
||||||
$pdf->SetXY($this->posxamountht, $curY);
|
}
|
||||||
$pdf->MultiCell($this->posxstatut-$this->posxamountht, 3, "", 1, 'R');
|
$pdf->SetXY($this->posxstatut, $curY);
|
||||||
}
|
$pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->posxstatut, 3, $outputstatut, 1, 'R', false, 1, '', '', true, 0, true);
|
||||||
|
|
||||||
// Status
|
if ($qualifiedfortotal) {
|
||||||
if ($element instanceof CommonInvoice) {
|
$total_ht = $total_ht + $element->total_ht;
|
||||||
//This applies for Facture and FactureFournisseur
|
$total_ttc = $total_ttc + $element->total_ttc;
|
||||||
$outputstatut= $element->getLibStatut(1, $element->getSommePaiement());
|
}
|
||||||
} else {
|
$nexY = $pdf->GetY();
|
||||||
$outputstatut = $element->getLibStatut(1);
|
$curY = $nexY;
|
||||||
}
|
}
|
||||||
$pdf->SetXY($this->posxstatut, $curY);
|
|
||||||
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$this->posxstatut, 3,
|
if (empty($value['disableamount'])) {
|
||||||
$outputstatut, 1, 'R',false, 1, '', '', true, 0, true);
|
$curY = $nexY;
|
||||||
|
$pdf->SetXY($this->posxref, $curY);
|
||||||
if ($qualifiedfortotal)
|
$pdf->MultiCell($this->posxamountttc - $this->posxref, 3, "TOTAL", 1, 'L');
|
||||||
{
|
$pdf->SetXY($this->posxamountht, $curY);
|
||||||
$total_ht = $total_ht + $element->total_ht;
|
$pdf->MultiCell($this->posxamountttc - $this->posxamountht, 3, (isset($element->total_ht) ? price($total_ht) : ' '), 1, 'R');
|
||||||
$total_ttc = $total_ttc + $element->total_ttc;
|
$pdf->SetXY($this->posxamountttc, $curY);
|
||||||
}
|
$pdf->MultiCell($this->posxstatut - $this->posxamountttc, 3, (isset($element->total_ttc) ? price($total_ttc) : ' '), 1, 'R');
|
||||||
$nexY = $pdf->GetY();
|
$pdf->SetXY($this->posxstatut, $curY);
|
||||||
$curY = $nexY;
|
$pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->posxstatut, 3, $outputlangs->transnoentities("Nb") . " " . $num, 1, 'L');
|
||||||
}
|
}
|
||||||
|
$nexY = $pdf->GetY() + 5;
|
||||||
|
$curY = $nexY;
|
||||||
if (empty($value['disableamount']))
|
}
|
||||||
{
|
}
|
||||||
$curY = $nexY;
|
}
|
||||||
$pdf->SetXY($this->posxref, $curY);
|
}
|
||||||
$pdf->MultiCell($this->posxamountttc-$this->posxref, 3, "TOTAL", 1, 'L');
|
|
||||||
$pdf->SetXY($this->posxamountht, $curY);
|
|
||||||
$pdf->MultiCell($this->posxamountttc-$this->posxamountht, 3,
|
|
||||||
(isset($element->total_ht)?price($total_ht):' '), 1, 'R');
|
|
||||||
$pdf->SetXY($this->posxamountttc, $curY);
|
|
||||||
$pdf->MultiCell($this->posxstatut-$this->posxamountttc, 3,
|
|
||||||
(isset($element->total_ttc)?price($total_ttc):' '), 1, 'R');
|
|
||||||
$pdf->SetXY($this->posxstatut, $curY);
|
|
||||||
$pdf->MultiCell($this->page_largeur-$this->marge_droite-$this->posxstatut, 3,
|
|
||||||
$outputlangs->transnoentities("Nb")." ".$num, 1, 'L');
|
|
||||||
}
|
|
||||||
$nexY = $pdf->GetY()+5;
|
|
||||||
$curY = $nexY;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -322,7 +322,7 @@ if (! empty($conf->margin->enabled))
|
|||||||
var remise = $("input[name='remise_percent']:first");
|
var remise = $("input[name='remise_percent']:first");
|
||||||
|
|
||||||
var rate = $("input[name='"+npRate+"']:first");
|
var rate = $("input[name='"+npRate+"']:first");
|
||||||
if (rate.val() == '') return true;
|
if (rate.val() == '' || (typeof rate.val()) == 'undefined' ) return true;
|
||||||
|
|
||||||
if (! $.isNumeric(rate.val().replace(',','.')))
|
if (! $.isNumeric(rate.val().replace(',','.')))
|
||||||
{
|
{
|
||||||
@ -331,7 +331,7 @@ if (! empty($conf->margin->enabled))
|
|||||||
setTimeout(function () { rate.focus() }, 50);
|
setTimeout(function () { rate.focus() }, 50);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (npRate == "markRate" && rate.val() >= 100)
|
if (npRate == "np_markRate" && rate.val() >= 100)
|
||||||
{
|
{
|
||||||
alert('<?php echo $langs->trans("markRateShouldBeLesserThan100"); ?>');
|
alert('<?php echo $langs->trans("markRateShouldBeLesserThan100"); ?>');
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -347,9 +347,11 @@ if (! empty($conf->margin->enabled))
|
|||||||
bpjs=price2numjs(buying_price.val());
|
bpjs=price2numjs(buying_price.val());
|
||||||
ratejs=price2numjs(rate.val());
|
ratejs=price2numjs(rate.val());
|
||||||
|
|
||||||
if (npRate == "marginRate")
|
/* console.log(npRate+" - "+bpjs+" - "+ratejs); */
|
||||||
|
|
||||||
|
if (npRate == "np_marginRate")
|
||||||
price = ((bpjs * (1 + ratejs / 100)) / (1 - remisejs / 100));
|
price = ((bpjs * (1 + ratejs / 100)) / (1 - remisejs / 100));
|
||||||
else if (npRate == "markRate")
|
else if (npRate == "np_markRate")
|
||||||
price = ((bpjs / (1 - ratejs / 100)) / (1 - remisejs / 100));
|
price = ((bpjs / (1 - ratejs / 100)) / (1 - remisejs / 100));
|
||||||
}
|
}
|
||||||
$("input[name='price_ht']:first").val(price); // TODO Must use a function like php price to have here a formated value
|
$("input[name='price_ht']:first").val(price); // TODO Must use a function like php price to have here a formated value
|
||||||
|
|||||||
@ -888,11 +888,11 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<tr><td colspan="3" ></td><td align="center">';
|
print '<tr><td colspan="3" ></td><td align="center">';
|
||||||
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="0" disabled="disabled"> ';
|
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="0" disabled="disabled"> ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td align="left">';
|
print '<td align="left">';
|
||||||
print img_warning().' '.$langs->trans("NoProductToShipFoundIntoStock", $staticwarehouse->libelle);
|
print img_warning().' '.$langs->trans("NoProductToShipFoundIntoStock", $staticwarehouse->libelle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -658,7 +658,7 @@ class Expedition extends CommonObject
|
|||||||
$result=$mouvS->livraison($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, $obj->subprice, $langs->trans("ShipmentValidatedInDolibarr",$numref));
|
$result=$mouvS->livraison($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, $obj->subprice, $langs->trans("ShipmentValidatedInDolibarr",$numref));
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$error++; break;
|
$error++; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -860,8 +860,8 @@ class Expedition extends CommonObject
|
|||||||
// $value['q']=qty to move
|
// $value['q']=qty to move
|
||||||
// $value['id_batch']=id into llx_product_batch of record to move
|
// $value['id_batch']=id into llx_product_batch of record to move
|
||||||
//var_dump($value);
|
//var_dump($value);
|
||||||
|
|
||||||
$linebatch = new ExpeditionLineBatch($this->db);
|
$linebatch = new ExpeditionLineBatch($this->db);
|
||||||
$ret=$linebatch->fetchFromStock($value['id_batch']); // load serial, sellby, eatby
|
$ret=$linebatch->fetchFromStock($value['id_batch']); // load serial, sellby, eatby
|
||||||
if ($ret<0)
|
if ($ret<0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,13 +48,13 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
|
|
||||||
|
|
||||||
$var=false;
|
$var=false;
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<form method="post" action="list.php">';
|
print '<form method="post" action="list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchASending").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchASending").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sf_ref" size="18"></td><td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sf_ref" size="18"></td><td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print "</form></table><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Shipments to validate
|
* Shipments to validate
|
||||||
|
|||||||
@ -1151,7 +1151,7 @@ class FactureFournisseur extends CommonInvoice
|
|||||||
if (empty($txtva)) $txtva=0;
|
if (empty($txtva)) $txtva=0;
|
||||||
if (empty($txlocaltax1)) $txlocaltax1=0;
|
if (empty($txlocaltax1)) $txlocaltax1=0;
|
||||||
if (empty($txlocaltax2)) $txlocaltax2=0;
|
if (empty($txlocaltax2)) $txlocaltax2=0;
|
||||||
|
|
||||||
$remise_percent=price2num($remise_percent);
|
$remise_percent=price2num($remise_percent);
|
||||||
$qty=price2num($qty);
|
$qty=price2num($qty);
|
||||||
$pu=price2num($pu);
|
$pu=price2num($pu);
|
||||||
@ -1197,7 +1197,7 @@ class FactureFournisseur extends CommonInvoice
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("Error error=".$this->error, LOG_ERR);
|
dol_syslog("Error after updateline error=".$this->error, LOG_ERR);
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -2096,16 +2096,17 @@ class SupplierInvoiceLine extends CommonObjectLine
|
|||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
if ($this->fk_product) {
|
if (empty($this->fk_product))
|
||||||
|
{
|
||||||
$fk_product = "null";
|
$fk_product = "null";
|
||||||
} else {
|
} else {
|
||||||
$fk_product = $this->fk_product;
|
$fk_product = $this->fk_product;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->fk_unit) {
|
if (empty($this->fk_unit)) {
|
||||||
$fk_unit = "'".$this->db->escape($this->fk_unit)."'";
|
|
||||||
} else {
|
|
||||||
$fk_unit = "null";
|
$fk_unit = "null";
|
||||||
|
} else {
|
||||||
|
$fk_unit = "'".$this->db->escape($this->fk_unit)."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn_det SET";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn_det SET";
|
||||||
|
|||||||
@ -58,15 +58,15 @@ print '<tr valign="top"><td class="notopnoleft" width="30%">';
|
|||||||
* Search form
|
* Search form
|
||||||
*/
|
*/
|
||||||
$var=false;
|
$var=false;
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<form method="post" action="list.php">';
|
print '<form method="post" action="list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchOrder").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchOrder").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="search_ref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="search_ref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="search_all" size="18"></td>';
|
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="search_all" size="18"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print "</form></table><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -453,7 +453,9 @@ if (($action != 'create' && $action != 'add') && !$error) {
|
|||||||
$companystatic->nom = $soc->nom;
|
$companystatic->nom = $soc->nom;
|
||||||
print '<h3>' . $companystatic->getNomUrl(1, 'customer') . '</h3>';
|
print '<h3>' . $companystatic->getNomUrl(1, 'customer') . '</h3>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<form method="get" action="orderstoinvoice.php">';
|
||||||
|
print '<input type="hidden" name="socid" value="' . $socid . '">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans('Ref'), 'orderstoinvoice.php', 'c.ref', '', '&socid=' . $socid, '', $sortfield, $sortorder);
|
print_liste_field_titre($langs->trans('Ref'), 'orderstoinvoice.php', 'c.ref', '', '&socid=' . $socid, '', $sortfield, $sortorder);
|
||||||
@ -465,8 +467,6 @@ if (($action != 'create' && $action != 'add') && !$error) {
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Lignes des champs de filtre
|
// Lignes des champs de filtre
|
||||||
print '<form method="get" action="orderstoinvoice.php">';
|
|
||||||
print '<input type="hidden" name="socid" value="' . $socid . '">';
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td class="liste_titre">';
|
print '<td class="liste_titre">';
|
||||||
// REF
|
// REF
|
||||||
@ -497,7 +497,6 @@ if (($action != 'create' && $action != 'add') && !$error) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">';
|
print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">';
|
||||||
$var = True;
|
$var = True;
|
||||||
|
|||||||
@ -143,7 +143,8 @@ SelectElement=Select element
|
|||||||
AddElement=Link to element
|
AddElement=Link to element
|
||||||
UnlinkElement=Unlink element
|
UnlinkElement=Unlink element
|
||||||
# Documents models
|
# Documents models
|
||||||
DocumentModelBaleine=A complete project's report model (logo...)
|
DocumentModelBeluga=Project template for linked objects overview
|
||||||
|
DocumentModelBaleine=Project report template for tasks
|
||||||
PlannedWorkload=Planned workload
|
PlannedWorkload=Planned workload
|
||||||
PlannedWorkloadShort=Workload
|
PlannedWorkloadShort=Workload
|
||||||
WorkloadOccupation=Workload assignation
|
WorkloadOccupation=Workload assignation
|
||||||
|
|||||||
@ -258,6 +258,7 @@ llxHeader("",$title,"");
|
|||||||
|
|
||||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'title_project');
|
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'title_project');
|
||||||
|
|
||||||
|
$param=($mode?'&mode='.$mode:'');
|
||||||
|
|
||||||
// Show navigation bar
|
// Show navigation bar
|
||||||
$nav ="<a href=\"?year=".$prev_year."&month=".$prev_month."&day=".$prev_day.$param."\">".img_previous($langs->trans("Previous"))."</a>\n";
|
$nav ="<a href=\"?year=".$prev_year."&month=".$prev_month."&day=".$prev_day.$param."\">".img_previous($langs->trans("Previous"))."</a>\n";
|
||||||
|
|||||||
@ -236,6 +236,7 @@ llxHeader("",$title,"",'','','',array('/core/js/timesheet.js'));
|
|||||||
|
|
||||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'title_project');
|
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'title_project');
|
||||||
|
|
||||||
|
$param=($mode?'&mode='.$mode:'');
|
||||||
|
|
||||||
// Show navigation bar
|
// Show navigation bar
|
||||||
$nav ="<a href=\"?year=".$prev_year."&month=".$prev_month."&day=".$prev_day.$param."\">".img_previous($langs->trans("Previous"))."</a>\n";
|
$nav ="<a href=\"?year=".$prev_year."&month=".$prev_month."&day=".$prev_day.$param."\">".img_previous($langs->trans("Previous"))."</a>\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user