forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev_addrecursupinvoice' of github.com:FHenry/dolibarr i…
…nto dev_addrecursupinvoice
- Loading branch information
Showing
132 changed files
with
1,298 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
* Copyright (C) 2021-2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2022 Josep Lluís Amador <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* Copyright (C) 2024 William Mead <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -146,6 +147,12 @@ | |
$search_status = GETPOST('search_status', 'alpha'); | ||
$search_note_public = GETPOST('search_note_public', 'alpha'); | ||
|
||
$search_option = GETPOST('search_option', 'alpha'); | ||
if ($search_option == 'late') { | ||
$search_status = '1'; | ||
$object_statut = '1'; | ||
} | ||
|
||
// Pagination | ||
$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit; | ||
$sortfield = GETPOST('sortfield', 'aZ09comma'); | ||
|
@@ -257,11 +264,11 @@ | |
|
||
// List of fields to search into when doing a "search in all" | ||
/*$fieldstosearchall = array(); | ||
foreach ($object->fields as $key => $val) { | ||
if (!empty($val['searchall'])) { | ||
$fieldstosearchall['t.'.$key] = $val['label']; | ||
} | ||
}*/ | ||
foreach ($object->fields as $key => $val) { | ||
if (!empty($val['searchall'])) { | ||
$fieldstosearchall['t.'.$key] = $val['label']; | ||
} | ||
}*/ | ||
|
||
// Definition of array of fields for columns | ||
/*$arrayfields = array(); | ||
|
@@ -375,6 +382,7 @@ | |
$search_date_delivery_start = ''; | ||
$search_date_delivery_end = ''; | ||
$search_availability = ''; | ||
$search_option = ''; | ||
$search_status = ''; | ||
$search_categ_cus = 0; | ||
$search_fk_cond_reglement = ''; | ||
|
@@ -813,6 +821,9 @@ | |
} | ||
} | ||
} | ||
if ($search_option == 'late') { | ||
$sql .= " AND p.fin_validite < '".$db->idate(dol_now() - $conf->propal->cloture->warning_delay)."'"; | ||
} | ||
// Add where from extra fields | ||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_sql.tpl.php'; | ||
//print $sql; | ||
|
@@ -1716,10 +1727,11 @@ | |
|| !empty($arrayfields['total_margin']['checked']) | ||
|| !empty($arrayfields['total_margin_rate']['checked']) | ||
|| !empty($arrayfields['total_mark_rate']['checked']) | ||
) | ||
) { | ||
$with_margin_info = true; | ||
) | ||
) { | ||
$with_margin_info = true; | ||
} | ||
|
||
$total_ht = 0; | ||
$total_margin = 0; | ||
|
||
|
@@ -1733,6 +1745,9 @@ | |
if (empty($obj)) { | ||
break; // Should not happen | ||
} | ||
if ($search_option) { | ||
$param .= "&search_option=".urlencode($search_option); | ||
} | ||
|
||
$objectstatic->id = $obj->rowid; | ||
$objectstatic->ref = $obj->ref; | ||
|
Oops, something went wrong.