Add default supplier type handling in card.php in creation mode

This commit is contained in:
Francis 2025-11-30 12:11:16 +01:00 committed by GitHub
parent 190da9cb8c
commit 7b2ceaf177
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1011,8 +1011,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
$private = 0;
}
// by default supplier is a professional
if (GETPOST("type", 'aZ') == 'f') $private = 0;
if (GETPOST("type", 'aZ') == 'f') {
$private = 0;
}
// Load object modCodeClient
$module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON', 'mod_codeclient_leopard');
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {