* workflow: use setErrorsFromObject when suitable
* workflow: shipping: use early return in for loop
* workflow: shipping: combine to previous early return
* workflow: shipping: reindent after last changes
No functional changes.
* workflow: reception: use early return when suitable
* workflow: reception: use early return
* workflow: reception: reindent after last changes
No functional changes.
* workflow: ticket: use early return
* workflow: ticket: combine condition through an early return
* workflow: ticket: reindent after last changes
No functional changes.
* workflow: propal: remove else condition after terminal if
* Update interface_20_modWorkflow_WorkflowManager.class.php
* Update interface_20_modWorkflow_WorkflowManager.class.php
* Update interface_20_modWorkflow_WorkflowManager.class.php
* Update interface_20_modWorkflow_WorkflowManager.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* Default customer, category and product when enable TakePOS
* Update cashdesk.lang
* Default category and product when enable TakePOS
Easy setup for TakePOS. Create a category and product when TakePOS is enabled. It checks if TakePOS has already been configured to avoid recreating the category and productif it has already been created.
* Update modTakePos.class.php
* Update modTakePos.class.php
* Update cashdesk.lang
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* societe: add missing model_pdf field
The field is used by the class but wasn't declared.
* societe: expose Societe::mergeCompany
The code is directly copied from societe/card.php with as less changes
as possible.
The original code came from deb91ad7c1.
* societe: remove fields from property copy
$phone_pro and $fk_project are not existing for societe. This was added
from deb91ad7c1.
* SocieteTest: test the merge functionality
This test is a simple smoke test to check that the mergeCompany() will
work correctly on simple case and actually merge the details of the
company.
More complex deduplication pattern with objects referencing the deleted
Societe object, will be written for each of the different object class
in their respective test file.
* societe: card: use the new mergeCompany function
Since the code is almost the same, there should be no differences in
behaviour right now.
* societe: api_thirdparties: use Societe::mergeCompany()
* societe: fix issue when merging companies
When a Societe object is merged against another, its related objects are
supposed to reference the new Societe object so that the databse doesn't
raise foreign key errors.
The list references the objects that need to be transformed, and
Reception objects weren't part of this list.
Fix#26272
* ReceptionTest: check company merge hook
Before a Societe object is destroyed from the database, every object
referencing the FK should be destroyed or should reference another
object.
In the case of two companies being merged, the case arises and Reception
objects need to be moved to the new company. This commit brings a
non-regression test for this case.
Refs #26272
* Update societe.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* FIX - Search product category on list det order
* Search for tag/category
* add search Operator
* Clean
---------
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* NEW : Add custom Text on footer total
This function allows you to add a small text to each invoice below the total.
Just add a miscellaneous parameter to activate it
(to wish the happy new year or an indication of invoicing)
* Update pdf_crabe.modules.php
* Update pdf_crabe.modules.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>