vinna Postado Agosto 19, 2009 Denunciar Share Postado Agosto 19, 2009 Ola pessoal. preciso mt da ajuda de vocês!!N sei se já existe esse tópico em algum lugar aqui mas ai vai a minha duvida.Eu estou constuindo uma tabela e preciso q ela faça contas mas esbarrei em varios problemas.1- o total não soma os centavos2- n consigo utilizar a nossa formatação de numeros(1.000,00><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>PEDIDO INTERNO DE VENDA</title> <script language="JavaScript"> <!-- --> </script> <style type="text/css"> .caixa_alta{ text-transform: uppercase; } </style> <script language=javascript> //MÁSCARA DE VALORES function txtBoxFormat(objeto, sMask, evtKeyPress) { var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla; if(document.all) { // Internet Explorer nTecla = evtKeyPress.keyCode; } else if(document.layers) { // Nestcape nTecla = evtKeyPress.which; } else { nTecla = evtKeyPress.which; if (nTecla == 8) { return true; } } sValue = objeto.value; // Limpa todos os caracteres de formatação que // já estiverem no campo. sValue = sValue.toString().replace( "-", "" ); sValue = sValue.toString().replace( "-", "" ); sValue = sValue.toString().replace( ".", "" ); sValue = sValue.toString().replace( ".", "" ); sValue = sValue.toString().replace( "/", "" ); sValue = sValue.toString().replace( "/", "" ); sValue = sValue.toString().replace( ":", "" ); sValue = sValue.toString().replace( ":", "" ); sValue = sValue.toString().replace( "(", "" ); sValue = sValue.toString().replace( "(", "" ); sValue = sValue.toString().replace( ")", "" ); sValue = sValue.toString().replace( ")", "" ); sValue = sValue.toString().replace( " ", "" ); sValue = sValue.toString().replace( " ", "" ); fldLen = sValue.length; mskLen = sMask.length; i = 0; nCount = 0; sCod = ""; mskLen = fldLen; while (i <= mskLen) { bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/") || (sMask.charAt(i) == ":")) bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " ")) if (bolMask) { sCod += sMask.charAt(i); mskLen++; } else { sCod += sValue.charAt(nCount); nCount++; } i++; } objeto.value = sCod; if (nTecla != 8) { // backspace if (sMask.charAt(i-1) == "9") { // apenas números... return ((nTecla > 47) && (nTecla < 58)); } else { // qualquer caracter... return true; } } else { return true; } } </script> <!---// load jQuery v1.3.1 from the GoogleAPIs CDN //---> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script> <!--// load jQuery Plug-ins //--> <script type="text/javascript" src="../field/jquery.field.js"></script> <script type="text/javascript" src="./jquery.calculation.js"></script> <script type="text/javascript"> var bIsFirebugReady = (!!window.console && !!window.console.log); $(document).ready( function (){ // update the plug-in version $("#idPluginVersion").text($.Calculation.version); /* // test precision $("body").prepend("<div id='nn'></div>"); $("#nn").calc( // the equation to use for the calculation "qty * price", // define the variables used in the equation, these can be a jQuery object { qty: 23, price: 1.4 } ); */ /* $.Calculation.setDefaults({ onParseError: function(){ this.css("backgroundColor", "#cc0000") } , onParseClear: function (){ this.css("backgroundColor", ""); } }); */ // bind the recalc function to the quantity fields $("input[name^=qty_item_]").bind("keyup", recalc); // run the calculation function now recalc(); // automatically update the "#totalSum" field every time // the values are changes via the keyup event $("input[name^=sum]").sum("keyup", "#totalSum"); <!-- // automatically update the "#totalAvg" field every time // the values are changes via the keyup event $("input[name^=avg]").avg({ bind:"keyup" , selector: "#totalAvg" // if an invalid character is found, change the background color , onParseError: function(){ this.css("backgroundColor", "#cc0000") } // if the error has been cleared, reset the bgcolor , onParseClear: function (){ this.css("backgroundColor", "");--> } }); // automatically update the "#minNumber" field every time // the values are changes via the keyup event $("input[name^=min]").min("keyup", "#numberMin"); // automatically update the "#minNumber" field every time // the values are changes via the keyup event $("input[name^=max]").max("keyup", { selector: "#numberMax" , oncalc: function (value, options){ // you can use this to format the value $(options.selector).val(value); } }); // this calculates the sum for some text nodes $("#idTotalTextSum").click( function (){ // get the sum of the elements var sum = $(".textSum").sum(); // update the total $("#totalTextSum").text("$" + sum.toString()); } ); // this calculates the average for some text nodes $("#idTotalTextAvg").click( function (){ // get the average of the elements var avg = $(".textAvg").avg(); // update the total $("#totalTextAvg").text(avg.toString()); } ); } ); function recalc(){ $("input[name^=total_item]").calc( // the equation to use for the calculation "qty * price", // define the variables used in the equation, these can be a jQuery object { qty: $("input[name^=qty_item]"), price: $("input[name^=price_item]") }, // define the formatting callback, the results of the calculation are passed to this function function (s){ // return the number as a dollar amount return ""+ s.toFixed(2) }, // define the finish callback, this runs after the calculation has been complete function ($this){ // sum the total of the $("[id^=total_item]") selector var sum = $this.sum() $("#grandTotal").text( // round the results to 2 digits "" + sum.toFixed(2) ); } ); } function init() { formatCurrency(document.forms[0].campo1, 2, ".", ","); } window.onload = init; </script> </head> <body><form action="" method="get"> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="203" rowspan="6"><img src="Logo Nova CS 2.jpg" alt="Nova CS" width="165" height="63" /></td> <td width="206"> </td> <td width="233"> </td> <td width="130"> </td> <td width="85"> </td> <td width="134"> </td> </tr> <tr> <td></td> <td> </td> <td> </td> <td> </td> <td> </td> <td width="9"> </td> </tr> <tr> <td><font size="2" face="Arial, Helvetica, sans-serif"><b>PEDIDO INTERNO DE VENDA Nº</b></font></td> <td><input type="text" name="Nome3" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="" /></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font size="2" face="Arial, Helvetica, sans-serif">CONSUTOR</font></td> <td><select name="uf" size="1"> <option>-</option> <option>Barbara</option> <option>Islene</option> <option>Janaina</option> <option>Rosana</option> </select></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">DATA</font></td> <td><select name="dia_nasc"> <option value=-1>Dia</option> <option value=01>01</option> <option value=02>02</option> <option value=03>03</option> <option value=04>04</option> <option value=05>05</option> <option value=06>06</option> <option value=07>07</option> <option value=08>08</option> <option value=09>09</option> <option value=10>10</option> <option value=11>11</option> <option value=12>12</option> <option value=13>13</option> <option value=14>14</option> <option value=15>15</option> <option value=16>16</option> <option value=17>17</option> <option value=18>18</option> <option value=19>19</option> <option value=20>20</option> <option value=21>21</option> <option value=22>22</option> <option value=23>23</option> <option value=24>24</option> <option value=25>25</option> <option value=26>26</option> <option value=27>27</option> <option value=28>28</option> <option value=29>29</option> <option value=30>30</option> <option value=31>31</option> </select> <select name="mes_nasc"> <option value=-1>Mês</option> <option value=1>JAN</option> <option value=2>FEV</option> <option value=3>MAR</option> <option value=4>ABR</option> <option value=5>MAI</option> <option value=6>JUN</option> <option value=7>JUL</option> <option value=8>AGO</option> <option value=9>SET</option> <option value=10>OUT</option> <option value=11>NOV</option> <option value=12>DEZ</option> </select> <select name="ano_nasc"> <option value=-1>Ano</option> <option value=2009>2009</option> <option value=2010>2010</option> <option value=2011>2011</option> <option value=2012>2012</option> <option value=2013>2013</option> <option value=2014>2014</option> <option value=2015>2015</option> <option value=2016>2016 <!--</option><option value=1908>1908</option><option value=1909>1909</option><option value=1910>1910</option><option value=1911>1911</option><option value=1912>1912</option><option value=1913>1913</option><option value=1914>1914</option><option value=1915>1915</option><option value=1916>1916</option><option value=1917>1917</option><option value=1918>1918</option><option value=1919>1919</option><option value=1920>1920</option><option value=1921>1921</option><option value=1922>1922</option><option value=1923>1923</option><option value=1924>1924</option><option value=1925>1925</option><option value=1926>1926</option><option value=1927>1927</option><option value=1928>1928</option><option value=1929>1929</option><option value=1930>1930</option><option value=1931>1931</option><option value=1932>1932</option><option value=1933>1933</option><option value=1934>1934</option><option value=1935>1935</option><option value=1936>1936</option><option value=1937>1937</option><option value=1938>1938</option><option value=1939>1939</option><option value=1940>1940</option><option value=1941>1941</option><option value=1942>1942</option><option value=1943>1943</option><option value=1944>1944</option><option value=1945>1945</option><option value=1946>1946</option><option value=1947>1947</option><option value=1948>1948</option><option value=1949>1949</option><option value=1950>1950</option><option value=1951>1951</option><option value=1952>1952</option><option value=1953>1953</option><option value=1954>1954</option><option value=1955>1955</option><option value=1956>1956</option><option value=1957>1957</option><option value=1958>1958</option><option value=1959>1959</option><option value=1960>1960</option><option value=1961>1961</option><option value=1962>1962</option><option value=1963>1963</option><option value=1964>1964</option><option value=1965>1965</option><option value=1966>1966</option><option value=1967>1967</option><option value=1968>1968</option><option value=1969>1969</option><option value=1970>1970</option><option value=1971>1971</option><option value=1972>1972</option><option value=1973>1973</option><option value=1974>1974</option><option value=1975>1975</option><option value=1976>1976</option><option value=1977>1977</option><option value=1978>1978</option><option value=1979>1979</option><option value=1980>1980</option><option value=1981>1981</option><option value=1982>1982</option><option value=1983>1983</option><option value=1984>1984</option><option value=1985>1985</option><option value=1986>1986</option><option value=1987>1987</option><option value=1988>1988</option><option value=1989>1989</option><option value=1990>1990</option><option value=1991>1991</option><option value=1992>1992</option><option value=1993>1993</option><option value=1994>1994</option><option value=1995>1995</option><option value=1996>1996</option><option value=1997>1997</option><option value=1998>1998</option><option value=1999>1999</option><option value=2000>2000</option><option value=2001>2001</option><option value=2002>2002</option>--> </option> </select></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="286"> </td> <td width="49"> </td> <td width="116"> </td> <td width="84"> </td> <td width="158"> </td> <td width="307"> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">NOME EMPRESARIAL (RAZÃO SOCIAL) </font></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta" size="30"></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="999" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="238"><font face="Arial, Helvetica, sans-serif" size="2">CONTATO</font></td> <td width="470"><font face="Arial, Helvetica, sans-serif" size="2">SETOR</font></td> <td width="72"> </td> <td width="72"> </td> <td width="72"> </td> <td width="75"> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta" size="30"></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="187"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="83"><font face="Arial, Helvetica, sans-serif" size="2">RAMAL</font></td> <td width="301"><font face="Arial, Helvetica, sans-serif" size="2">E-MAIL</font></td> <td width="286"> </td> <td width="70"> </td> <td width="73"> </td> </tr> <tr> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="4" /></td> <td> <input type="text" name="Nome" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="" /></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="245"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO DE INSCRIÇÃO CNPJ</font></td> <td width="243"> <font face="Arial, Helvetica, sans-serif" size="2">NÚMERO DE INSCRIÇÃO ESTADUAL</font></td> <td width="306"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO INSCRIÇÃO MUNICIPAL</font></td> <td width="9"> </td> <td width="8"> </td> <td width="189"> </td> </tr> <tr> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="188"><font face="Arial, Helvetica, sans-serif" size="2">ENDEREÇO</font></td> <td width="85"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO</font></td> <td width="144"> <font face="Arial, Helvetica, sans-serif" size="2">COMPLEMENTO</font></td> <td width="128"> </td> <td width="128"> </td> <td width="327"> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="4" /></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="171"><font face="Arial, Helvetica, sans-serif" size="2">CEP</font></td> <td width="179"><font face="Arial, Helvetica, sans-serif" size="2">BAIRRO / DISTRITOO</font></td> <td width="180"><font face="Arial, Helvetica, sans-serif" size="2">MUNICÍPIO</font></td> <td width="105"> </td> <td width="162"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="203"><font face="Arial, Helvetica, sans-serif" size="2">FAX</font></td> </tr> <tr> <td><input type="text" size="20" onkeypress="return txtBoxFormat(this, '99999-999', event);" maxlength="9"></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" size="30" name="n1" class="caixa_alta"></td> <td><select name="uf"> <option value="-1">UF</option> <option value="AC" >AC</option> <option value="AL" >AL</option> <option value="AP" >AP</option> <option value="AM" >AM</option> <option value="BA" >BA</option> <option value="CE" >CE</option> <option value="DF" >DF</option> <option value="ES" >ES</option> <option value="GO" >GO</option> <option value="MA" >MA</option> <option value="MT" >MT</option> <option value="MS" >MS</option> <option value="MG" >MG</option> <option value="PA" >PA</option> <option value="PB" >PB</option> <option value="PR" >PR</option> <option value="PE" >PE</option> <option value="PI" >PI</option> <option value="RJ" >RJ</option> <option value="RN" >RN</option> <option value="RS" >RS</option> <option value="RO" >RO</option> <option value="RR" >RR</option> <option value="SC" >SC</option> <option value="SP" >SP</option> <option value="SE" >SE</option> <option value="TO" >TO</option> </select></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> </tr> </table><br /> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="980"><font face="Arial, Helvetica, sans-serif" size="2">Solicito(amos) que me(nos) forneça(m) o(s) material(ais) e/ou serviço(s) abaixo descrito(s)</font></td> </tr> </table><br /> <table width="983" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="54"> <center> <font face="Arial, Helvetica, sans-serif" size="2">ITEM</font> </center> </td> <td width="76"> <center> <font face="Arial, Helvetica, sans-serif" size="2">QUANT</font> </center> </td> <td width="480"> <center> <font face="Arial, Helvetica, sans-serif" size="2">DESCRIÇÃO</font> </center> </td> <td width="60"> <center> <font face="Arial, Helvetica, sans-serif" size="2">MOEDA</font> </center> </td> <td width="99"> <center> <font face="Arial, Helvetica, sans-serif" size="2">VALOR UNIT</font> </center> </td> <td width="91"> <center> <font face="Arial, Helvetica, sans-serif" size="2">VALOR TOTAL</font> </center> </td> </tr> <tr> <td><center> <font face="Arial, Helvetica, sans-serif" size="2">1</font> </center> </td> <td><center> <input type="text" name="qty_item_1" id="qty_item1" value="" size="2" /> </center> </td> <td> <center> <input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center> <select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center></td> <td><center> <input type="text" name="price_item1" size="8" /> </center> </td> <td><center> <input type="text" name="total_item1" size="8" /> </center> </td> </tr> <tr> <td><center> <font face="Arial, Helvetica, sans-serif" size="2">2</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center><input type="text" name="price_item_1" size="8" /> </center> </td> <td><center><input type="text" name="total_item_1" size="8"/> </center> </td> </tr> <tr> <td><center> <font face="Arial, Helvetica, sans-serif" size="2">3</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center> <input type="text" name="price_item_3" size="8" /> </center> </td> <td><center><input type="text" name="total_item_3" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">4</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center> <input type="text" name="price_item_4" size="8" /> </center> </td> <td><center><input type="text" name="total_item_" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">5</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center><input type="text" name="price_item_5" size="8" /> </center> </td> <td><center><input type="text" name="total_item_5" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">6</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center><input type="text" name="price_item_6" size="8" /> </center> </td> <td><center><input type="text" name="total_item_6" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">7</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center> <input type="text" name="price_item_6" size="8" /> </center> </td> <td><center> <input type="text" name="total_item_6" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">8</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center> <select name="uf2"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center> <input type="text" name="price_item_6" size="8" /> </center> </td> <td><center> <input type="text" name="total_item_6" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">9</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center> <input type="text" name="price_item_7" size="8" /> </center> </td> <td><center> <input type="text" name="total_item_6" size="8"/> </center> </td> </tr> <tr> <td><center><font face="Arial, Helvetica, sans-serif" size="2">10</font> </center> </td> <td><center><input type="text" name="qty_item_1" id="qty_item_1" value="" size="2" /> </center> </td> <td><center><input type="text" name="Nome2" class="caixa_alta" size="80" /> </center> </td> <td><center><select name="uf"> <option value="-1">-</option> <option value="-1">R$</option> <option value="AC" >US$</option> <option value="AL" >U$T</option> </select> </center> </td> <td><center> <input type="text" name="price_item_6" size="8" /> </center> </td> <td><center><input type="text" name="total_item_6" size="8"/> </center> </td> </tr> </table> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="132"> </td> <td width="132"> </td> <td width="132"> </td> <td width="354"> </td> <td width="150"> <center> <font face="Arial, Helvetica, sans-serif" size="2">TOTAL</font> </center> </td> <td width="84" id="grandTotal"> </td> </tr> </table><br /> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="194"><font face="Arial, Helvetica, sans-serif" size="2">CONDIÇÕES DE PAGAMENTO</font></td> <td width="68"> </td> <td width="131"> </td> <td width="131"> </td> <td width="131"> </td> <td width="315"> </td> </tr> <tr> <td><textarea name="n3" cols="100" rows="5" class="caixa_alta"></textarea></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">PRAZO DE ENTREGA</font></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><textarea name="n3" cols="100" rows="2" class="caixa_alta"></textarea></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO ORDEM DE COMPRA DO CLIENTE <textarea name="n2" cols="100" rows="5" class="caixa_alta"></textarea> </font></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">OBSERVAÇÕES</font></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><textarea name="n4" cols="100" rows="5" class="caixa_alta"></textarea></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <table width="985" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="271"><font face="Arial, Helvetica, sans-serif" size="2">NOME RESPONSÁVEL PELAS LICENÇAS</font></td> <td width="48"> </td> <td width="80"> </td> <td width="133"> </td> <td width="133"> </td> <td width="320"> </td> </tr> <tr> <td width="271"><input type="text" name="n1" class="caixa_alta"></td> <td width="48"> </td> <td width="80"> </td> <td width="133"> </td> <td width="133"> </td> <td width="320"> </td> </tr> </table> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="188"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="83"><font face="Arial, Helvetica, sans-serif" size="2">RAMAL</font></td> <td width="637"><font face="Arial, Helvetica, sans-serif" size="2">E-MAIL</font></td> <td width="24"> </td> <td width="24"> </td> <td width="28"> </td> </tr> <tr> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="5" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td> </td> <td> </td> <td> </td> </tr> </table><br> <table width="983" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="332"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO DE SERIE DE PRODUTOS ANTERIORES</font></td> <td width="45"> </td> <td width="19"> </td> <td width="132"> </td> <td width="132"> </td> <td width="323"> </td> </tr> <tr> <td><textarea name="n3" cols="100" rows="3" class="caixa_alta"></textarea></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="983" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="223"><font face="Arial, Helvetica, sans-serif" size="3"><b>ENDEREÇO DE ENTREGA</b></font> <br /> <br /></td> <td width="114"> </td> <td width="56"> </td> <td width="131"> </td> <td width="131"> </td> <td width="314"> </td> </tr> </table><br /> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="188"><font face="Arial, Helvetica, sans-serif" size="2">ENDEREÇO</font></td> <td width="85"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO</font></td> <td width="144"><font face="Arial, Helvetica, sans-serif" size="2">COMPLEMENTO</font></td> <td width="128"> </td> <td width="128"> </td> <td width="311"> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="4" /></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="171"><font face="Arial, Helvetica, sans-serif" size="2">CEP</font></td> <td width="179"><font face="Arial, Helvetica, sans-serif" size="2">BAIRRO / DISTRITOO</font></td> <td width="180"><font face="Arial, Helvetica, sans-serif" size="2">MUNICÍPIO</font></td> <td width="105"> </td> <td width="162"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="203"><font face="Arial, Helvetica, sans-serif" size="2">FAX</font></td> </tr> <tr> <td><input type="text" size="20" onkeypress="return txtBoxFormat(this, '99999-999', event);" maxlength="9"></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" size="30" name="n1" class="caixa_alta"></td> <td><select name="uf"> <option value="-1">UF</option> <option value="AC" >AC</option> <option value="AL" >AL</option> <option value="AP" >AP</option> <option value="AM" >AM</option> <option value="BA" >BA</option> <option value="CE" >CE</option> <option value="DF" >DF</option> <option value="ES" >ES</option> <option value="GO" >GO</option> <option value="MA" >MA</option> <option value="MT" >MT</option> <option value="MS" >MS</option> <option value="MG" >MG</option> <option value="PA" >PA</option> <option value="PB" >PB</option> <option value="PR" >PR</option> <option value="PE" >PE</option> <option value="PI" >PI</option> <option value="RJ" >RJ</option> <option value="RN" >RN</option> <option value="RS" >RS</option> <option value="RO" >RO</option> <option value="RR" >RR</option> <option value="SC" >SC</option> <option value="SP" >SP</option> <option value="SE" >SE</option> <option value="TO" >TO</option> </select></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> </tr> </table><br /> <table width="983" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="223"><font face="Arial, Helvetica, sans-serif" size="3"><b>ENDEREÇO DE COBRANÇA</b></font> <br /> <br /></td> <td width="114"> </td> <td width="56"> </td> <td width="131"> </td> <td width="131"> </td> <td width="314"> </td> </tr> </table><br /> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="188"><font face="Arial, Helvetica, sans-serif" size="2">ENDEREÇO</font></td> <td width="85"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO</font></td> <td width="144"><font face="Arial, Helvetica, sans-serif" size="2">COMPLEMENTO</font></td> <td width="128"> </td> <td width="128"> </td> <td width="311"> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="4" /></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="171"><font face="Arial, Helvetica, sans-serif" size="2">CEP</font></td> <td width="179"><font face="Arial, Helvetica, sans-serif" size="2">BAIRRO / DISTRITOO</font></td> <td width="180"><font face="Arial, Helvetica, sans-serif" size="2">MUNICÍPIO</font></td> <td width="105"> </td> <td width="162"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="203"><font face="Arial, Helvetica, sans-serif" size="2">FAX</font></td> </tr> <tr> <td><input type="text" size="20" onkeypress="return txtBoxFormat(this, '99999-999', event);" maxlength="9"></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" size="30" name="n1" class="caixa_alta"></td> <td><select name="uf"> <option value="-1">UF</option> <option value="AC" >AC</option> <option value="AL" >AL</option> <option value="AP" >AP</option> <option value="AM" >AM</option> <option value="BA" >BA</option> <option value="CE" >CE</option> <option value="DF" >DF</option> <option value="ES" >ES</option> <option value="GO" >GO</option> <option value="MA" >MA</option> <option value="MT" >MT</option> <option value="MS" >MS</option> <option value="MG" >MG</option> <option value="PA" >PA</option> <option value="PB" >PB</option> <option value="PR" >PR</option> <option value="PE" >PE</option> <option value="PI" >PI</option> <option value="RJ" >RJ</option> <option value="RN" >RN</option> <option value="RS" >RS</option> <option value="RO" >RO</option> <option value="RR" >RR</option> <option value="SC" >SC</option> <option value="SP" >SP</option> <option value="SE" >SE</option> <option value="TO" >TO</option> </select></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="203" rowspan="6"><img src="Logo Nova CS 2.jpg" alt="Nova CS" width="165" height="63" /></td> <td width="206"> </td> <td width="233"> </td> <td width="130"> </td> <td width="85"> </td> <td width="134"> </td> </tr> <tr> <td></td> <td> </td> <td> </td> <td> </td> <td> </td> <td width="9"> </td> </tr> <tr> <td><font size="2" face="Arial, Helvetica, sans-serif"><b>PEDIDO INTERNO DE VENDA Nº</b></font></td> <td><input type="text" name="Nome3" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="" /></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font size="2" face="Arial, Helvetica, sans-serif">CONSUTOR</font></td> <td><select name="uf" size="1"> <option>-</option> <option>Barbara</option> <option>Islene</option> <option>Janaina</option> <option>Rosana</option> </select></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">DATA</font></td> <td><select name="dia_nasc"> <option value=-1>Dia</option> <option value=01>01</option> <option value=02>02</option> <option value=03>03</option> <option value=04>04</option> <option value=05>05</option> <option value=06>06</option> <option value=07>07</option> <option value=08>08</option> <option value=09>09</option> <option value=10>10</option> <option value=11>11</option> <option value=12>12</option> <option value=13>13</option> <option value=14>14</option> <option value=15>15</option> <option value=16>16</option> <option value=17>17</option> <option value=18>18</option> <option value=19>19</option> <option value=20>20</option> <option value=21>21</option> <option value=22>22</option> <option value=23>23</option> <option value=24>24</option> <option value=25>25</option> <option value=26>26</option> <option value=27>27</option> <option value=28>28</option> <option value=29>29</option> <option value=30>30</option> <option value=31>31</option> </select> <select name="mes_nasc"> <option value=-1>Mês</option> <option value=1>JAN</option> <option value=2>FEV</option> <option value=3>MAR</option> <option value=4>ABR</option> <option value=5>MAI</option> <option value=6>JUN</option> <option value=7>JUL</option> <option value=8>AGO</option> <option value=9>SET</option> <option value=10>OUT</option> <option value=11>NOV</option> <option value=12>DEZ</option> </select> <select name="ano_nasc"> <option value=-1>Ano</option> <option value=2009>2009</option> <option value=2010>2010</option> <option value=2011>2011</option> <option value=2012>2012</option> <option value=2013>2013</option> <option value=2014>2014</option> <option value=2015>2015</option> <option value=2016>2016 <!--</option><option value=1908>1908</option><option value=1909>1909</option><option value=1910>1910</option><option value=1911>1911</option><option value=1912>1912</option><option value=1913>1913</option><option value=1914>1914</option><option value=1915>1915</option><option value=1916>1916</option><option value=1917>1917</option><option value=1918>1918</option><option value=1919>1919</option><option value=1920>1920</option><option value=1921>1921</option><option value=1922>1922</option><option value=1923>1923</option><option value=1924>1924</option><option value=1925>1925</option><option value=1926>1926</option><option value=1927>1927</option><option value=1928>1928</option><option value=1929>1929</option><option value=1930>1930</option><option value=1931>1931</option><option value=1932>1932</option><option value=1933>1933</option><option value=1934>1934</option><option value=1935>1935</option><option value=1936>1936</option><option value=1937>1937</option><option value=1938>1938</option><option value=1939>1939</option><option value=1940>1940</option><option value=1941>1941</option><option value=1942>1942</option><option value=1943>1943</option><option value=1944>1944</option><option value=1945>1945</option><option value=1946>1946</option><option value=1947>1947</option><option value=1948>1948</option><option value=1949>1949</option><option value=1950>1950</option><option value=1951>1951</option><option value=1952>1952</option><option value=1953>1953</option><option value=1954>1954</option><option value=1955>1955</option><option value=1956>1956</option><option value=1957>1957</option><option value=1958>1958</option><option value=1959>1959</option><option value=1960>1960</option><option value=1961>1961</option><option value=1962>1962</option><option value=1963>1963</option><option value=1964>1964</option><option value=1965>1965</option><option value=1966>1966</option><option value=1967>1967</option><option value=1968>1968</option><option value=1969>1969</option><option value=1970>1970</option><option value=1971>1971</option><option value=1972>1972</option><option value=1973>1973</option><option value=1974>1974</option><option value=1975>1975</option><option value=1976>1976</option><option value=1977>1977</option><option value=1978>1978</option><option value=1979>1979</option><option value=1980>1980</option><option value=1981>1981</option><option value=1982>1982</option><option value=1983>1983</option><option value=1984>1984</option><option value=1985>1985</option><option value=1986>1986</option><option value=1987>1987</option><option value=1988>1988</option><option value=1989>1989</option><option value=1990>1990</option><option value=1991>1991</option><option value=1992>1992</option><option value=1993>1993</option><option value=1994>1994</option><option value=1995>1995</option><option value=1996>1996</option><option value=1997>1997</option><option value=1998>1998</option><option value=1999>1999</option><option value=2000>2000</option><option value=2001>2001</option><option value=2002>2002</option>--> </option> </select></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="210"><font face="Arial, Helvetica, sans-serif" size="3"><b>DADOS PARCEIRO</b></font></td> <td width="54"> </td> <td width="132"> </td> <td width="132"> </td> <td width="132"> </td> <td width="324"> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="286"> </td> <td width="49"> </td> <td width="116"> </td> <td width="84"> </td> <td width="158"> </td> <td width="307"> </td> </tr> <tr> <td><font face="Arial, Helvetica, sans-serif" size="2">NOME EMPRESARIAL (RAZÃO SOCIAL) </font></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta" size="30"></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="999" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="238"><font face="Arial, Helvetica, sans-serif" size="2">CONTATO</font></td> <td width="470"><font face="Arial, Helvetica, sans-serif" size="2">SETOR</font></td> <td width="72"> </td> <td width="72"> </td> <td width="72"> </td> <td width="75"> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta" size="30"></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="187"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="83"><font face="Arial, Helvetica, sans-serif" size="2">RAMAL</font></td> <td width="301"><font face="Arial, Helvetica, sans-serif" size="2">E-MAIL</font></td> <td width="286"> </td> <td width="70"> </td> <td width="73"> </td> </tr> <tr> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="4" /></td> <td> <input type="text" name="Nome" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="" /></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="245"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO DE INSCRIÇÃO CNPJ</font></td> <td width="243"> <font face="Arial, Helvetica, sans-serif" size="2">NÚMERO DE INSCRIÇÃO ESTADUAL</font></td> <td width="306"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO INSCRIÇÃO MUNICIPAL</font></td> <td width="9"> </td> <td width="8"> </td> <td width="189"> </td> </tr> <tr> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="30" /></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="188"><font face="Arial, Helvetica, sans-serif" size="2">ENDEREÇO</font></td> <td width="85"><font face="Arial, Helvetica, sans-serif" size="2">NÚMERO</font></td> <td width="144"> <font face="Arial, Helvetica, sans-serif" size="2">COMPLEMENTO</font></td> <td width="128"> </td> <td width="128"> </td> <td width="327"> </td> </tr> <tr> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" name="Nome2" style="font-size:10pt; background:#FFFFFF; border: 1pt groove #000000;" size="4" /></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td> </td> <td> </td> <td> </td> </tr> </table><br /> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="171"><font face="Arial, Helvetica, sans-serif" size="2">CEP</font></td> <td width="179"><font face="Arial, Helvetica, sans-serif" size="2">BAIRRO / DISTRITOO</font></td> <td width="180"><font face="Arial, Helvetica, sans-serif" size="2">MUNICÍPIO</font></td> <td width="105"> </td> <td width="162"><font face="Arial, Helvetica, sans-serif" size="2">TELEFONE</font></td> <td width="203"><font face="Arial, Helvetica, sans-serif" size="2">FAX</font></td> </tr> <tr> <td><input type="text" size="20" onkeypress="return txtBoxFormat(this, '99999-999', event);" maxlength="9"></td> <td><input type="text" name="n1" class="caixa_alta"></td> <td><input type="text" size="30" name="n1" class="caixa_alta"></td> <td><select name="uf"> <option value="-1">UF</option> <option value="AC" >AC</option> <option value="AL" >AL</option> <option value="AP" >AP</option> <option value="AM" >AM</option> <option value="BA" >BA</option> <option value="CE" >CE</option> <option value="DF" >DF</option> <option value="ES" >ES</option> <option value="GO" >GO</option> <option value="MA" >MA</option> <option value="MT" >MT</option> <option value="MS" >MS</option> <option value="MG" >MG</option> <option value="PA" >PA</option> <option value="PB" >PB</option> <option value="PR" >PR</option> <option value="PE" >PE</option> <option value="PI" >PI</option> <option value="RJ" >RJ</option> <option value="RN" >RN</option> <option value="RS" >RS</option> <option value="RO" >RO</option> <option value="RR" >RR</option> <option value="SC" >SC</option> <option value="SP" >SP</option> <option value="SE" >SE</option> <option value="TO" >TO</option> </select></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> <td><input type="text" size="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="13" /></td> </tr> </table><br /><table width="984" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="221"><font face="Arial, Helvetica, sans-serif" size="2">REGRA NEGOCIADA NA PARCERIA</font></td> <td width="43"> </td> <td width="132"> </td> <td width="132"> </td> <td width="132"> </td> <td width="324"> </td> </tr> <tr> <td width="221"><textarea name="n3" cols="100" rows="5" class="caixa_alta"></textarea></td> <td width="43"> </td> <td width="132"> </td> <td width="132"> </td> <td width="132"> </td> <td width="324"> </td> </tr> </table> </form> </body> </html> Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Jonathan Queiroz Postado Agosto 19, 2009 Denunciar Share Postado Agosto 19, 2009 Recomendo que seja mais objetivo na criação de tópicos. Poste o código completo somente se for algo realmente necessário.Se possível, você pode ainda tentar "remontar" o problema utilizando apenas o código necessário. Em uma página à parte, por exemplo.No caso de erros, poste a descrição.Não cheguei a ler seu código, mas provavelmente o problema está no fato de que o javascript trabalha com pontos para separar as casas decimais.Sendo assim, remova os pontos (que, no Brasil, são os separadores de milhares, ou seja, sem importância) e substitua as vírgulas por pontosvalor=valor.replace(".","").replace(",",".") Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 vinna Postado Agosto 20, 2009 Autor Denunciar Share Postado Agosto 20, 2009 Ok peço desculpas e agradeço pela dica.O meu problema é o seguinte começa q eu n sei nada de javascript e preciso fazer uma tabela com quatro campos, onde:o primeiro campo a pessoa coloque a quantidade, no segundo o preço no terceiro o total, e no quarto um total geral.tipoquantidade:2 / 1preço: 2 / 2total: 4 / 2grande total: 6 e precisaria que a conta fosse com esse tipo de formatação 1.000,00.Se alguém poder me ajudar fico grato. Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Jonathan Queiroz Postado Agosto 20, 2009 Denunciar Share Postado Agosto 20, 2009 Antes de efetuar os cálculos, faça algo mais ou menos assim:variavel_numerica=parseFloat(variavel_numerica.replace(".","").replace(",",".") Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
vinna
Ola pessoal. preciso mt da ajuda de vocês!!
N sei se já existe esse tópico em algum lugar aqui mas ai vai a minha duvida.
Eu estou constuindo uma tabela e preciso q ela faça contas mas esbarrei em varios problemas.
1- o total não soma os centavos
2- n consigo utilizar a nossa formatação de numeros(1.000,00>
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.