private void jTextFieldCmdCliQte1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldCmdCliQte1FocusLost
       
        mondecimal = new DecimalFormat("#######.00");

        // mise ajour qte + calcule
        if (!(jTextFieldCmdCliQte1.getText().equals(""))) {

             
            int qte = Integer.parseInt(jTextFieldCmdCliQte1.getText().trim());
            
            if (qte !=0)
            {
            Float totalht1 = (qte * (Float.valueOf(jTextFieldCmdCliPxHt1.getText().replace(",", "."))));
            jTextFieldCmdCliLg1Totalht1.setText(mondecimal.format(totalht1).replace(",", "."));

            Float totaltva1 = (totalht1 * Float.valueOf(jTextFieldCmdCliLg1Tva1.getText().replace(",", "."))) / 100;

            jTextFieldCmdCliLg1TotalTva1.setText(mondecimal.format(totaltva1).replace(",", "."));
            
            this.TOTALHT = this.TOTALHT + (totalht1);
            this.TOTALTVA = this.TOTALTVA + (totaltva1);
            this.TOTALTTC = this.TOTALTTC + (totalht1) + (totaltva1);
            
            jTextFieldCommandeTotalHT.setText(mondecimal.format(TOTALHT).replace(",", "."));
            jTextFieldComdClientTotalTva.setText(mondecimal.format(TOTALTVA).replace(",", "."));
            
            //traitemnt pour affichage euro
            BigDecimal TOTALGTTC = new BigDecimal(String.valueOf(TOTALTTC));
            NumberFormat t1 = NumberFormat.getCurrencyInstance(Locale.FRANCE);
                               
            jTextFieldcmdClientTotalTtc.setText(t1.format(TOTALGTTC));
            }
            else
            {
                jTextFieldCmdCliLg1Prod1.setText(" ");
                jTextFieldCmdCliLg1TotalTva1.setText(" ");
                jTextFieldCmdCliLg1Totalht1.setText(" ");
                jTextFieldCmdCliLg1Tva1.setText(" ");
                jTextFieldCmdCliQte1.setText("");
                jTextFieldCmdCliPxHt1.setText("");
                
            }

        }
    }//GEN-LAST:event_jTextFieldCmdCliQte1FocusLost