As an administrator, when I create an order with no project selected in the list (optional field), it doesn't show up in the orders list (list area). When I add a project id to this order directly in database, order shows up in the list.
I didn't test other entities, but it might not affect only orders.
You may have discovered a bug.
It is due to V5 new access rights management, that can be different on several projects (different profile can now be defined on each project).
Other entities are not affected as Project is mandatory for most items.
Items that are not Project dependant are correctly managed (Products, Resources, ...)
Item where project is optional are very few :
- document : already taken into account
- bill : was forgotten.
I'll check to be sure there is not other.
Now I wonder why project is not mandatory for bills. Does it really have an interest for you ?
Moveover, for quotes project in mandatory...
(that's why I never faced the issue : I always create bills through copy of quotes)
It's mandatory on invoices/bills for me, you meant orders?
babynus wrote: I'll check to be sure there is not other.
Requirements, tests cases & tests sessions.
babynus wrote: Now I wonder why project is not mandatory for bills. Does it really have an interest for you ?
Moveover, for quotes project in mandatory...
(that's why I never faced the issue : I always create bills through copy of quotes)
I was just testing an order, that's why I didn't fill in all fields, I usually copy from quotations to orders too.
Issue fixed.
Fix is just to replace in /tool/projeqtor.php, line 742
} else if ($accessRightRead=='ALL') {
$queryWhere="($tableAlias$fieldProj not in $listNO or $tableAlias$fieldProj is null)";
if ($listRES) $queryWhere.=" and ($tableAlias$fieldProj not in $listRES or $clauseRES)";
if ($listOWN) $queryWhere.=" and ($tableAlias$fieldProj not in $listOWN or $clauseOWN)";
}
with
} else if ($accessRightRead=='ALL') {
$queryWhere="($tableAlias$fieldProj not in $listNO or $tableAlias$fieldProj is null)";
if ($listRES) $queryWhere.=" and ($tableAlias$fieldProj not in $listRES or $tableAlias$fieldProj is null or $clauseRES)";
if ($listOWN) $queryWhere.=" and ($tableAlias$fieldProj not in $listOWN or $tableAlias$fieldProj is null or $clauseOWN)";
}
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Paramétrages de cookies
×
Cookies fonctionnels
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Veuillez vous connecter pour voir vos activités!
Autres cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.