Skip to content
Merged

20.0 #22

Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c396a08
fix const WORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE (#31601)
thomas-Ngr Oct 29, 2024
87fdd4e
FIX #28505 Blank page from thirparty to projects (#31637)
PsyCrow-code Oct 30, 2024
bb3589e
Fix #31670 (#31671)
Humml87 Nov 4, 2024
f1581e9
Update commonobject.class.php (#31667)
Jarod1980 Nov 4, 2024
c580e5f
FIX #30432 make thirdparty code_client and code_compta modifiable via…
iLLixM Nov 4, 2024
578d2fe
Fix #31677 (#31678)
Humml87 Nov 4, 2024
2e4cba0
Fix missing token
eldy Nov 4, 2024
a781211
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 4, 2024
b8286ab
fix: List of UserGroup display wrong count of records( actual: nb gr…
FHenry Nov 5, 2024
56925af
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
eldy Nov 5, 2024
6a01be1
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
eldy Nov 5, 2024
46b80e8
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 5, 2024
141755f
Add more code to help debug
eldy Nov 6, 2024
74ce8c6
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 6, 2024
00b9943
Rename var to make debug easier
eldy Nov 6, 2024
b7821bd
FIX the autofix corrupted vat value must be triggered only if we are
eldy Nov 6, 2024
a9b6e69
FIX column position on PDF of payments
eldy Nov 6, 2024
43fb9db
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
eldy Nov 6, 2024
ce7a364
Add option to test fix of #31696
eldy Nov 6, 2024
0819a57
Better fix for #31015
eldy Nov 6, 2024
bbf83c7
fix dol_getdate() when timestamp is an empty string (#31714)
uvaldenaire-opendsi Nov 6, 2024
bc8d443
FIX: Corrected typo preventing data from being saved (#31716)
atm-quentin Nov 6, 2024
e1b0cb6
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
eldy Nov 6, 2024
bb6c4b2
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 6, 2024
0ab967a
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 6, 2024
434697e
FIX Search on batch code
eldy Nov 6, 2024
9374a31
Fix const INVOICE_USE_RETAINED_WARRANTY (#30533)
thomas-Ngr Nov 7, 2024
a7a18ba
Fix confusing behavior by add hidden conf MAIN_LIST_ORDER_LINK_DONT_U…
thersane-john Nov 7, 2024
1a3e9de
Fix save of error
eldy Nov 9, 2024
5bb34ab
Fix save of error
eldy Nov 9, 2024
c28cd8e
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
eldy Nov 9, 2024
1b36a10
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 9, 2024
83a9070
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
eldy Nov 9, 2024
e17eafa
FIX select variant by attribute. (#31759)
fappels Nov 10, 2024
940324f
fix dol_time_plus_duree with unit egal mn instead i (#31746)
frederic34 Nov 10, 2024
4d29fd4
More complete fix for #31746
eldy Nov 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
$totalonlinkedelements += $element->total_ht;
}
}
dol_syslog("Amount of linked reception = ".$totalonlinkedelements.", of invoice = ".$object->total_ht.", egality is ".($totalonlinkedelements == $object->total_ht), LOG_DEBUG);
if ($totalonlinkedelements == $object->total_ht) {
dol_syslog("Amount of linked reception = ".$totalonlinkedelements.", of invoice = ".$object->total_ht.", egality is ".((string) $totalonlinkedelements == (string) $object->total_ht), LOG_DEBUG);
if ( (string) $totalonlinkedelements == (string) $object->total_ht) {
foreach ($object->linkedObjects['reception'] as $element) {
$ret = $element->setClosed();
if ($ret < 0) {
Expand Down
2 changes: 2 additions & 0 deletions htdocs/install/mysql/migration/17.0.0-18.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -572,3 +572,5 @@ UPDATE llx_menu SET url = '/fourn/paiement/list.php?mainmenu=billing&leftmenu=su

UPDATE llx_paiement SET ref = rowid WHERE ref IS NULL OR ref = '';

-- rename const WORKFLOW_EXPEDITION_CLASSIFY_CLOSED_INVOICE to WORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE
UPDATE llx_const SET name = 'WORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE' WHERE name = 'WORKFLOW_EXPEDITION_CLASSIFY_CLOSED_INVOICE';
6 changes: 3 additions & 3 deletions htdocs/langs/en_US/workflow.lang
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ descWORKFLOW_ORDER_CLASSIFY_SHIPPED_SHIPPING_CLOSED=Classify linked source sales
# Autoclassify purchase proposal
descWORKFLOW_ORDER_CLASSIFY_BILLED_SUPPLIER_PROPOSAL=Classify linked source vendor proposal as billed when vendor invoice is validated (and if the amount of the invoice is the same as the total amount of the linked proposals)
# Autoclassify purchase order
descWORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER=Classify linked source purchase order as billed when vendor invoice is validated (and if the amount of the invoice is the same as the total amount of the linked orders)
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION=Classify linked source purchase order as received when a reception is validated (and if the quantity received by all receptions is the same as in the purchase order to update)
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION_CLOSED=Classify linked source purchase order as received when a reception is closed (and if the quantity received by all rceptions is the same as in the purchase order to update)
descWORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER=Classify linked source purchase orders as billed when vendor invoice is validated (and if the amount of the invoice is the same as the total amount of the linked orders)
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION=Classify linked source purchase orders as received when a reception is validated (and if the quantity received by all receptions is the same as in the purchase order to update)
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION_CLOSED=Classify linked source purchase orders as received when a reception is closed (and if the quantity received by all rceptions is the same as in the purchase order to update)
# Autoclassify shipment
descWORKFLOW_SHIPPING_CLASSIFY_CLOSED_INVOICE=Classify linked source shipment as closed when a customer invoice is validated (and if the amount of the invoice is the same as the total amount of the linked shipments)
descWORKFLOW_SHIPPING_CLASSIFY_BILLED_INVOICE=Classify linked source shipment as billed when a customer invoice is validated (and if the amount of the invoice is the same as the total amount of the linked shipments)
Expand Down
2 changes: 1 addition & 1 deletion htdocs/langs/et_EE/workflow.lang
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ descWORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER=Classify linked sourc
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION=Classify linked source purchase order as received when a reception is validated (and if the quantity received by all receptions is the same as in the purchase order to update)
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION_CLOSED=Classify linked source purchase order as received when a reception is closed (and if the quantity received by all rceptions is the same as in the purchase order to update)
# Autoclassify purchase invoice
descWORKFLOW_EXPEDITION_CLASSIFY_CLOSED_INVOICE=Classify receptions to "billed" when a linked purchase invoice is validated (and if the amount of the invoice is the same as the total amount of the linked receptions)
descWORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE=Classify receptions to "billed" when a linked purchase invoice is validated (and if the amount of the invoice is the same as the total amount of the linked receptions)
# Automatically link ticket to contract
descWORKFLOW_TICKET_LINK_CONTRACT=When creating a ticket, link available contracts of matching thirdparty
descWORKFLOW_TICKET_USE_PARENT_COMPANY_CONTRACTS=When linking contracts, search among those of parents companies
Expand Down
2 changes: 1 addition & 1 deletion htdocs/langs/zh_HK/workflow.lang
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ descWORKFLOW_INVOICE_AMOUNT_CLASSIFY_BILLED_SUPPLIER_ORDER=Classify linked sourc
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION=Classify linked source purchase order as received when a reception is validated (and if the quantity received by all receptions is the same as in the purchase order to update)
descWORKFLOW_ORDER_CLASSIFY_RECEIVED_RECEPTION_CLOSED=Classify linked source purchase order as received when a reception is closed (and if the quantity received by all rceptions is the same as in the purchase order to update)
# Autoclassify purchase invoice
descWORKFLOW_EXPEDITION_CLASSIFY_CLOSED_INVOICE=Classify receptions to "billed" when a linked purchase invoice is validated (and if the amount of the invoice is the same as the total amount of the linked receptions)
descWORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE=Classify receptions to "billed" when a linked purchase invoice is validated (and if the amount of the invoice is the same as the total amount of the linked receptions)
# Automatically link ticket to contract
descWORKFLOW_TICKET_LINK_CONTRACT=When creating a ticket, link available contracts of matching thirdparty
descWORKFLOW_TICKET_USE_PARENT_COMPANY_CONTRACTS=When linking contracts, search among those of parents companies
Expand Down
2 changes: 1 addition & 1 deletion htdocs/reception/class/reception.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ public function setClosed()
}

/**
* Classify the reception as invoiced (used for exemple by trigger when WORKFLOW_RECEPTION_CLASSIFY_BILLED_INVOICE is on)
* Classify the reception as invoiced (used for example by trigger when WORKFLOW_RECEPTION_CLASSIFY_BILLED_INVOICE is on)
*
* @return int Return integer <0 if ko, >0 if ok
*/
Expand Down
2 changes: 1 addition & 1 deletion htdocs/user/group/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
$nbtotalofrecords = '';
if (!getDolGlobalInt('MAIN_DISABLE_FULL_SCANLIST')) {
/* The fast and low memory method to get and count full list converts the sql into a sql count */
$sqlforcount = preg_replace('/^'.preg_quote($sqlfields, '/').'/', 'SELECT COUNT(*) as nbtotalofrecords', $sql);
$sqlforcount = preg_replace('/^'.preg_quote($sqlfields, '/').'/', 'SELECT COUNT(DISTINCT g.rowid) as nbtotalofrecords', $sql);
$sqlforcount = preg_replace('/GROUP BY .*$/', '', $sqlforcount);
$resql = $db->query($sqlforcount);
if ($resql) {
Expand Down