FIX #38458 : don't let user chose line unit on predefined products (#38460)

This commit is contained in:
ThomasNgr-OpenDSI 2026-06-10 20:03:47 +02:00 committed by GitHub
parent 532cea725d
commit 2bebf94b99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1388,7 +1388,7 @@ if (!empty($usemargins) && $user->hasRight('margins', 'creer')) {
<?php if (!getDolGlobalString('DISPLAY_MARK_RATES')) { ?>
jQuery("#np_markRate, .np_markRate").hide();
<?php } ?>
jQuery("#units, #title_units").hide();
jQuery("#units, #title_units, .linecoluseunit .selection").hide();
jQuery("#buying_price").show();
jQuery('#trlinefordates, .divlinefordates').show();
}