commit
35c296b00d
@ -952,13 +952,15 @@ if (!empty($usemargins) && $user->rights->margins->creer) {
|
|||||||
var discount = parseFloat($('option:selected', this).attr('data-discount'));
|
var discount = parseFloat($('option:selected', this).attr('data-discount'));
|
||||||
if (isNaN(discount)) { discount = parseFloat(jQuery('#idprodfournprice').attr('data-discount'));}
|
if (isNaN(discount)) { discount = parseFloat(jQuery('#idprodfournprice').attr('data-discount'));}
|
||||||
|
|
||||||
/* var tva_tx = $('option:selected', this).data('tvatx'); */
|
var tva_tx = $('option:selected', this).data('tvatx'); /* FIX21543 */
|
||||||
|
|
||||||
console.log("We find supplier price :"+up+" qty: "+qty+" tva_tx="+tva_tx+" discount: "+discount+" for product "+jQuery('#idprodfournprice').val());
|
console.log("We find supplier price :"+up+" qty: "+qty+" tva_tx="+tva_tx+" discount: "+discount+" for product "+jQuery('#idprodfournprice').val());
|
||||||
|
|
||||||
jQuery("#price_ht").val(up);
|
jQuery("#price_ht").val(up);
|
||||||
/* $('#tva_tx option').removeAttr('selected').filter('[value='+tva_tx+']').prop('selected', true); */
|
/* $('#tva_tx option').removeAttr('selected').filter('[value='+tva_tx+']').prop('selected', true); */
|
||||||
|
|
||||||
|
$('#tva_tx option').val(tva_tx); /* FIX21543 */
|
||||||
|
|
||||||
if (jQuery("#qty").val() < qty) {
|
if (jQuery("#qty").val() < qty) {
|
||||||
jQuery("#qty").val(qty);
|
jQuery("#qty").val(qty);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user