Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: 'maskpos/cotiza.forma.php',
- type: "POST",
- data: "submit="+varSubmit,
- async: false,
- success: function(datos){
- cotizaId = datos.replace(/(\r\n|\n|\r)/gm,"");
- $('.fila').each(function(i) {
- filaId = $(this).attr("id");
- var tmpPos = filaId.search("-");
- var tmpId = filaId.substr(tmpPos+1);
- varSubmitDet = varSubmitDet + "&filaDet-" + i + "=";
- varSubmitDet = varSubmitDet + "," + $("#producto_id-"+tmpId).attr('name') + "=" + $("#producto_id-"+tmpId).val();
- varSubmitDet = varSubmitDet + "," + $("#descrip-"+tmpId).attr('name') + "=" + $("#descrip-"+tmpId).val();
- varSubmitDet = varSubmitDet + "," + $("#cantidad-"+tmpId).attr('name') + "=" + $("#cantidad-"+tmpId).val();
- varSubmitDet = varSubmitDet + "," + $("#precio-"+tmpId).attr('name') + "=" + $("#precio-"+tmpId).val();
- varSubmitDet = varSubmitDet + "," + $("#importe-"+tmpId).attr('name') + "=" + $("#importe-"+tmpId).val();
- });
- $.ajax({
- url: 'maskpos/cotiza.forma.php',
- type: "POST",
- async: false,
- data: "status="+status+"&cotizaId="+cotizaId+"&bodegaId="+bodegaId+"&submitdet="+varSubmitDet,
- success: function(debug){
- console.log(debug);
- }
- });
- }
- });
Add Comment
Please, Sign In to add comment