Fix: best method

This commit is contained in:
Regis Houssin 2012-08-30 11:10:17 +02:00
parent ffd6c07003
commit 95c2650160

View File

@ -369,7 +369,9 @@ $(document).ready(function() {
$('#tva_tx').change(function() { $('#tva_tx').change(function() {
if ($(this).val() == 0) { if ($(this).val() == 0) {
$('#price_ttc').attr('disabled','disabled'); if ($('#idprod').val() == 0) {
$('#price_ttc').attr('disabled','disabled');
}
$('#price_ttc').val(''); $('#price_ttc').val('');
} else { } else {
// Enable excl.VAT field // Enable excl.VAT field