Merge pull request #16320 from FHenry/13.0

FIX: THIRDPARTY_SUGGEST_ALSO_ADDRESS_CREATION really change select company type
This commit is contained in:
Laurent Destailleur 2021-02-16 19:52:41 +01:00 committed by GitHub
commit 20bfc7cddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1099,14 +1099,18 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
$("#radiocompany").click(function() {
$(".individualline").hide();
$("#typent_id").val(0);
$("#typent_id").change();
$("#effectif_id").val(0);
$("#effectif_id").change();
$("#TypeName").html(document.formsoc.ThirdPartyName.value);
document.formsoc.private.value=0;
});
$("#radioprivate").click(function() {
$(".individualline").show();
$("#typent_id").val(id_te_private);
$("#typent_id").change();
$("#effectif_id").val(id_ef15);
$("#effectif_id").change();
$("#TypeName").html(document.formsoc.LastName.value);
document.formsoc.private.value=1;
});