INSERT IGNORE INTO terceros(codigo,dni,tipodoc,apellidos,nombres,telfijo,telmovil,ciudadid,zonaterid,gruposperid,escliente,creador,momento) VALUES('98','####98','CEC','VARIOS','TERCERO','','',1,1,1,'S','','2023-12-12 14:01:58'); *INSERT IGNORE INTO documentos(tipodoc,prefijo,numero,periodo,fechadoc,formapago,nrodocref,terid1,terid2,terid3,observacion,base,iva,total,impreso,totalitems,sucursalid,creador,momento) VALUES('PVE','F05','04653','052025','2025-05-12 10:45:43','ES','ESPECIAL',1,1,1,'PEDIDOESPECIALDEPRODUCTOS',150400,0,150400,'N',14,5,'ADMINISTRADOR','2025-05-12 10:45:44'); |SELECTUNO|SELECT docuid FROM documentos WHERE CONCAT(tipodoc,prefijo,numero)='PVEF0504653' **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,62713,8,1,12600,0,12600,0,12600,0,12600); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,46810,8,2,6800,0,13600,0,13600,0,13600); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,62088,8,2,2900,0,5800,0,5800,0,5800); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,40798,8,2,6900,0,13800,0,13800,0,13800); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,34505,8,2,8100,0,16200,0,16200,0,16200); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,46958,8,1,17500,0,17500,0,17500,0,17500); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,51724,8,1,10100,0,10100,0,10100,0,10100); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,65667,8,1,15000,0,15000,0,15000,0,15000); **INSERT INTO dedocumentos(docuid,productoid,bodegaid,cantidad,valunitario,valdescuento,valparcial,porciva,valbase,valiva,valtotal) VALUES(|||||,40799,8,2,22900,0,45800,0,45800,0,45800);