20140106 11:25 INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120420000000,20120420000000,20000101121700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'3','Composi‡Ćo 3','','',0.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,20.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',1,20120420000000,20120520000000,'','',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,2,0,'A','');
INSERT INTO Documento_D3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120420000000,20120420000000,20000101121800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','Artigo 1','CX 5k','',5.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,100.00,2.6600000,20.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,5.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',3,'N/ Nota de cr‚dito',1,20120420000000,20120520000000,'','',123.00,123.00,'C',0.00,123.00,0.00,23.00,0.00,1.000000,2,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,00000000000000,20000101122200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120420000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120702000000,20120702000000,20000101183800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,1,'NOME','','','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'3','Composi‡Ćo 3','','',0.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,20.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',1,20120702000000,20120702000000,'','',246.00,246.00,'C',0.00,246.00,0.00,46.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120702000000,00000000000000,20000101183900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',48.40,0.40,39.60,8.40,48.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120702000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120702000000,00000000000000,20000101183900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120702000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20120702000000,20120702000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',10,'V/ Factura',1,20120702000000,20120702000000,'','C',246.00,246.00,246.00,0.000,0.00,246.00,46.00,23.00,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120702000000,00000000000000,20000101184700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120702000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20120702000000,20120702000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',10,'V/ Factura',1,20120702000000,20120702000000,'','C',246.00,246.00,246.00,0.000,0.00,246.00,0.00,23.00,0,'A','');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20120702000000,20120702000000,20000101185600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'4','Artigo 4','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos_Hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'4',1,'NOME',1000.00,0.00,0.00,20120702000000,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',2,20120702000000,20120702000000,'12121212','',1230.00,1230.00,'C',0.00,1230.00,0.00,230.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20120702000000,00000000000000,20000101185700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120702000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',2,20120702000000,20120702000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,2,'D',10,'V/ Factura',2,20120702000000,20120702000000,'12121212','C',1230.00,1230.00,1230.00,0.000,0.00,1230.00,230.00,115.00,0,'A','');
INSERT INTO Formas_de_Pagamento (idx,num,descricao,n_comp,rsv) VALUES(NULL,1,'CHEQUE S/','','');
INSERT INTO Formas_de_Pagamento (idx,num,descricao,n_comp,rsv) VALUES(NULL,2,'','','');
INSERT INTO Documento_D13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101190900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120702000000,20120702000000,20000101191000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','Artigo 1','CX 5k','',5.000000,2.6600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,13.30,2.6600000,20.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,5.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101190400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,00000000000000,20000101190400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120717000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
SELECT * from  Contas_correntes_Fornecedores where  d_doc>='0' AND d_doc <='20120801'  AND no>=0 AND no<=999999  AND tp<50  order by no;
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp_cco
MySql::mysql=NULL
CREATE TABLE tmp_cco ( TpDoc int(12),  serdoc  char(6),  Numero  int(12),  Valor DOUBLE(16,2) DEFAULT '0.00' NOT NULL,  d_doc datetime, org    char(10), numr   int, numcf  int);
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp2
MySql::mysql=NULL
CREATE TABLE tmp2 ( TpDoc int(12), serdoc  char(6), Numero  int(12), Valor double(16,2) DEFAULT '0.00' NOT NULL, d_doc datetime,numcf  int);
MySql::mysql=NULL
INSERT IGNORE INTO tmp2  Select TpDoc,serdoc,Numero,Sum(Valor),d_doc,numcf  from tmp_cco  group by numcf,TpDoc,serdoc,numero ;
MySql::mysql=NULL
TRUNCATE TABLE Contas_correntes_Clientes;
MySql::mysql=NULL
TRUNCATE TABLE Historico_Contas_correntes_Clientes;
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp3;
MySql::mysql=NULL
CREATE TABLE tmp3 ( Numero int(12), Saldo0 DOUBLE(16,2) DEFAULT '0.00' NOT NULL, Saldo1 DOUBLE(16,2) DEFAULT '0.00' NOT NULL);
MySql::mysql=NULL
INSERT INTO tmp3 Select No,  sum( if(TP<50,credito-debito,0)), sum(credito-debito)  from Contas_correntes_Clientes group by No;
MySql::mysql=NULL
Update Clientes set Clientes.Saldo0=0,Clientes.Saldo1=0
MySql::mysql=NULL
Update Clientes,tmp3 set Clientes.Saldo0=tmp3.Saldo0,Clientes.Saldo1=tmp3.Saldo1  where Clientes.Numero=tmp3.Numero;
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp3;
MySql::mysql=NULL
UPDATE Contas_correntes_Clientes as a, clientes as b set a.rsv=b.zona where a.no=b.numero;
MySql::mysql=NULL
UPDATE Contas_correntes_Clientes as a, clientes as b set a.cor=b.n_vendedor where a.no=b.numero;
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp_cco
MySql::mysql=NULL
CREATE TABLE tmp_cco ( TpDoc int(12),  serdoc  char(6),  Numero  int(12),  Valor DOUBLE(16,2) DEFAULT '0.00' NOT NULL,  d_doc datetime, org    char(10), numr   int, numcf  int);
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp2
MySql::mysql=NULL
CREATE TABLE tmp2 ( TpDoc int(12), serdoc  char(6), Numero  int(12), Valor double(16,2) DEFAULT '0.00' NOT NULL, d_doc datetime,numcf  int);
MySql::mysql=NULL
INSERT IGNORE INTO tmp2  Select TpDoc,serdoc,Numero,Sum(Valor),d_doc,numcf  from tmp_cco  group by numcf,TpDoc,serdoc,numero ;
MySql::mysql=NULL
TRUNCATE TABLE Contas_correntes_Clientes;
MySql::mysql=NULL
TRUNCATE TABLE Historico_Contas_correntes_Clientes;
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp3;
MySql::mysql=NULL
CREATE TABLE tmp3 ( Numero int(12), Saldo0 DOUBLE(16,2) DEFAULT '0.00' NOT NULL, Saldo1 DOUBLE(16,2) DEFAULT '0.00' NOT NULL);
MySql::mysql=NULL
INSERT INTO tmp3 Select No,  sum( if(TP<50,credito-debito,0)), sum(credito-debito)  from Contas_correntes_Clientes group by No;
MySql::mysql=NULL
Update Clientes set Clientes.Saldo0=0,Clientes.Saldo1=0
MySql::mysql=NULL
Update Clientes,tmp3 set Clientes.Saldo0=tmp3.Saldo0,Clientes.Saldo1=tmp3.Saldo1  where Clientes.Numero=tmp3.Numero;
MySql::mysql=NULL
DROP TABLE IF EXISTS tmp3;
MySql::mysql=NULL
UPDATE Contas_correntes_Clientes as a, clientes as b set a.rsv=b.zona where a.no=b.numero;
MySql::mysql=NULL
UPDATE Contas_correntes_Clientes as a, clientes as b set a.cor=b.n_vendedor where a.no=b.numero;
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120920000000,20120920000000,20000101092200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'','TESTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',1,20120920000000,20120920000000,'','',123.00,123.00,'C',0.00,123.00,0.00,23.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20120920000000,00000000000000,20000101092300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120920000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20120920000000,20120920000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',10,'V/ Factura',1,20120920000000,20120920000000,'','C',123.00,123.00,123.00,0.000,0.00,123.00,23.00,11.50,0,'A','');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20120920000000,20120920000000,20000101093300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'','TSTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',2,20120920000000,20120920000000,'','',1230.00,1230.00,'C',0.00,1230.00,0.00,230.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20120920000000,00000000000000,20000101093400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20120920000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',2,20120920000000,20120920000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,2,'D',10,'V/ Factura',2,20120920000000,20120920000000,'','C',1230.00,1230.00,1230.00,0.000,0.00,1230.00,230.00,0.00,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101120300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,20121115000000,20000101120300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','Artigo 1','CX 5k','',5.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,100.00,2.6600000,20.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,5.000,0,'','',0,'A',0,'');
INSERT INTO Tipos_de_documentosD (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,1,'FACTURA/RECIBO','C','',4,'A41.rpt',1,'D','C','S','docsf','FA','S','','N','N/ Factura','','N','N','S','5,6,7','',0,0,'','N','S',0,'N','','','','','E','','','',0,'S','','S','');
INSERT INTO Tipos_de_documentosD (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,8,'FACTURA/RECIBO','C','',4,'A41.rpt',1,'N','C','S','docsf','FA','S','','N','N/ Factura','','N','N','S','5,6,7','',0,0,'','N','S',0,'N','','','','','E','','','',0,'S','','S','');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'DIVERSOS','DIVERSOS',0,'');
Table 'emp0001.artigo' doesn't exist
INSERT IGNORE into Artigos (codigo,codigo2,designacao_1,designacao_2, familia,iva,prc_c_iva_1,prc_c_iva_2)  SELECT Lpad(codigo,5,'0'),Lpad(codigo,5,'0'),nome,nome2,familia,iva,preco1,preco2  FROM artigo 
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'DIVRSOS','DIVRSOS',0,'');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'DIVERSOS','DIVERSOS',0,'');
DROP TABLE IF EXISTS tmpi
CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
CREATE INDEX tmpi_i ON TMPi(codigo);
DROP TABLE IF EXISTS tmp
CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
CREATE INDEX tmp_i ON TMP(codigo);
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),8,0 FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
Table 'emp0001.documento_d8' doesn't exist
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),8,0 FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
UPDATE IGNORE TMP SET ent=0 where ent IS NULL
UPDATE IGNORE TMP SET sai=0 where sai IS NULL
UPDATE IGNORE TMP SET preco=valor/ent where ent>0
UPDATE IGNORE TMP SET preco=0 where ent<=0
DROP TABLE IF EXISTS tmp2
CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
CREATE INDEX tmp2_i ON TMP2(codigo);
INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
DROP TABLE IF EXISTS Inventario;
CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
DROP TABLE IF EXISTS tmpi
CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
CREATE INDEX tmpi_i ON TMPi(codigo);
DROP TABLE IF EXISTS tmp
CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
CREATE INDEX tmp_i ON TMP(codigo);
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),8,0 FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
Table 'emp0001.documento_d8' doesn't exist
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),8,0 FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
UPDATE IGNORE TMP SET ent=0 where ent IS NULL
UPDATE IGNORE TMP SET sai=0 where sai IS NULL
UPDATE IGNORE TMP SET preco=valor/ent where ent>0
UPDATE IGNORE TMP SET preco=0 where ent<=0
DROP TABLE IF EXISTS tmp2
CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
CREATE INDEX tmp2_i ON TMP2(codigo);
INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
DROP TABLE IF EXISTS Inventario;
CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,20121115000000,20000101122200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'3','Composi‡Ćo 3','','',0.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,20.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',1,'N/ Factura',1,20121115000000,20121215000000,'','',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,2,0,'A','');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,00000000000000,20000101122700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121115000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121115000000,20121215000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',1,'N/ Factura',1,20121115000000,20121215000000,'','D',24.60,24.60,24.60,0.000,0.00,24.60,4.60,4.30,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20121115000000,20121115000000,20000101123800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','Artigo 1','CX 5k','',5.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,100.00,2.6600000,20.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,5.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',1,'N/ Factura',2,20121115000000,20121215000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,2,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121115000000,20121115000000,20000101124500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'4','Artigo 4','','',0.000000,1000.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,1000.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',1,'N/ Factura',3,20121115000000,20121215000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,2,0,'A','');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121115000000,20121115000000,20000101125900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'','efefd','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',3,20121115000000,20121115000000,'','',123.00,123.00,'C',0.00,123.00,0.00,23.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121115000000,00000000000000,20000101130000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121115000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',3,20121115000000,20121115000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,3,'D',10,'V/ Factura',3,20121115000000,20121115000000,'','C',123.00,123.00,123.00,0.000,0.00,123.00,23.00,21.50,0,'A','');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,00000000000000,20000101130400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121115000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121115000000,20121215000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',1,'N/ Factura',2,20121115000000,20121215000000,'','D',123.00,123.00,123.00,0.000,0.00,123.00,23.00,21.50,0,'A','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',1,'N/ Factura',3,20121115000000,20121215000000,'','D',1230.00,1230.00,1230.00,0.000,0.00,1230.00,230.00,215.00,0,'A','');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'TABACO','',0,'');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'DIVERSOS','',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'121345454','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Unidades (idx,no,descricao,no_eq,des_eq,coef,rsv) VALUES(NULL,1,'UN',0,'',0.000,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'123','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'DIVERSOS1','DIVERSOS1',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'456','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,63664,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,3,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
INSERT INTO Tipos_de_documentosD (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,13,'COMPRAS','F','',1,'DOC-F.rpt',1,'C','P','E','DOCSF','CO','S','','N','V/ Factura','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO Tipos_de_documentosD (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,14,'COMPRAS','F','',1,'DOC-F.rpt',1,'C','P','E','DOCSF','CO','S','','N','V/ Factura','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,3,'123','Artigo de testes 123','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
Table 'emp0001.documento_linhas_d14' doesn't exist
INSERT INTO tmp SELECT  14,'NOTA DE DEVOLU€ŽO',lnh.num_doc , cab.referencia, cab.d_doc, lnh.quantidade,lnh.preco_unit,lnh.codigo ,lnh.designacao ,cab.no_cf ,cab.nome_cf, lnh.valor/lnh.quantidade  from Documento_linhas_D14 as lnh  left join Documento_D14 as cab on cab.no_doc=lnh.num_doc and cab.serdoc=lnh.serdoc  where codigo='123' 
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Documento_D14 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,20121115000000,20000101142500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D14 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'123','Artigo de testes 123','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'1234','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,rsv) VALUES(NULL,'02','DIVERSOS',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'5678','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'5679','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,4,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv) VALUES(NULL,0,0,0,0,'222','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,00000000000000,20000101150200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121115000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121115000000,20121215000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'R',1,'Recibo',1,20121115000000,20121115000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',1,'Recibo',1,20121115000000,20121115000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121115000000,00000000000000,20000101150600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121115000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121115000000,20121215000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',1,'N/ Factura',1,20121115000000,20121215000000,'','D',24.60,24.60,24.60,0.000,0.00,24.60,0.00,4.30,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20121115000000,20121115000000,20000101151900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'123','Artigo de testes 123','UN','',0.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
Unknown column 'tpdoc' in 'field list'
REPLACE DELAYED HistoricoCaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='4' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FACTURA/RECIBO' , descricao='FACTURA/RECIBO      ' , valor='12.3000' 
Unknown column 'docmov' in 'where clause'
DELETE from HistoricoCaixa_00 where   docmov='D' and tpdoc=1  and numero=4 
Unknown column 'tpdoc' in 'field list'
REPLACE DELAYED HistoricoCaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='4' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='12.3000' 
Unknown column 'tpdoc' in 'field list'
REPLACE DELAYED HistoricoCaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='4' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FACTURA/RECIBO' , descricao='FACTURA/RECIBO      ' , valor='12.3000' 
Unknown column 'docmov' in 'where clause'
DELETE from HistoricoCaixa_00 where   docmov='D' and tpdoc=1  and numero=4 
Unknown column 'tpdoc' in 'field list'
REPLACE DELAYED HistoricoCaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='4' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='12.3000' 
INSERT INTO HistoricoCaixa_00 (idx,data,t_doc,dm,n_tal,tm,mp,h,n_opr,tipodoc,descricao,val_tot,rsv) VALUES(NULL,20121115000000,1,'D',4,'D',0,20000101151900,1,'FACTURA/RECIBO','FACTURA/RECIBO      ',12.30,'');
Unknown column 'tpdoc' in 'field list'
REPLACE DELAYED HistoricoCaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='4' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FACTURA/RECIBO' , descricao='FACTURA/RECIBO      ' , valor='12.3000' 
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20121115000000,20121115000000,20000101153000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,5,'123','Artigo de testes 123','UN','',0.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20121115000000,20121115000000,20000101153400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,6,'123','Artigo de testes 123','UN','',0.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
Table 'emp0001.artigos' doesn't exist
UPDATE Artigos set prc_s_iva_1=(prc_c_iva_1 /(1+(iva /100))) 
Table 'emp0001.artigos' doesn't exist
UPDATE Artigos set mostra=0 where mostra is null 
Table 'emp0001.clientes' doesn't exist
UPDATE documento_d8 as doc,clientes as cli  set doc.nome_cf=cli.nome_1 where cli.numero=doc.no_cf  and length(doc.nome_cf)=0 and doc.no_cf>0
Table 'emp0001.artigos' doesn't exist
UPDATE Artigos set prc_s_iva_1=(prc_c_iva_1 /(1+(iva /100))) 
Table 'emp0001.artigos' doesn't exist
UPDATE Artigos set mostra=0 where mostra is null 
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
Duplicate entry '1' for key 2
INSERT  into documento_d8 (no_doc,d_doc,h_doc,no_cf, nome_cf,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,serdoc)  SELECT  Numero,data,Hora,numero_cf, '',tot_valor,0,tot_valor,0,tot_valor,tot_valor,0,'A'  FROM Vendas where tpdoc=1  AND numero>0 
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,7,0,'',0,0,'',20121115000000,20121115000000,20000101175300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'123','123','tertsfdsgfdsgfd','','tertsfdsgfdsgf',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,10.0000000,0.0000000,12.3000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'','','','','0','','','0','0','0','0','0','0','0','0','0','0','0','0','','','','','0','','0','0','0','0','0','0','0','','0','0','0','0','0','0','','');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,7,'123','tertsfdsgfdsgfd','','',1.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,12.30,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,8,0,'',0,0,'',20121115000000,20121115000000,20000101175800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,8,'123','tertsfdsgfdsgfd','','',1.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,12.30,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,8,'123','tertsfdsgfdsgfd','','',1.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,12.30,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,8,'123','tertsfdsgfdsgfd','','',1.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,12.30,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'456','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20121115000000,20121115000000,20000101180900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,9,'123','tertsfdsgfdsgfd','','',1.000000,12.3000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,12.30,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'789','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Familias__artigos_ (idx,codigo,descricao,grupo,cortexto,corfundo,imagem,link_plu,nome_chupito,nome_combinado,combinado,fonte,tamanho,esconde,rsv) VALUES(NULL,'2','familia 2',0,0,'0','','0','','','0','','0','0','');
DROP TABLE IF EXISTS Mapa1;
CREATE TABLE Mapa1 ( TipoDoc   char(20), NumDoc    int , DataDoc   date, NumCli    int, NomeCli   char(60), Codigo     char(20), Designacao char(60), Qtd        double, PrecoUnit   double, Desconto    double, Iva     double, Valor   double, Custo   double, Familia char(20) );
INSERT into Mapa1 SELECT 'Factura', a.num_doc, c.d_doc, c.no_CF, c.nome_CF, a.codigo, a.designacao, a.quantidade, a.preco_unit, a.desc1, a.iva, a.valor, a.ult_custo, if(art.familia is null,' ',art.familia) as familia  FROM documento_linhas_d2 as a LEFT join documento_d2 as c on c.no_doc=a.num_doc LEFT join artigos  as art on art.codigo=a.codigo WHERE d_doc>='00000000' and d_doc<='00000000' and no_cf>=0 and no_cf<=0 and length(a.codigo)>0 ORDER BY num_doc ;
INSERT into Mapa1 SELECT 'V.Dinheiro', a.num_doc, c.d_doc, c.no_CF, c.nome_CF, a.codigo, a.designacao, a.quantidade, a.preco_unit, a.desc1, a.iva, a.valor, a.ult_custo, if(art.familia is null,' ',art.familia) as familia, FROM documento_linhas_d1 as a LEFT join documento_d1 as c on c.no_doc=a.num_doc LEFT join artigos  as art on art.codigo=a.codigo WHERE d_doc>='00000000' and d_doc<='00000000' and no_cf>=0 and no_cf<=0 and length(a.codigo)>0 ORDER BY num_doc ;
SELECT Concat('Desde ',Min(DataDoc),' Ate ',Max(dataDoc)) as ' ' FROM Mapa1 ;
SELECT Familia, TipoDoc, NumDoc, NumCli , NomeCli , Codigo , Designacao, Qtd , PrecoUnit , Desconto, Iva  , Valor , Custo FROM Mapa1 ORDER BY familia,numdoc ;
SELECT 'Sub-Total por famila' , Familia, Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Familia ORDER BY Familia ;
SELECT 'Sub-Total por Cliente' , Concat(NumCli,'-',NomeCli) , Vendedor , Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Vendedor,NumCli ORDER BY Vendedor,NumCli ;
SELECT 'Total' , Vendedor , Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Vendedor ORDER BY Vendedor ;
INSERT INTO Vendedores (idx,numero,nome,comissao,telefone,lnh_com,rsv,rsv2) VALUES(NULL,1,'',0.00,'',0,'','');
---da todas as linhas que tenham irs SELECT no_doc, d_doc, nome_cf, irs FROM `documento_d10` where irs > 0  ---soma  todas as linhas que tenham irs select sum(irs) as total_irs from `documento_d10`;
SELECT no_doc, d_doc, nome_cf, irs FROM `documento_d10` where irs > 0  select sum(irs) as total_irs from `documento_d10`;
SELECT no_doc, d_doc, nome_cf, irs FROM `documento_d10` where irs > 0;o_d10`
SELECT no_doc, d_doc, nome_cf, irs FROM `documento_d10` where irs > 0;o_d10`
SELECT no_doc, d_doc, nome_cf, irs FROM `documento_d10` ;where irs > 0;_d10`
SELECT no_doc, d_doc, nome_cf, irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0;_d10
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121201000000,00000000000000,20000101142600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121201000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20121201000000,20121201000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',10,'V/ Factura',2,20120920000000,20120920000000,'','C',1230.00,1230.00,1230.00,0.000,0.00,1230.00,0.00,115.00,0,'A','');
INSERT INTO Formas_de_Pagamento (idx,num,descricao,n_comp,rsv) VALUES(NULL,3,'12345678901234567890','','');
INSERT INTO Formas_de_Pagamento (idx,num,descricao,n_comp,rsv) VALUES(NULL,4,'','','');
INSERT INTO Formas_de_Pagamento (idx,num,descricao,n_comp,rsv) VALUES(NULL,5,'','','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121201000000,00000000000000,20000101144700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121201000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20121201000000,20121201000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',10,'V/ Factura',2,20120920000000,20120920000000,'','C',1230.00,1230.00,1230.00,0.000,0.00,1230.00,0.00,115.00,0,'A','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'',0,'2',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,15,0,1,'',0,'3',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,20,0,1,'',0,'4',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,25,0,1,'',0,'5',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,30,0,1,'',0,'6',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,35,0,1,'',0,'7',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,40,0,1,'',0,'8',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,45,0,1,'',0,'9',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,50,0,1,'',0,'10',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,55,0,1,'',0,'11',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,60,0,1,'',0,'12',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,65,0,1,'',0,'13',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,70,0,1,'',0,'14',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,75,0,1,'',0,'15',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,80,0,1,'',0,'16',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,85,0,1,'',0,'17',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101094300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,2,'1','teste','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos_Hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,7,0,'1',1,'NOME',5.00,0.00,0.00,20120920000000,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',2,20120920000000,20120920000000,'','',1236.15,6.15,'C',0.00,6.15,0.00,231.15,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121203000000,20121203000000,20000101094900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Artigos_Hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,13,0,'1',1,'NOME',5.00,0.00,0.00,20121203000000,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'1','teste','','',1.000000,5.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,5.00,5.0000000,5.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',3,20121203000000,20121203000000,'','',7.38,7.38,'C',0.00,7.38,0.00,1.38,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20121204000000,20121204000000,20000101083900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,1,'clnt1','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','teste','','',1.000000,11.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,11.00,6.0000000,5.5000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',2,20121204000000,20121204000000,'','',13.53,13.53,'D',13.53,0.00,0.00,2.53,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121204000000,00000000000000,20000101084000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121204000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121204000000,20121204000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',2,'N/ Factura',2,20121204000000,20121204000000,'','D',13.53,13.53,13.53,0.000,0.00,13.53,2.53,0.00,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121204000000,20121204000000,20000101084900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'','1212121','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',3,20121204000000,20121204000000,'','',0.57,0.57,'D',0.57,0.00,0.00,0.11,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20121204000000,20121204000000,20000101085200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'','1234567890123456789012345678901234567890','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',4,20121204000000,20121204000000,'','',14568073.62,14568073.62,'D',14568073.62,0.00,0.00,2724111.33,0.00,1.000000,0,0,'A','');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20121204000000,20121204000000,20000101090900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,5,'1','teste','UN','',1.000000,11.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,11.00,6.0000000,5.5000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',5,20121204000000,20121204000000,'','',13.53,13.53,'D',13.53,0.00,0.00,2.53,0.00,1.000000,0,0,'A','');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121204000000,20121204000000,'','',13.53,13.53,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121204000000,20121204000000,20000101163200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'1','1','TESTW','','TESTW',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,8.1300000,0.0000000,10.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20121204000000,20121204000000,20000101170000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121204000000,20121204000000,20000101170600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'','1234567890123456789012345678901234567890','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20121205000000,20121205000000,20000101113600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,4,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,4,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20121206000000,20121206000000,20000101141800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20121206000000,20121206000000,20000101141900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,5,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,5,'1','TESTW','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,5,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20121206000000,20121206000000,20000101144000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,6,'','1234567890123456789012345678901234567890','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,6,'','1234545121212121313213121213212312121212','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,6,'1','TESTW','UN','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'1234567890123','1234567890123','€LKJL€K€LK€K€','','€LKJL€K€LK€K€',2,'KG','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,20.0000000,0.0000000,24.6000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'','','0','0','0','0','','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','','0','0','0','0','0','0','0','','0','0','0','0','0','0','0','');
Nombre de columna duplicado 'devolucao'
ALTER IGNORE TABLE Documento_D1 ADD COLUMN  devolucao char(40) AFTER tpdoc ;
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,7,0,'',0,0,'',20121207000000,20121207000000,20000101110800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,1,'CIENTE 1','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,7,'1234567890123','€LKJL€K€LK€K€','KG','',1.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,20.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101111200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,8,0,'',0,0,'',20121207000000,20121207000000,20000101111500,1,'CIENTE 1',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,8,'','GUIA DE TRANSPORTE N. 1 de  7-12-2012','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20121207000000,0,0,0.000,1,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,8,'1','TESTW','UN','',5.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20121207000000,0,0,1.000,1,'','',0,'A',0,'');
INSERT INTO Codigos_Postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4750-169','ARCOZELO BCL','','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20121207000000,20121207000000,20000101114400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,9,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D5 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101121100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D5 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101121200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101121400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1234567890123','€LKJL€K€LK€K€','KG','',1.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,20.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',1,20121207000000,20121207000000,'','',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,10,0,'',0,0,'',20121207000000,20121207000000,20000101122200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,10,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101122500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D12 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101122600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101122700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
INSERT INTO Documento_linhas_D13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,00000000000000,20000101123300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121207000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20121207000000,20121207000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',2,'N/ Factura',1,20121207000000,20121207000000,'','D',24.60,24.60,24.60,0.000,0.00,24.60,4.60,0.00,0,'A','');
INSERT INTO Documento_D10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101123500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Artigos_Hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'1',1,'',4.00,0.00,0.00,20121207000000,'');
INSERT INTO Documento_linhas_D10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',1,20121207000000,20121207000000,'','',4.92,4.92,'C',0.00,4.92,0.00,0.92,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,00000000000000,20000101123500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121207000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20121207000000,20121207000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',10,'V/ Factura',1,20121207000000,20121207000000,'','C',4.92,4.92,4.92,0.000,0.00,4.92,0.92,0.00,0,'A','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',10,'V/ Factura',1,20121207000000,20121207000000,'20120002212121','C',4.92,4.92,4.92,0.000,0.00,4.92,0.00,0.00,0,'A','');
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D4 as l1 ,Documento_D4 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D4 as l1 ,Documento_D4 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D4 as l1 ,Documento_D4 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D4 as l1 ,Documento_D4 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D4 as l1 ,Documento_D4 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 LEFT JOIN Documento_D1 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20130101 AND c1.d_doc <= 20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 LEFT JOIN Documento_D2 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20130101 AND c1.d_doc <= 20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 LEFT JOIN Documento_D3 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20130101 AND c1.d_doc <= 20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D4 as l1 LEFT JOIN Documento_D4 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20130101 AND c1.d_doc <= 20131231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D6 as l1 ,Documento_D6 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D10 as l1 ,Documento_D10 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D20 as l1 ,Documento_D20 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 ,Documento_D1 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 ,Documento_D2 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 ,Documento_D3 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D6 as l1 ,Documento_D6 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D10 as l1 ,Documento_D10 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D20 as l1 ,Documento_D20 as c1 WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D1 as l1 LEFT JOIN Documento_D1 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.d_doc>=00000000 AND c1.d_doc <= 20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D2 as l1 LEFT JOIN Documento_D2 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.d_doc>=00000000 AND c1.d_doc <= 20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D3 as l1 LEFT JOIN Documento_D3 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.d_doc>=00000000 AND c1.d_doc <= 20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D6 as l1 LEFT JOIN Documento_D6 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.d_doc>=00000000 AND c1.d_doc <= 20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D10 as l1 LEFT JOIN Documento_D10 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.d_doc>=00000000 AND c1.d_doc <= 20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  Documento_linhas_D20 as l1 LEFT JOIN Documento_D20 as c1 ON l1.num_doc=c1.no_doc LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.d_doc>=00000000 AND c1.d_doc <= 20121207 AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
INSERT INTO Artigos_Cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1,'1','TESTW',1000.25,0.00,'FA',10,20121207000000,0.00,'');
INSERT INTO Documento_D3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101140700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',3,'N/ Nota de cr‚dito',1,20121207000000,20121207000000,'','',12.00,12.00,'C',0.00,12.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D4 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101140700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D4 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1234567890123','€LKJL€K€LK€K€','KG','',1.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,20.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',4,'N/ Nota de D‚bito',1,20121207000000,20121207000000,'','',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D4 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20121207000000,20121207000000,20000101140700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D4 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',4,'N/ Nota de D‚bito',2,20121207000000,20121207000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,20,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,25,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,30,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,35,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,40,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,45,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,50,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,55,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,60,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,65,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,70,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,75,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,80,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,85,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,90,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,95,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,100,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,105,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,110,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,115,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,120,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,125,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,130,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,135,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,140,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,145,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,150,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,155,0,1,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20121207000000,20121207000000,20000101145800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',2,20121207000000,20121207000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,0,'',0,0,'',20121207000000,20121207000000,20000101150200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,11,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'2','2','133232','','133232',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,1.0000000,0.0000000,1.2300000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'','','0','0','0','0','','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','','0','0','0','0','0','0','0','','0','0','0','0','0','0','0','');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,20,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,25,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,30,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,35,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,40,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,45,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,50,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,55,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,60,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,65,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,70,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,75,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,80,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,85,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,90,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,95,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,100,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,105,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,110,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,115,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,120,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,125,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,130,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,135,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,140,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,145,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,150,0,11,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,15,0,1,'',0,'2',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,20,0,1,'',0,'3',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,25,0,1,'',0,'4',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,30,0,1,'',0,'5',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,35,0,1,'',0,'6',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,40,0,1,'',0,'7',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,45,0,1,'',0,'8',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,50,0,1,'',0,'9',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,55,0,1,'',0,'10',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,60,0,1,'',0,'11',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,65,0,1,'',0,'12',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,70,0,1,'',0,'13',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,75,0,1,'',0,'14',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,80,0,1,'',0,'15',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,85,0,1,'',0,'16',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,90,0,1,'',0,'17',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,95,0,1,'',0,'1',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,100,0,1,'',0,'19',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,105,0,1,'',0,'20',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,110,0,1,'',0,'21',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,115,0,1,'',0,'22',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,120,0,1,'',0,'23',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,125,0,1,'',0,'24',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,15,0,1,'',0,'2',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,20,0,1,'',0,'3',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,25,0,1,'',0,'4',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,30,0,1,'',0,'5',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,35,0,1,'',0,'6',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,40,0,1,'',0,'7',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,45,0,1,'',0,'8',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,50,0,1,'',0,'9',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,55,0,1,'',0,'10',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,60,0,1,'',0,'11',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,65,0,1,'',0,'12',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,70,0,1,'',0,'13',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,75,0,1,'',0,'14',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,80,0,1,'',0,'15',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,85,0,1,'',0,'16',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,90,0,1,'',0,'17',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,95,0,1,'',0,'18',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,100,0,1,'',0,'19',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,105,0,1,'',0,'20',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,110,0,1,'',0,'21',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,115,0,1,'',0,'22',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,120,0,1,'',0,'23',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,125,0,1,'',0,'24',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,130,0,1,'',0,'25',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
INSERT INTO Documento_R2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,00000000000000,20000101161800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20121207000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',1,20121207000000,20121207000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',10,'V/ Factura',1,20121207000000,20121207000000,'20120002212121','C',4.92,4.92,4.92,0.000,0.00,4.92,0.00,0.00,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101162900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101163100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101163100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D4 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20121207000000,20121207000000,20000101163200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,2,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'4521','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121227000000,20121227000000,20000101093200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'4521','ARTIGO NOME DELE','UN','',1.000000,15.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,15.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',3,20121227000000,20121227000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20121227000000,20121227000000,20000101152800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',3,20121227000000,20121227000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,1,0,'A','');
INSERT INTO Artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20121227000000,20121227000000,20000101153000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',4,20121227000000,20121227000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130115000000,00000000000000,20000101183200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20130115000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',2,20130115000000,20130115000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,2,'D',2,'N/ Factura',2,20121207000000,20121207000000,'','D',12.00,12.00,12.00,0.000,0.00,12.00,2.24,0.00,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20130118000000,20130118000000,20000101180900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'','HJGFHMBJKHG KUHJGK','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',4,20130118000000,20130118000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,4,'4521','ARTIGO NOME DELE','UN','',1.000000,15.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,15.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,4,'','HGDFHDDND','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Artigos_Cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,2,'4521','ARTIGO NOME DELE',16.50,0.00,'',4,20130118000000,0.00,'');
INSERT INTO Documento_D7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130122000000,20130122000000,20000101125500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20130122000000,20130122000000,20000101130900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,5,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',5,20130122000000,20130122000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20130122000000,20130122000000,20000101131000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,6,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',6,20130122000000,20130122000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,7,0,'',0,0,'',20130122000000,20130122000000,20000101131200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,7,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',7,20130122000000,20130122000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,8,0,'',0,0,'',20130122000000,20130122000000,20000101141800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,8,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',8,20130122000000,20130122000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130122000000,20130122000000,20000101144100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130122000000,20130122000000,20000101144100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20130123000000,20130123000000,20000101183900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,9,'','VGDDBFB','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,9,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',9,20130123000000,20130123000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130123000000,20130123000000,20000101184700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'','JLGTKJGKLG','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20130123000000,20130123000000,20000101185700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,9,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',9,20130123000000,20130123000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,1,'mgjgjk','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'','gfg','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',1,20130101000000,20130101000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_linhas_D7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'','lnjl‡n‡ln‡','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130126000000,20130126000000,20000101103300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'','LJ€LJ€LJ','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',2,20130126000000,20130126000000,'','',1000.00,1000.00,'D',1000.00,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130126000000,20130126000000,20000101103800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130126000000,20130126000000,20000101103800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D4 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130126000000,20130126000000,20000101103800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,10,0,'',0,0,'',20130130000000,20130130000000,20000101165400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,10,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',10,20130130000000,20130130000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,10,'','ESCREVER MANUALMENTE O','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20130130000000,00000000000000,20000101165700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20130130000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',3,20130130000000,20130130000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,3,'D',2,'N/ Factura',3,20121227000000,20121227000000,'','D',123.00,123.00,123.00,0.000,0.00,123.00,23.00,0.00,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,0,'',0,0,'',20130130000000,20130130000000,20000101165800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,11,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',11,20130130000000,20130130000000,'','',12.00,12.00,'D',12.00,0.00,0.00,2.24,0.00,1.000000,1,0,'A','');
INSERT INTO Documento_D2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,0,'',0,0,'',20130130000000,20130130000000,20000101171100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_R1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130222000000,00000000000000,20000101141500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20130222000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO Historico_Contas_correntes_Clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20130222000000,20130222000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,1,'D',2,'N/ Factura',2,20121207000000,20121207000000,'','D',12.00,12.00,12.00,0.000,0.00,12.00,0.00,0.00,0,'A','');
INSERT INTO RecibosLinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,1,'D',2,'N/ Factura',3,20121227000000,20121227000000,'','D',123.00,123.00,123.00,0.000,0.00,123.00,0.00,0.00,0,'A','');
INSERT INTO Documento_D1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,12,0,'',0,0,'',20130305000000,20130305000000,20000101093500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,20,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,25,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,30,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO Documento_linhas_D1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,35,0,12,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130305000000,00000000000000,20000101162300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20130305000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',2,20130305000000,20130305000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,2,'D',3,'N/ Nota de cr‚dito',1,20121207000000,20121207000000,'','C',-12.00,-12.00,-12.00,0.000,0.00,-12.00,0.00,0.00,0,'A','');
INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,2,'D',2,'N/ Factura',7,20130122000000,20130122000000,'','D',12.00,12.00,12.00,0.000,0.00,12.00,0.00,0.00,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,3,3,'',1,0,'',20130321000000,20130122000000,20000101125500,1,'CIENTE 1',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',117.12,0.00,117.12,26.94,144.06,144.06,0.00,117.12,0.00,0.00,0.00,23.00,13.00,6.00,0.00,26.94,0.00,0.00,0.00,0,'',00000000000000,'EURO',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'1','TESTW','UN','',12.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,117.12,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,3,'',0,0,'',20130321000000,20130118000000,20000101180900,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',1016.50,0.00,1016.50,233.80,1250.30,0.00,1250.30,1016.50,0.00,0.00,0.00,23.00,13.00,6.00,0.00,233.80,0.00,0.00,0.00,0,'',00000000000000,'',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,11,'','HGDFHDDND','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,11,'4521','ARTIGO NOME DELE','UN','',1.000000,16.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,16.50,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,11,'','HJGFHMBJKHG KUHJGK','','',1.000000,1000.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',11,20130321000000,20130321000000,'','',1250.30,1250.30,'D',1250.30,0.00,0.00,233.80,0.00,1.000000,0,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d3 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
UPDATE documento_d3 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
UPDATE documento_d3 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
UPDATE documento_d3 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
INSERT INTO documento_d3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,2,2,0,'',0,0,'',20130322000000,20130322000000,20000101100100,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',1016.50,0.00,1016.50,233.80,1250.30,0.00,1250.30,1016.50,0.00,0.00,0.00,23.00,13.00,6.00,0.00,233.80,0.00,0.00,0.00,0,'',00000000000000,'',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'','FATURA N. 11 de 21-03-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130321000000,0,0,0.000,11,'','',0,'A',0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,2,'','HJGFHMBJKHG KUHJGK','','',1.000000,1000.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130321000000,0,0,0.000,11,'','',0,'A',0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,15,0,2,'4521','ARTIGO NOME DELE','UN','',1.000000,16.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,16.50,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20130321000000,0,0,1.000,11,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',3,'N/ Nota de cr‚dito',2,20130322000000,20130322000000,'','',1250.30,1250.30,'C',0.00,1250.30,0.00,233.80,0.00,1.000000,0,0,'A','');
UPDATE documento_d3 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
UPDATE documento_d4 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
UPDATE documento_d4 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
UPDATE documento_d4 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
UPDATE documento_d2 SET convertido='2' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,14,'GUIA DE TRANSPORTE','F','',1,'GUIAF.rpt',1,'N','C','N','DOCSF','GT','N','','S','N/ G. de transporte','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO documento_d14 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130327000000,20130327000000,20000101155200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d14 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_d14 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130327000000,20130327000000,20000101155300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d14 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,8,'FACTURA PRO-FORMA','C','',1,'proposta.rpt',1,'N','C','N','docs','FP','N','','N','N/ Factura Pro-Forma','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO documento_d8 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130327000000,20130327000000,20000101155500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130327000000,20130327000000,20000101155700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,12,0,'',0,0,'',20130327000000,20130327000000,20000101180800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130327000000,20130327000000,20000101180800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'','asdfasc','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',2,20130327000000,20130327000000,'','',123.00,123.00,'C',0.00,123.00,0.00,23.00,0.00,1.000000,0,0,'A','');
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
DROP TABLE IF EXISTS Mapa1;
CREATE TABLE Mapa1 ( TipoDoc   char(20), NumDoc    int , DataDoc   date, NumCli    int, NomeCli   char(60), Codigo     char(20), Designacao char(60), Qtd        double, PrecoUnit   double, Desconto    double, Iva     double, Valor   double, Custo   double, Familia char(20) );
INSERT into Mapa1 SELECT 'Factura', a.num_doc, c.d_doc, c.no_CF, c.nome_CF, a.codigo, a.designacao, a.quantidade, a.preco_unit, a.desc1, a.iva, a.valor, a.ult_custo, if(art.familia is null,' ',art.familia) as familia  FROM documento_linhas_d2 as a LEFT join documento_d2 as c on c.no_doc=a.num_doc LEFT join artigos  as art on art.codigo=a.codigo WHERE d_doc>='00000000' and d_doc<='00000000' and no_cf>=0 and no_cf<=31 and length(a.codigo)>0 ORDER BY num_doc ;
INSERT into Mapa1 SELECT 'V.Dinheiro', a.num_doc, c.d_doc, c.no_CF, c.nome_CF, a.codigo, a.designacao, a.quantidade, a.preco_unit, a.desc1, a.iva, a.valor, a.ult_custo, if(art.familia is null,' ',art.familia) as familia, FROM documento_linhas_d1 as a LEFT join documento_d1 as c on c.no_doc=a.num_doc LEFT join artigos  as art on art.codigo=a.codigo WHERE d_doc>='00000000' and d_doc<='00000000' and no_cf>=0 and no_cf<=31 and length(a.codigo)>0 ORDER BY num_doc ;
SELECT Concat('Desde ',Min(DataDoc),' Ate ',Max(dataDoc)) as ' ' FROM Mapa1 ;
SELECT Familia, TipoDoc, NumDoc, NumCli , NomeCli , Codigo , Designacao, Qtd , PrecoUnit , Desconto, Iva  , Valor , Custo FROM Mapa1 ORDER BY familia,numdoc ;
SELECT 'Sub-Total por famila' , Familia, Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Familia ORDER BY Familia ;
SELECT 'Sub-Total por Cliente' , Concat(NumCli,'-',NomeCli) , Vendedor , Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Vendedor,NumCli ORDER BY Vendedor,NumCli ;
SELECT 'Total' , Vendedor , Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Vendedor ORDER BY Vendedor ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0  SELECT 'Total' , Vendedor , Round(Sum(ValorComiss),2) FROM Mapa1 GROUP BY Vendedor ORDER BY Vendedor      ;
SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'1234','1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'','','0','0','0','0','','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','','0','0','0','0','0','0','0','','0','0','0','0','0','0','0','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,12,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',12,20130327000000,20130327000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,1,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,1,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',100.00,0.00,'',12,20130327000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,13,0,'',0,0,'',20130404000000,20130404000000,20000101114000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,13,'4521','ARTIGO NOME DELE','UN','',1.000000,15.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,15.00,16.5000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',13,20130404000000,20130404000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,1,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='13' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='13' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='13' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,14,0,'',0,0,'',20130513000000,20130513000000,20000101120000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,14,'1234567890123','€LKJL€K€LK€K€','KG','',1.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,20.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',14,20130513000000,20130513000000,'','',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,14,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,1,'1234567890123','€LKJL€K€LK€K€',22.50,0.00,'',14,20130513000000,0.00,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4500,0,'',0,0,'',00000000000000,00000000000000,20000101151600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20130515000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,15,0,'',0,0,'',20130604000000,20130604000000,20000101160400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='13' and serdoc='A' 
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,15,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',15,20130604000000,20130604000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,1,0,'A','');
SELECT l1.* FROM  documento_linhas_d10 as l1 ,documento_d10 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20121201 AND c1.d_doc<=20121231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d11 as l1 ,documento_d11 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20121201 AND c1.d_doc<=20121231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d12 as l1 ,documento_d12 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20121201 AND c1.d_doc<=20121231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d20 as l1 ,documento_d20 as c1 WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20121201 AND c1.d_doc<=20121231 AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
DROP TABLE IF EXISTS tmpi
CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
CREATE INDEX tmpi_i ON TMPi(codigo);
DROP TABLE IF EXISTS tmp
CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
CREATE INDEX tmp_i ON TMP(codigo);
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
UPDATE IGNORE TMP SET ent=0 where ent IS NULL
UPDATE IGNORE TMP SET sai=0 where sai IS NULL
UPDATE IGNORE TMP SET preco=valor/ent where ent>0
UPDATE IGNORE TMP SET preco=0 where ent<=0
DROP TABLE IF EXISTS tmp2
CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
CREATE INDEX tmp2_i ON TMP2(codigo);
INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
DROP TABLE IF EXISTS Inventario;
CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
Rename table historicocaixa_00 to historicocaixa_00_old 
REPLACE DELAYED historicocaixa_00 SET  data=now() , tpdoc='0' , docmov='M' , numero='0' , tm='E' , mp='0' , h=now() , opr='1' , tipo='ABERTURA' , descricao='' , valor='0.0000' 
La columna 'tpdoc' en field list es desconocida
REPLACE DELAYED historicocaixa_00 SET  data=now() , tpdoc='0' , docmov='M' , numero='0' , tm='E' , mp='0' , h=now() , opr='1' , tipo='ABERTURA' , descricao='' , valor='0.0000' 
INSERT INTO taloes_00 (idx,linhas,d_doc,no_talao,tipo_doc,emitido,no_doc,h_doc,cf,no_cf,nome_cf,desc_perc,linha_prc,no_operador,no_vended,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_rec,val_troco,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,rsv) VALUES(NULL,0,20130625000000,1,1,0,0,20000101000000,'C',0,'',0.00,2,1,0,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20130627000000,20130627000000,20000101120500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20130627000000,20130627000000,20000101120900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,4,'','YTHFJYHFUJFHJK','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20130627000000,20130627000000,20000101121900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,5,'','jdseolgj‡sljg‡sdrfbh‡','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
INSERT INTO documento_d13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20130627000000,20130627000000,20000101124400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,2,'kaehjfl‡v','','','','','','','',0,'','123456789','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
INSERT INTO documento_linhas_d13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,2,'','ddvvdv','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20130628000000,20130628000000,20000101141000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,6,'','TESTE.','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,7,0,'',0,0,'',20130629000000,20130629000000,20000101095900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,7,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,3,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,4,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','','','','','','','','');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,8,0,'',0,0,'',20130629000000,20130629000000,20000101105500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,8,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20130701000000,20130701000000,20000101145000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,9,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='9' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='9' and serdoc='A' 
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,15,'GUIA DE TRANSPORTE','F','',1,'GUIAF.rpt',1,'N','C','N','DOCSGTF','GT','N','','S','N/ G. de transporte','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO documento_d15 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130701000000,20130701000000,20000101165000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d15 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,1,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='9' and serdoc='A' 
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,16,'COMPRAS','F','',1,'DOC-F.rpt',1,'C','P','E','DOCSF','CO','S','','N','V/ Factura','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,8,'GUIA DE TRANSPORTE','C','',3,'A4.rpt',1,'N','C','N','docsgt','GT','N','','S','N/ G. de transporte','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','S','');
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,9,'GUIA DE DEVOLU€ŽO','C','',3,'A4.rpt',1,'N','C','E','docsgt','GD','N','','S','N/ G. de devolu‡Ćo','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','S','');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='9' and serdoc='A' 
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,10,0,'',0,0,'',20130704000000,20130704000000,20000101165500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,10,'','TESTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
DROP TABLE IF EXISTS tmp;
CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
DROP TABLE IF EXISTS tmp2;
CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
SELECT * FROM TMP2 WHERE custo<>compra ;
UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
DROP TABLE IF EXISTS tmp;
CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
DROP TABLE IF EXISTS tmp2;
CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
SELECT * FROM TMP2 WHERE custo<>compra ;
UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
DROP TABLE IF EXISTS tmp;
CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
DROP TABLE IF EXISTS tmp2;
CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
SELECT * FROM TMP2 WHERE custo<>compra ;
UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
DROP TABLE IF EXISTS tmp;
CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
DROP TABLE IF EXISTS tmp2;
CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
SELECT * FROM TMP2 WHERE custo<>compra ;
UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
DROP TABLE IF EXISTS tmp;
CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
DROP TABLE IF EXISTS tmp2;
CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
SELECT * FROM TMP2 WHERE custo<>compra ;
UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d6 SET convertido='0' WHERE no_doc='0' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
DROP TABLE IF EXISTS tmpi
CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
CREATE INDEX tmpi_i ON TMPi(codigo);
DROP TABLE IF EXISTS tmp
CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
CREATE INDEX tmp_i ON TMP(codigo);
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20111031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
UPDATE IGNORE TMP SET ent=0 where ent IS NULL
UPDATE IGNORE TMP SET sai=0 where sai IS NULL
UPDATE IGNORE TMP SET preco=valor/ent where ent>0
UPDATE IGNORE TMP SET preco=0 where ent<=0
DROP TABLE IF EXISTS tmp2
CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
CREATE INDEX tmp2_i ON TMP2(codigo);
INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
DROP TABLE IF EXISTS Inventario;
CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,16,0,'',0,0,'',20130718000000,20130718000000,20000101153500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,16,'','TESTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',16,20130701000000,20130701000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,17,0,'',0,0,'',20130718000000,20130718000000,20000101153700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,17,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',17,20130701000000,20130701000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,18,0,'',0,0,'',20130718000000,20130718000000,20000101153800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,18,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',18,20130718000000,20130718000000,'','',1200.48,1200.48,'D',1200.48,0.00,0.00,224.48,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,19,0,'',0,0,'',20130718000000,20130718000000,20000101153800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,19,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',19,20130718000000,20130718000000,'','',1200.48,1200.48,'D',1200.48,0.00,0.00,224.48,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,20,0,'',0,0,'',20130718000000,20130718000000,20000101153900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,20,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',20,20130718000000,20130718000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,21,0,'',0,0,'',20130718000000,20130718000000,20000101153900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,21,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',21,20130731000000,20130731000000,'','',696.28,696.28,'D',696.28,0.00,0.00,130.20,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,22,0,'',0,0,'',20130718000000,20130718000000,20000101153900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,22,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',22,20130731000000,20130731000000,'','',5426.17,5426.17,'D',5426.17,0.00,0.00,1014.65,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,0,'',0,0,'',20130718000000,20130718000000,20000101175600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,11,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,11,'','confecao a feitio','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_d13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20130724000000,20130724000000,20000101181600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,3,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,23,0,'',0,0,'',20130725000000,20130725000000,20000101183900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,23,'1','TESTW','UN','',1.000000,1000.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.25,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,rsv,prc_s_iva_3,prc_s_iva_4,prc_c_iva_3,prc_c_iva_4,sin_margen,subfamilia,pstock1,preco4,preco5,preco6,pstock2,preco7,preco8,preco9,pstock3,cort,corf,impcoz,imagem,imagem2,fornecedor,balanca,fonte,tamanho,mostra,x,y,combinado,coupon,negativo,impcoz2,mvendido,iva2,venda_unica,modificador,cx,cy,pede_qtd,rsv2) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',23,20130731000000,20130731000000,'','',1230.31,1230.31,'D',1230.31,0.00,0.00,230.06,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,24,0,'',0,0,'',20130725000000,20130725000000,20000101184000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,6,'ANTONIO JOSE, LDA','','','','','','','',0,'','123456789','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','0','','','','0','0','0','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,24,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Factura',24,20130731000000,20130731000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,25,0,'',0,0,'',20130725000000,20130725000000,20000101184100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,25,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Factura',25,20130731000000,20130731000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,6,'1','TESTW',15.00,0.00,'',25,20130731000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,26,0,'',0,0,'',20130725000000,20130725000000,20000101184200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,26,'1','TESTW','UN','',1.000000,1000.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.25,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',26,20130731000000,20130731000000,'','',1230.31,1230.31,'D',1230.31,0.00,0.00,230.06,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,27,0,'',0,0,'',20130725000000,20130725000000,20000101184200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,iva,rsv,meiopag,aviso,email2,web,riesgo,numprov,dni,transpor,ccc,dia_pago1,dia_pago2,numtransp,form_imp,recargo,imagem,credito,pontos,pontos2,rsv2) VALUES(NULL,0,0,0,0,7,'CIENTE 7','','','','','','','',0,'','123456789','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'','','','','','','','','','','','','','0','','','','0','0','0','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,27,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',27,20130731000000,20130731000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,28,0,'',0,0,'',20130725000000,20130725000000,20000101184300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,28,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',28,20130731000000,20130731000000,'','',18.76,18.76,'D',18.76,0.00,0.00,3.51,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,7,'1','TESTW',15.25,0.00,'',28,20130731000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,29,0,'',0,0,'',20130725000000,20130725000000,20000101184300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,29,'1','TESTW','UN','',1.000000,1000.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.25,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',29,20130731000000,20130731000000,'','',1230.31,1230.31,'D',1230.31,0.00,0.00,230.06,0.00,1.000000,1,0,'A','');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',29,20130731000000,20130731000000,'','',1230.31,1230.31,'D',1230.31,0.00,0.00,230.06,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,29,'1','TESTW','UN','',1.000000,15.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,15.25,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',29,20130731000000,20130731000000,'','',18.76,18.76,'D',18.76,0.00,0.00,3.51,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,30,0,'',0,0,'',20130725000000,20130725000000,20000101184500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,30,'1','TESTW','UN','',1.000000,1000.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.25,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',30,20130731000000,20130731000000,'','',615.00,615.00,'D',615.00,0.00,0.00,115.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,30,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,31,0,'',0,0,'',20130725000000,20130725000000,20000101184500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,31,'1','TESTW','UN','',1.000000,1000.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1000.25,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',31,20130731000000,20130731000000,'','',615.00,615.00,'D',615.00,0.00,0.00,115.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,32,0,'',0,0,'',20130725000000,20130725000000,20000101184600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,32,'1','TESTW','UN','',1.000000,500.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,500.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',32,20130731000000,20130731000000,'','',738.00,738.00,'D',738.00,0.00,0.00,138.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,33,0,'',0,0,'',20130725000000,20130725000000,20000101184600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,33,'1','TESTW','UN','',1.000000,600.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,600.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',33,20130731000000,20130731000000,'','',738.00,738.00,'D',738.00,0.00,0.00,138.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,34,0,'',0,0,'',20130725000000,20130725000000,20000101184700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,34,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',34,20130731000000,20130731000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,34,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,35,0,'',0,0,'',20130725000000,20130725000000,20000101184900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,5,0,35,'1','TESTW','UN','',1.000000,600.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,600.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',35,20130731000000,20130731000000,'','',738.00,738.00,'D',738.00,0.00,0.00,138.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,rsv) VALUES(NULL,10,0,35,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,'');
DROP TABLE IF EXISTS tmp;
CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
DROP TABLE IF EXISTS tmp2;
CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
SELECT * FROM TMP2 WHERE custo<>compra ;
UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,36,0,'',0,0,'',20130726000000,20130726000000,20000101123300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,36,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,36,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',36,20130731000000,20130731000000,'','',97.60,97.60,'D',97.60,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='36' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,37,0,'',0,0,'',20130726000000,20130726000000,20000101123900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,37,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,37,'1','TESTW','UN','',0.000000,600.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',37,20130731000000,20130731000000,'','',738.00,738.00,'D',738.00,0.00,0.00,138.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,37,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',37,20130731000000,20130731000000,'','',240.10,240.10,'D',240.10,0.00,0.00,44.90,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,37,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,37,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',37,20130731000000,20130731000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,38,0,'',0,0,'',20130726000000,20130726000000,20000101124300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,38,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',38,20130731000000,20130731000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,13,0,'',0,0,'',20130726000000,20130726000000,20000101125900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,13,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,13,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,39,0,'',0,0,'',20130726000000,20130726000000,20000101131100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,39,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',39,20130731000000,20130731000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,40,0,'',0,0,'',20130726000000,20130726000000,20000101141000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,40,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',40,20130731000000,20130731000000,'','',97.60,97.60,'D',97.60,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,41,0,'',0,0,'',20130726000000,20130726000000,20000101141500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,41,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',41,20130731000000,20130731000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,1,0,'A','');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,8,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,42,0,'',0,0,'',20130726000000,20130726000000,20000101141600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,42,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',42,20130731000000,20130731000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,43,0,'',0,0,'',20130726000000,20130726000000,20000101141900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,43,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',43,20130731000000,20130731000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,0,0,'A','');
INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,22,'','','',0,'',0,'','','','','','N','','N','','','','N','N','','',0,0,'','','',0,'','','','','','','','','',0,'N','','N','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,2,44,0,'',1,0,'',20130731000000,20130731000000,20000101144600,1,'CIENTE 1',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'EURO',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,44,'','GUIA DE TRANSPORTE N. 11 de 18-07-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130718000000,0,0,0.000,11,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,44,'1','TESTW','UN','',125.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20130718000000,0,0,1.000,11,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,44,'','confecao a feitio','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130718000000,0,0,0.000,11,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',44,20130731000000,20130731000000,'','',1883.44,1883.44,'D',1883.44,0.00,0.00,352.19,0.00,1.000000,1,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,44,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,20,0,1,'2','133232',10.00,0.00,'',44,20130731000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,45,0,'',0,0,'',20130726000000,20130726000000,20000101150400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,45,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',45,20130731000000,20130731000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,8,'2','133232',100.00,0.00,'',45,20130731000000,0.00,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='43' and serdoc='A' 
INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,14,0,'',0,0,'',20130726000000,20130726000000,20000101151900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,14,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,46,0,'',0,0,'',20130726000000,20130726000000,20000101153200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_d13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20130727000000,20130727000000,20000101115600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,46,0,'',0,0,'',20130727000000,20130727000000,20000101124000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,46,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,4.0000000,3.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,2,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,46,'','Artigo 6.§ do Decreto-Lei n.§ 198/90, de 19 de  Junho','19 de  Junho','J',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',46,20130731000000,20130731000000,'','',244.00,244.00,'D',244.00,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='46' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='46' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,47,0,'',0,0,'',20130727000000,20130727000000,20000101124100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,47,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,4.0000000,3.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,10,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,47,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',47,20130731000000,20130731000000,'','',1250.00,1250.00,'D',1250.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='47' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,48,0,'',0,0,'',20130727000000,20130727000000,20000101124200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,48,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',48,20130731000000,20130731000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,1,0,'A','');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,49,0,'',0,0,'',20130727000000,20130727000000,20000101124200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,49,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,4.0000000,3.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,2,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,49,'','Artigo 6.§ do Decreto-Lei n.§ 198/90, de 19 de  Junho','19 de  Junho','J',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',49,20130731000000,20130731000000,'','',146.40,146.40,'D',146.40,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,50,0,'',0,0,'',20130727000000,20130727000000,20000101124600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,50,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',50,20130731000000,20130731000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,50,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,51,0,'',0,0,'',20130730000000,20130730000000,20000101172400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,51,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,17,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,51,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',51,20130731000000,20130731000000,'','',10.00,10.00,'D',10.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20130731000000,20130731000000,20000101102600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,3,'2','133232','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,17,'');
INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,3,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'2',1,'FORNECWSOE N. 1',25.00,0.00,0.00,20130731000000,'');
INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',3,20130731000000,20130731000000,'','',250.00,250.00,'C',0.00,250.00,0.00,0.00,0.00,1.000000,0,0,'A','');
SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d11 as l1 LEFT JOIN documento_d11 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d12 as l1 LEFT JOIN documento_d12 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,2,'2','133232','','',0.000000,25.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,25.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,17,'');
INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,2,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d11 as l1 LEFT JOIN documento_d11 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d12 as l1 LEFT JOIN documento_d12 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON l1.num_doc=c1.no_doc WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND l1.num_doc=c1.no_doc AND c1.d_doc>=20130301 AND c1.d_doc<=20130331 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2013-03-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2013-03-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
INSERT INTO documento_d8 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101140500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
UPDATE documento_d13 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
UPDATE documento_d13 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
UPDATE documento_d13 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
UPDATE documento_d13 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
UPDATE documento_d6 SET convertido='0' WHERE no_doc='0' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d1 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d3 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
INSERT INTO documento_d4 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20130731000000,20130731000000,20000101141500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d4 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,3,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,4.0000000,3.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
INSERT INTO documento_linhas_d4 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,3,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',4,'N/ Nota de D‚bito',3,20130731000000,20130731000000,'','',97.60,97.60,'D',97.60,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
UPDATE documento_d8 SET convertido='0' WHERE no_doc='0' and serdoc='A' 
UPDATE documento_d15 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
INSERT INTO documento_d8 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20130731000000,20130731000000,20000101141900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d8 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,4.0000000,3.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
INSERT INTO documento_linhas_d8 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,1,'teste','','','','','','','',0,'','123456789','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'jhk','jhk','produto teste','','produto teste',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'jhk','produto teste','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,52,0,'',0,0,'',20130819000000,20130819000000,20000101104800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,52,'4521','ARTIGO NOME DELE','UN','',0.000000,15.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,16.5000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,52,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,52,0,'',0,0,'',20130819000000,20130819000000,20000101104900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,52,'4521','ARTIGO NOME DELE','UN','',0.000000,15.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,16.5000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,2,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,52,'','Artigo 6.§ do Decreto-Lei n.§ 198/90, de 19 de  Junho','19 de  Junho','J',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',52,20130819000000,20130819000000,'','',15.00,15.00,'D',15.00,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,53,0,'',0,0,'',20130826000000,20130826000000,20000101121700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,53,'1234567890123','€LKJL€K€LK€K€','KG','',0.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,2,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,53,'','Artigo 6.§ do Decreto-Lei n.§ 198/90, de 19 de  Junho','19 de  Junho','J',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',53,20130826000000,20130826000000,'','',20.00,20.00,'D',20.00,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,54,0,'',0,0,'',20130826000000,20130826000000,20000101124100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,54,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,25.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',54,20130826000000,20130826000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,54,'','teste de escrita','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,7,'2','133232',2.25,0.00,'',54,20130826000000,0.00,'');
INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20130903000000,0,0,'',0,'','',0.00,3,0,'','','','');
UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20130903000000,0,0,'',1,'4521234567890','',0.00,3,0,'','','','');
UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20130903000000,0,0,'',1,'4521234567890','',0.00,3,0,'','','','');
INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20130903000000,0,0,'',0,'','',0.00,3,0,'','','','');
INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20130903000000,0,0,'',0,'','',0.00,3,0,'','','','');
INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20130903000000,0,0,'',0,'','',0.00,4,0,'','','','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,55,0,'',0,0,'',20130903000000,20130903000000,20000101114000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,55,0,'',0,0,'',20130903000000,20130903000000,20000101114200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,55,'2','133232','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,25.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',55,20130903000000,20130903000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,55,'','AVDGVDDGV','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,2,'2','133232',2.50,0.00,'',55,20130903000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,56,0,'',0,0,'',20130903000000,20130903000000,20000101114200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,56,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Factura',56,20130903000000,20130903000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,7,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',100.00,0.00,'',56,20130903000000,0.00,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='54' and serdoc='A' 
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,12,0,'',0,0,'',20130903000000,20130903000000,20000101114700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,12,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,25.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,17,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,12,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='54' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='54' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='54' and serdoc='A' 
INSERT INTO documento_d9 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101143900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
UPDATE documento_d13 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'1','1',0,'');
INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'1','1',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,55,0,'',0,0,'',20130903000000,20130903000000,20000101180600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,55,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,25.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,17,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,55,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',55,20130903000000,20130903000000,'','',1.00,1.00,'D',1.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,56,0,'',0,0,'',20130904000000,20130904000000,20000101165700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,56,'4521','ARTIGO NOME DELE','UN','',0.000000,15.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,16.5000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,56,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',56,20130904000000,20130904000000,'','',15.00,15.00,'D',15.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,12,0,'',0,0,'',20130910000000,20130910000000,20000101160900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,12,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,12,'','ESCREVER  TEXTO LIVRE ESCREVER','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,12,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,55,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,55,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',55,20130903000000,20130903000000,'','',1.00,1.00,'D',1.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'200051','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='8' and serdoc='A' 
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,9,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,56,0,'',0,0,'',20130917000000,20130917000000,20000101143500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,56,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,4.0000000,3.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,56,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',56,20130917000000,20130917000000,'','',9.76,9.76,'D',9.76,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='56' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,57,0,'',0,0,'',20130917000000,20130917000000,20000101143600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,57,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'D',2,'N/ Factura',57,20130917000000,20130917000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,0,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='57' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,58,0,'',0,0,'',20130917000000,20130917000000,20000101143700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,58,'200051','POLO','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,15,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,58,'','IVA - nĆo confere direito a dedu‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',58,20130917000000,20130917000000,'','',1000.00,1000.00,'D',1000.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,25,0,1,'200051','POLO',1000.00,0.00,'',58,20130917000000,0.00,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='57' and serdoc='A' 
INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20130917000000,20130917000000,20000101144500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'200051',2,'kaehjfl‡v',10.00,0.00,0.00,20130917000000,'');
INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Factura',4,20130917000000,20130917000000,'','',12.30,12.30,'C',0.00,12.30,0.00,2.30,0.00,1.000000,0,0,'A','');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,59,0,'',0,0,'',20130917000000,20130917000000,20000101144700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,59,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,10.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,15,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,59,'','IVA - nĆo confere direito a dedu‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',59,20130917000000,20130917000000,'','',30.00,30.00,'D',30.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20130917000000,00000000000000,20000101145100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20130917000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'R',1,'Recibo',3,20130917000000,20130917000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,3,'D',2,'N/ Factura',57,20130917000000,20130917000000,'','D',120.05,120.05,120.05,0.000,0.00,120.05,22.45,0.00,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,60,0,'',0,0,'',20130925000000,20130925000000,20000101174600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,60,'200051','POLO','','',1.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,30.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Factura',60,20130925000000,20130925000000,'','',36.90,36.90,'D',36.90,0.00,0.00,6.90,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,60,'','wajhgdjgjcj jhgcahjgsvjhdvg','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,15,0,'',0,0,'',20130925000000,20130925000000,20000101175000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,99,'CONSUMIDOR FINAL','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'P','P','PRESTACAO DE SERVI€OS','','PRESTACAO DE',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,15,'P','PRESTACAO DE SERVI€OS','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,15,'P','PRESTACAO DE SERVI€OS','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,15,'','INTERVENCAO TECNICA XXXX','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,15,'','HDKJSHDJSHDJS HFJS','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,99,'P','PRESTACAO DE SERVI€OS',50.00,0.00,'',15,20130925000000,0.00,'');
INSERT INTO documento_d13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20130926000000,20130926000000,20000101180800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,5,'200051','POLO','','',0.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,10.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,15,'');
INSERT INTO documento_linhas_d13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,5,'','IVA - nĆo confere direito a dedu‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d13 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,5,'','hegsjgsfjsfgc','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='60' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,61,0,'',1,0,'',20131007000000,20131007000000,20000101095700,1,'CIENTE 1',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',117.12,0.00,117.12,26.94,144.06,0.00,144.06,117.12,0.00,0.00,0.00,23.00,13.00,6.00,0.00,26.94,0.00,0.00,0.00,0,'',00000000000000,'EURO',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,61,'','GUIA DE TRANSPORTE N. 2 de 22-01-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130122000000,0,0,0.000,2,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,61,'1','TESTW','UN','',12.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,117.12,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20130122000000,0,0,1.000,2,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',61,20131007000000,20131007000000,'','',144.06,144.06,'D',144.06,0.00,0.00,26.94,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,62,0,'',0,0,'',20131007000000,20131007000000,20000101170300,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,62,'','GUIA DE TRANSPORTE N. 12 de 10-09-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130910000000,0,0,0.000,12,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,62,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1000.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20130910000000,0,0,1.000,12,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,62,'','ESCREVER  TEXTO LIVRE ESCREVER','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130910000000,0,0,0.000,12,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,62,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130910000000,0,0,0.000,12,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',62,20131007000000,20131007000000,'','',12300.00,12300.00,'D',12300.00,0.00,0.00,2300.00,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,2,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',10.00,0.00,'',62,20131007000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,63,0,'',0,0,'',20131007000000,20131007000000,20000101172500,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,63,'','GUIA DE TRANSPORTE N. 10 de  4-07-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130704000000,0,0,0.000,10,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,63,'','TESTE','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130704000000,0,0,0.000,10,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',63,20131007000000,20131007000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,64,0,'',0,0,'',20131007000000,20131007000000,20000101172600,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,64,'','GUIA DE TRANSPORTE N. 12 de 10-09-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130910000000,0,0,0.000,12,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,64,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1000.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20130910000000,0,0,1.000,12,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,64,'','ESCREVER  TEXTO LIVRE ESCREVER','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130910000000,0,0,0.000,12,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,64,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130910000000,0,0,0.000,12,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',64,20131007000000,20131007000000,'','',12300.00,12300.00,'D',12300.00,0.00,0.00,2300.00,0.00,1.000000,0,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,65,0,'',1,0,'',20131007000000,20131007000000,20000101172700,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',195.20,0.00,195.20,44.90,240.10,0.00,240.10,195.20,0.00,0.00,0.00,23.00,13.00,6.00,0.00,44.90,0.00,0.00,0.00,0,'',00000000000000,'EURO',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,65,'','GUIA DE TRANSPORTE N. 3 de 21-03-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130321000000,0,0,0.000,3,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,65,'1','TESTW','UN','',20.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,195.20,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20130321000000,0,0,1.000,3,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',65,20131007000000,20131007000000,'','',240.10,240.10,'D',240.10,0.00,0.00,44.90,0.00,1.000000,1,0,'A','');
UPDATE documento_d7 SET convertido='44' WHERE no_doc='11' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,66,0,'',0,0,'008427615',20131007000000,20131007000000,20000101172800,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',100.00,0.00,100.00,23.00,123.00,0.00,123.00,100.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,23.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,66,'','GUIA DE TRANSPORTE N. 5 de 27-06-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130627000000,0,0,0.000,5,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,66,'','jdseolgj‡sljg‡sdrfbh‡','','',10.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,100.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20130627000000,0,0,0.000,5,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',66,20131007000000,20131007000000,'008427615','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,0,0,'A','');
UPDATE documento_d7 SET convertido='66' WHERE no_doc='5' and serdoc='A' 
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,13,0,'',0,0,'',20131007000000,20131007000000,20000101172800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_d3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,1,3,0,'',0,0,'',20131007000000,20131007000000,20000101173300,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',100.00,0.00,100.00,23.00,123.00,0.00,123.00,100.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,23.00,0.00,0.00,0.00,0,'',00000000000000,'',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,3,'','FATURA N. 66 de  7-10-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,66,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,3,'','GUIA DE TRANSPORTE N. 5 de 27-06-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,66,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,3,'','jdseolgj‡sljg‡sdrfbh‡','','',10.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,100.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,66,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',3,'N/ Nota de cr‚dito',3,20131007000000,20131007000000,'','',123.00,123.00,'C',0.00,123.00,0.00,23.00,0.00,1.000000,0,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='65' and serdoc='A' 
INSERT INTO documento_d3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,4,4,0,'',0,0,'',20131007000000,20131007000000,20000101173300,2,'JOAQUIM JOSE',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',10000.00,0.00,10000.00,2300.00,12300.00,0.00,12300.00,10000.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,2300.00,0.00,0.00,0.00,0,'',00000000000000,'',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,4,'','FATURA N. 64 de  7-10-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,64,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,4,'','GUIA DE TRANSPORTE N. 12 de 10-09-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,64,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,4,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',1000.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10000.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,20131007000000,0,0,1.000,64,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,4,'','ESCREVER  TEXTO LIVRE ESCREVER','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,64,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131007000000,0,0,0.000,64,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',3,'N/ Nota de cr‚dito',4,20131007000000,20131007000000,'','',12300.00,12300.00,'C',0.00,12300.00,0.00,2300.00,0.00,1.000000,0,0,'A','');
UPDATE documento_d2 SET convertido='4' WHERE no_doc='64' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='66' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='66' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,67,0,'',0,0,'',20131008000000,20131008000000,20000101154400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,67,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,67,'P','PRESTACAO DE SERVI€OS','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',67,20131008000000,20131008000000,'','',2306.25,2306.25,'D',2306.25,0.00,0.00,431.25,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,2,'P','PRESTACAO DE SERVI€OS',10.00,0.00,'',67,20131008000000,0.00,'');
INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20131008000000,00000000000000,20000101161100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20131008000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',1,'Recibo',4,20131008000000,20131008000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,4,'D',2,'N/ Factura',4,20130118000000,20130118000000,'','D',1250.30,1250.30,1250.30,0.000,0.00,1250.30,0.00,0.00,0,'A','');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='67' and serdoc='A' 
INSERT INTO documento_d6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20131009000000,20131009000000,20000101094700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,10.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,15,'');
INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'','IVA - nĆo confere direito a dedu‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
UPDATE documento_d6 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
UPDATE documento_d6 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
DROP TABLE IF EXISTS tmpi
CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
CREATE INDEX tmpi_i ON TMPi(codigo);
DROP TABLE IF EXISTS tmp
CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
CREATE INDEX tmp_i ON TMP(codigo);
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
UPDATE IGNORE TMP SET ent=0 where ent IS NULL
UPDATE IGNORE TMP SET sai=0 where sai IS NULL
UPDATE IGNORE TMP SET preco=valor/ent where ent>0
UPDATE IGNORE TMP SET preco=0 where ent<=0
DROP TABLE IF EXISTS tmp2
CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
CREATE INDEX tmp2_i ON TMP2(codigo);
INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
DROP TABLE IF EXISTS Inventario;
CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON l1.num_doc=c1.no_doc WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON l1.num_doc=c1.no_doc WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON l1.num_doc=c1.no_doc WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d6 as l1 LEFT JOIN documento_d6 as c1 ON l1.num_doc=c1.no_doc WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON l1.num_doc=c1.no_doc WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON l1.num_doc=c1.no_doc WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
UPDATE documento_d2 SET convertido='0' WHERE no_doc='67' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,68,0,'',0,0,'',20131014000000,20131014000000,20000101095300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,68,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,25.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,17,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,68,'','IVA - Regime de isen‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',68,20131014000000,20131014000000,'','',10.00,10.00,'D',10.00,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,69,0,'',0,0,'',20131014000000,20131014000000,20000101100200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,69,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,69,'2','133232','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,25.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',69,20131014000000,20131014000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,69,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,13,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='69' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='69' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,70,0,'',0,0,'',20131014000000,20131014000000,20000101124400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,70,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',70,20131014000000,20131014000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,70,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,71,0,'',0,0,'',20131024000000,20131024000000,20000101180800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,71,'1','TESTW','UN','',0.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',71,20131024000000,20131024000000,'','',120.05,120.05,'D',120.05,0.00,0.00,22.45,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,71,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,72,0,'',0,0,'',20131024000000,20131024000000,20000101181100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,72,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',72,20131024000000,20131024000000,'','',36.90,36.90,'D',36.90,0.00,0.00,6.90,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,72,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'3456','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
INSERT INTO documento_d6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20131207000000,20131207000000,20000101121000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'3456','CAL€A ALGODAO 50%','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,10,'');
INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,2,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_d6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20131207000000,20131207000000,20000101121100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'','CALCA SFKJDKK DF KF H','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,2,'','TAMANHO: XL','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
UPDATE documento_d6 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,73,0,'',1,0,'',20131207000000,20131207000000,20000101121500,1,'nome do clienmtetet',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'EURO',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,73,'','GUIA DE REMESSA N. 2 de  7-12-2013','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131207000000,0,0,0.000,2,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,73,'','CALCA SFKJDKK DF KF H','','',1000.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131207000000,0,0,0.000,2,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,73,'','TAMANHO: XL','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20131207000000,0,0,0.000,2,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',73,20131207000000,20131207000000,'','',1537.50,1537.50,'D',1537.50,0.00,0.00,287.50,0.00,1.000000,1,0,'A','');
INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,14,0,'',0,0,'',20131213000000,20131213000000,20000101151800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,14,'','ORDEM DE FACVTRVHGKB','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,100,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,1452,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'121212','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,74,0,'',0,0,'',20131216000000,20131216000000,20000101182500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,74,'3456','CAL€A ALGODAO 50%','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,74,'3456','CAL€A ALGODAO 50%','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,100,'D',2,'N/ Factura',74,20131216000000,20131216000000,'','',41.51,41.51,'D',41.51,0.00,0.00,7.76,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,74,'121212','m,kbm,bm,bm,b,m','','',0.000000,12.2000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,74,'','ijgilfcjghkljhklg‡ ygj‡§ lmh,kjmgh§l‡kmn','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,74,'','ghfghfghf','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,30,0,74,'','jhjhkuj','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,100,'3456','CAL€A ALGODAO 50%',0.25,0.00,'',74,20131216000000,0.00,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,100,'121212','m,kbm,bm,bm,b,m',14.25,0.00,'',74,20131216000000,0.00,'');
INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,16,0,'',0,0,'',20131216000000,20131216000000,20000101182800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,16,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,100,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',12121.00,0.00,'',16,20131216000000,0.00,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,75,0,'',0,0,'',20131216000000,20131216000000,20000101183000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,75,'200051','POLO','','',0.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,100,'D',2,'N/ Factura',75,20131216000000,20131216000000,'','',369.00,369.00,'D',369.00,0.00,0.00,69.00,0.00,1.000000,0,0,'A','');
INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20131216000000,00000000000000,20000101183400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20131216000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,100,'R',1,'Recibo',5,20131216000000,20131216000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,5,'D',2,'N/ Factura',74,20131216000000,20131216000000,'','D',1481.84,1481.84,1481.84,0.000,0.00,1481.84,0.00,0.00,0,'A','');
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,125,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'212421','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,75,0,'',0,0,'',20131216000000,20131216000000,20000101184800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,75,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,125,'D',2,'N/ Factura',75,20131216000000,20131216000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,0,0,'A','');
INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,125,'1234','ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',100.00,0.00,'',75,20131216000000,0.00,'');
UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d2 SET convertido='0' WHERE no_doc='75' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,124,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,76,0,'',0,0,'',20140106000000,20140106000000,20000101112400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,76,'','SERVICO DE MAONKDSF','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,124,'D',2,'N/ Factura',76,20140106000000,20140106000000,'','',10000.00,10000.00,'D',10000.00,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,76,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140115 12:06 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140115 12:06 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140115 12:06 UPDATE documento_d1 SET convertido='0' WHERE no_doc='16' and serdoc='A' 
20140115 12:06 UPDATE documento_d1 SET linhas=0,no_doc=16,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131216000000,d_venc=20131216000000,h_doc=20000101182800,no_cf=100,nome_cf='b vbn bnbn nb',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121210.00,tot_desconto=0.00,tot_liquido=121210.00,tot_iva=27878.30,tot_valor=149088.30,val_pago=149088.30,val_pend=0.00,suj_valor0=121210.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27878.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140115 12:07 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140115 12:07 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140115 12:07 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140115 12:08 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=12 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=12 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de cr‚dito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=1 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de cr‚dito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=1 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=4,designacao='NOTA DE D�BITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de D‚bito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=2 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=4,designacao='NOTA DE D�BITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de D‚bito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=2 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=4 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=4 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=18 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=18 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',rsv='' WHERE IDX=19 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',rsv='' WHERE IDX=19 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=9 LIMIT 1;
20140115 12:08 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=9 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=9 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=9 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=7,designacao='GUIA DE TRANSPORTE',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsg',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=5 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=7,designacao='GUIA DE TRANSPORTE',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsg',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=5 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=4 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=4 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=4 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140115 12:09 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140115 12:11 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=12 LIMIT 1;
20140115 12:11 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=12 LIMIT 1;
20140115 12:15 UPDATE documento_d13 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20140115 12:15 UPDATE documento_d13 SET linhas=0,no_doc=5,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130926000000,d_venc=20130926000000,h_doc=20000101180800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=7 LIMIT 1;
20140115 12:16 UPDATE documento_d13 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20140115 12:16 UPDATE documento_d13 SET linhas=0,no_doc=5,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130926000000,d_venc=20130926000000,h_doc=20000101180800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=7 LIMIT 1;
20140115 12:16 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140115 12:16 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140115 14:35 UPDATE documento_d1 SET convertido='0' WHERE no_doc='16' and serdoc='A' 
20140115 14:35 UPDATE documento_d1 SET linhas=0,no_doc=16,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131216000000,d_venc=20131216000000,h_doc=20000101182800,no_cf=100,nome_cf='b vbn bnbn nb',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121210.00,tot_desconto=0.00,tot_liquido=121210.00,tot_iva=27878.30,tot_valor=149088.30,val_pago=149088.30,val_pend=0.00,suj_valor0=121210.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27878.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140115 14:35 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20140115 14:35 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140106000000,d_venc=20140106000000,h_doc=20000101112400,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=0.00,tot_valor=10000.00,val_pago=0.00,val_pend=10000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=89 LIMIT 1;
20140115 14:35 UPDATE contas_correntes_clientes SET linha_f=5,cor=0,no=2,doc_mov='D',tp=3,document='N/ Nota de cr‚dito',no_doc=4,d_doc=20131007000000,d_venc=20131007000000,ref='',obs='',valor=12300.00,pendente=12300.00,deb_cred='C',debito=0.00,credito=12300.00,acumulado=0.00,val_iva=2300.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140115 14:35 UPDATE documento_d3 SET linhas=4,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131007000000,d_venc=20131007000000,h_doc=20000101173300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=5 LIMIT 1;
20140115 14:35 UPDATE documento_d3 SET linhas=4,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131007000000,d_venc=20131007000000,h_doc=20000101173300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=5 LIMIT 1;
20140115 14:38 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20140115 14:38 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140106000000,d_venc=20140106000000,h_doc=20000101112400,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=0.00,tot_valor=10000.00,val_pago=0.00,val_pend=10000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=89 LIMIT 1;
20140115 14:39 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=4,d_doc=20130917000000,d_venc=20130917000000,ref='1',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20140115 14:39 UPDATE documento_d10 SET linhas=1,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='1',d_doc=20130917000000,d_venc=20130917000000,h_doc=20000101144500,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140115 14:43 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140115 14:44 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20140115 14:44 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140106000000,d_venc=20140106000000,h_doc=20000101112400,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=0.00,tot_valor=10000.00,val_pago=0.00,val_pend=10000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=89 LIMIT 1;
20140115 14:49 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20140106000000,d_venc=20140106000000,h_doc=20000101112400,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=0.00,tot_valor=10000.00,val_pago=0.00,val_pend=10000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=89 LIMIT 1;
20140115 14:49 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131216000000,d_venc=20131216000000,h_doc=20000101184800,no_cf=125,nome_cf='jkhghjghjghj',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=88 LIMIT 1;
20140115 14:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1234',codigo2='1234',designacao_1='ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-100.0000000,marg_2=-100.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1011.000,stock_maximo=0.000,no_forn=0,d_entrada=20131007000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='' WHERE IDX=8 LIMIT 1;
20140115 14:49 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131216000000,d_venc=20131216000000,h_doc=20000101182500,no_cf=100,nome_cf='b vbn bnbn nb',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1204.75,tot_desconto=0.00,tot_liquido=1204.75,tot_iva=277.09,tot_valor=1481.84,val_pago=1481.84,val_pend=0.00,suj_valor0=1204.75,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=277.09,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=87 LIMIT 1;
20140115 14:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3456',codigo2='3456',designacao_1='CAL€A ALGODAO 50%',designacao_2='',abvr='CAL€A ALGODAO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-125.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140115 14:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3456',codigo2='3456',designacao_1='CAL€A ALGODAO 50%',designacao_2='',abvr='CAL€A ALGODAO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140115 14:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121212',codigo2='121212',designacao_1='m,kbm,bm,bm,b,m',designacao_2='',abvr='m,kbm,bm,bm,b,',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=0.0000000,prc_c_iva_1=15.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140115 14:49 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20131207000000,d_venc=20131207000000,h_doc=20000101121500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1250.00,tot_desconto=0.00,tot_liquido=1250.00,tot_iva=287.50,tot_valor=1537.50,val_pago=0.00,val_pend=1537.50,suj_valor0=1250.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=287.50,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=86 LIMIT 1;
20140115 14:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140115 14:49 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140115 14:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24666.49,saldo1=-24666.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140115 14:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24666.49,saldo1=-24666.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140115 15:00 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24666.49,saldo1=-24666.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140115 15:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24666.49,saldo1=-24666.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140115 15:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24666.49,saldo1=-24666.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140122 14:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 14:57 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 14:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 14:57 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 14:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 14:57 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 14:58 UPDATE documento_d6 SET convertido='73' WHERE no_doc='2' and serdoc='A' 
20140122 14:58 UPDATE documento_d6 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=73,referencia='',d_doc=20131207000000,d_venc=20131207000000,h_doc=20000101121100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=2,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20140122 14:58 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140122 14:58 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140122 14:58 UPDATE documento_d13 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20140122 14:58 UPDATE documento_d13 SET linhas=0,no_doc=5,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130926000000,d_venc=20130926000000,h_doc=20000101180800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=7 LIMIT 1;
20140122 14:59 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=4,d_doc=20130917000000,d_venc=20130917000000,ref='1',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20140122 14:59 UPDATE documento_d10 SET linhas=1,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='1',d_doc=20130917000000,d_venc=20130917000000,h_doc=20000101144500,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 14:59 UPDATE documento_d10 SET linhas=1,no_doc=4,emitido=1,anulado='',no_moed=0,convertido=0,referencia='1',d_doc=20130917000000,d_venc=20130917000000,h_doc=20000101144500,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 14:59 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140122 14:59 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140122 14:59 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140122 14:59 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140122 14:59 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=13 LIMIT 1;
20140122 14:59 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=9 LIMIT 1;
20140122 14:59 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,15,'GUIA DE TRANSPORTE','F','',3,'guiaf.rpt',1,'N','C','N','DOCSG','GT','N','','N','N/ G. de transporte','','N','N','S','','',0,0,'','S','S',0,'N','','','','','E','','','',0,'S','','S','');
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ G. de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',rsv='' WHERE IDX=20 LIMIT 1;
20140122 15:00 UPDATE documento_d15 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20140122 15:05 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20140122000000,00000000000000,20000101150500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140122000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140122 15:05 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',1,'Recibo',6,20140122000000,20140122000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140122 15:05 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101150500,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140122000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 15:05 UPDATE documento_d3 SET linhas=4,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131007000000,d_venc=20131007000000,h_doc=20000101173300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=12300.00,val_pend=0.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=5 LIMIT 1;
20140122 15:05 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,6,'D',3,'N/ Nota de cr‚dito',4,20131007000000,20131007000000,'','C',-12300.00,-12300.00,-12300.00,0.000,0.00,-12300.00,-2300.00,0.00,0,'A','');
20140122 15:05 UPDATE reciboslinhas01 SET linha=5,cor=0,no=6,doc_mov='D',tp=3,document='N/ Nota de cr‚dito',n_doc=4,d_doc=20131007000000,d_venc=20131007000000,ref='',deb_cred='C',val_doc=-12300.00,val_pend=-12300.00,val_liqu=-12300.00,per_desc=0.000,val_desc=0.00,val_rec=-12300.00,val_iva=-2300.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20140122 15:05 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20140122000000,d_venc=20140122000000,ref='',obs='',valor=-12300.00,pendente=-12300.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20140122 15:05 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101150500,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=-12300.00,tot_desconto=0.00,tot_liquido=-10000.00,tot_iva=-2300.00,tot_valor=-12300.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140122000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 15:05 UPDATE documento_d2 SET linhas=2,no_doc=71,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101180800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=97.60,tot_desconto=0.00,tot_liquido=97.60,tot_iva=22.45,tot_valor=120.05,val_pago=120.05,val_pend=0.00,suj_valor0=97.60,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=22.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=4.88,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=84 LIMIT 1;
20140122 15:05 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,6,'D',2,'N/ Factura',71,20131024000000,20131024000000,'','D',120.05,120.05,120.05,0.000,0.00,120.05,0.00,4.88,0,'A','ffffffX@33333s6@33333^@ffffffX@');
20140122 15:05 UPDATE reciboslinhas01 SET linha=10,cor=0,no=6,doc_mov='D',tp=2,document='N/ Factura',n_doc=71,d_doc=20131024000000,d_venc=20131024000000,ref='',deb_cred='D',val_doc=120.05,val_pend=120.05,val_liqu=120.05,per_desc=0.000,val_desc=0.00,val_rec=120.05,val_iva=0.00,irs=4.88,prest=0,serdoc='A',rsv='ffffffX@33333s6@33333^@ffffffX@' WHERE IDX=9 LIMIT 1;
20140122 15:05 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20140122000000,d_venc=20140122000000,ref='',obs='',valor=-12179.95,pendente=-12179.95,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20140122 15:05 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101150500,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=-12179.95,tot_desconto=0.00,tot_liquido=-9879.95,tot_iva=-2300.00,tot_valor=-12179.95,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140122000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 15:05 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130122000000,d_venc=20130122000000,h_doc=20000101131000,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.24,tot_valor=12.00,val_pago=12.00,val_pend=0.00,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140122 15:05 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,15,0,6,'D',2,'N/ Factura',6,20130122000000,20130122000000,'','D',12.00,12.00,12.00,0.000,0.00,12.00,0.00,0.00,0,'A','…ëQ¸…#@ěQ¸…ë@');
20140122 15:05 UPDATE reciboslinhas01 SET linha=15,cor=0,no=6,doc_mov='D',tp=2,document='N/ Factura',n_doc=6,d_doc=20130122000000,d_venc=20130122000000,ref='',deb_cred='D',val_doc=12.00,val_pend=12.00,val_liqu=12.00,per_desc=0.000,val_desc=0.00,val_rec=12.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='…ëQ¸…#@ěQ¸…ë@' WHERE IDX=10 LIMIT 1;
20140122 15:05 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20140122000000,d_venc=20140122000000,ref='',obs='',valor=-12167.95,pendente=-12167.95,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20140122 15:05 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101150500,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=-12167.95,tot_desconto=0.00,tot_liquido=-9867.95,tot_iva=-2300.00,tot_valor=-12167.95,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140122000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 15:05 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20140122000000,d_venc=20140122000000,ref='',obs='',valor=-12167.95,pendente=-12167.95,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20140122 15:05 UPDATE documento_r1 SET linhas=3,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101150500,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=-12167.95,tot_desconto=0.00,tot_liquido=-9867.95,tot_iva=-2300.00,tot_valor=-12167.95,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140122000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 15:05 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20140122000000,d_venc=20140122000000,ref='',obs='',valor=-12167.95,pendente=-12167.95,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20140122 15:05 UPDATE documento_r1 SET linhas=3,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101150500,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=-12167.95,tot_desconto=0.00,tot_liquido=-9867.95,tot_iva=-2300.00,tot_valor=-12167.95,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140122000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=10 LIMIT 1;
20140122 15:12 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-cirs',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:13 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 15:13 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='200051',codigo2='200051',designacao_1='POLO',designacao_2='',abvr='POLO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=200.0000000,marg_2=-100.0000000,prc_s_iva_1=30.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=36.9000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=20130917000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140122 15:13 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 15:13 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 15:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 15:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 15:14 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 15:17 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 15:17 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 15:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 15:22 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 15:23 UPDATE documento_d2 SET convertido='0' WHERE no_doc='72' and serdoc='A' 
20140122 15:23 UPDATE documento_d2 SET linhas=2,no_doc=72,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20131024000000,d_venc=20131024000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=0.00,tot_valor=30.00,val_pago=0.00,val_pend=30.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=30.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=1.50,irs=5.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=85 LIMIT 1;
20140122 15:24 UPDATE documento_d6 SET convertido='73' WHERE no_doc='2' and serdoc='A' 
20140122 15:24 UPDATE documento_d6 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=73,referencia='',d_doc=20131207000000,d_venc=20131207000000,h_doc=20000101121100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=2,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20140122 15:24 DROP TABLE IF EXISTS tmp;
20140122 15:24 CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20140122 15:24 DROP TABLE IF EXISTS tmp2;
20140122 15:24 CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20140122 15:24 INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
20140122 15:24 INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
20140122 15:24 SELECT * FROM TMP2 WHERE custo<>compra ;
20140122 15:24 UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
20140122 15:25 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101164300,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:25 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101164300,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:26 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=2,nome_opr='Operador 2',hora_i=20000101152600,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:26 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=2,nome_opr='Operador 2',hora_i=20000101152600,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:27 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=2,nome_opr='Operador 2',hora_i=20000101152600,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:27 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,rsv) VALUES(NULL,16,'FACTURA PRO-FORMA','C','',1,'proposta.rpt',1,'N','C','N','docs','FP','N','','N','N/ Factura Pro-Forma','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N','');
20140122 15:27 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Orcaemrno',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=21 LIMIT 1;
20140122 15:27 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=21 LIMIT 1;
20140122 15:27 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=21 LIMIT 1;
20140122 15:27 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=21 LIMIT 1;
20140122 15:28 INSERT INTO documento_d16 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20140122000000,20140122000000,20000101152800,0,'',0.00,0,'',2,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140122 15:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=2,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:28 INSERT INTO documento_linhas_d16 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'200051','POLO','','',1.000000,30.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,30.00,10.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,30.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140122 15:28 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=1,codigo='200051',designacao='POLO',unidade='',com_iva='',quantidade=1.000000,preco_unit=30.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=30.00,ult_custo=10.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=30.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=2,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.00,tot_desconto=0.00,tot_liquido=30.00,tot_iva=6.90,tot_valor=36.90,val_pago=36.90,val_pend=0.00,suj_valor0=30.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=6.90,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:28 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=1,codigo='200051',designacao='POLO',unidade='',com_iva='',quantidade=10.000000,preco_unit=30.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=300.00,ult_custo=10.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=30.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=2,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=2,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=2,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:29 UPDATE documento_d7 SET linhas=1,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20130327000000,d_venc=20130327000000,h_doc=20000101155700,no_cf=1,nome_cf='teste',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=45.00,tot_desconto=0.00,tot_liquido=45.00,tot_iva=10.35,tot_valor=55.35,val_pago=55.35,val_pend=0.00,suj_valor0=45.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=10.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20140122 15:30 INSERT INTO documento_d16 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20140122000000,20140122000000,20000101153000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140122 15:30 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101153000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140122 15:30 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20121231000000,d_venc=20121231000000,h_doc=20000101162900,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140122 15:30 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20130126000000,d_venc=20130126000000,h_doc=20000101103800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140122 15:30 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20130110000000,d_venc=20130110000000,h_doc=20000101103800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20140122 15:30 UPDATE documento_d4 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20130110000000,d_venc=20130110000000,h_doc=20000101103800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20140122 15:30 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20140122000000,20140122000000,20000101153000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140122 15:30 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101153000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140122 15:30 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20140122000000,20140122000000,20000101153000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140122 15:30 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101153000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140122 15:30 UPDATE documento_d6 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20130122000000,d_venc=20130122000000,h_doc=20000101144100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20140122 15:32 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,0,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',78,00000000000000,0,'');
20140122 15:32 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101153000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140122 15:32 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101153000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140122 15:32 UPDATE documento_d1 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101094300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20140128 16:11 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20140128000000,20140128000000,20000101161100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140128 16:12 UPDATE documento_d10 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140128 16:12 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,5,'','jhjklh','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140128 16:12 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=5,codigo='',designacao='jhjklh',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140128 16:12 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=5,codigo='',designacao='jhjklh',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=1000.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140128 16:12 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',5,20140128000000,20140128000000,'212121','',1000.00,1000.00,'C',0.00,1000.00,0.00,0.00,0.00,1.000000,0,0,'A','');
20140128 16:12 UPDATE documento_d10 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140128 16:12 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1000.00,pendente=1000.00,deb_cred='C',debito=0.00,credito=1000.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140128 16:12 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140128 16:12 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1000.00,pendente=1000.00,deb_cred='C',debito=0.00,credito=1000.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140128 16:12 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140128 16:12 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140128 16:15 UPDATE documento_d1 SET convertido='0' WHERE no_doc='16' and serdoc='A' 
20140128 16:15 UPDATE documento_d1 SET convertido='0' WHERE no_doc='16' and serdoc='A' 
20140128 16:15 UPDATE documento_d1 SET linhas=0,no_doc=16,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131216000000,d_venc=20131216000000,h_doc=20000101182800,no_cf=100,nome_cf='b vbn bnbn nb',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121210.00,tot_desconto=0.00,tot_liquido=121210.00,tot_iva=27878.30,tot_valor=149088.30,val_pago=149088.30,val_pend=0.00,suj_valor0=121210.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27878.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140128 16:16 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,73,0,'',0,0,'',20140128000000,20140128000000,20000101161600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140128 16:16 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=90 LIMIT 1;
20140128 16:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,73,'','SERVICOS','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140128 16:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=73,codigo='',designacao='SERVICOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=145 LIMIT 1;
20140128 16:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=73,codigo='',designacao='SERVICOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=4100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=4100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=4100.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=145 LIMIT 1;
20140128 16:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=73,codigo='',designacao='SERVICOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=4100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=4100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=4100.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=145 LIMIT 1;
20140128 16:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,73,'','HCDGDFCDFGHJ','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140128 16:17 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Factura',73,20140128000000,20140128000000,'','',5043.00,5043.00,'D',5043.00,0.00,0.00,943.00,0.00,1.000000,0,0,'A','');
20140128 16:17 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4100.00,tot_desconto=0.00,tot_liquido=4100.00,tot_iva=943.00,tot_valor=5043.00,val_pago=0.00,val_pend=5043.00,suj_valor0=4100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=943.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=90 LIMIT 1;
20140128 16:17 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Factura',no_doc=73,d_doc=20140128000000,d_venc=20140128000000,ref='',obs='',valor=5043.00,pendente=5043.00,deb_cred='D',debito=5043.00,credito=0.00,acumulado=0.00,val_iva=943.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=74 LIMIT 1;
20140128 16:17 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4100.00,tot_desconto=0.00,tot_liquido=4100.00,tot_iva=943.00,tot_valor=5043.00,val_pago=0.00,val_pend=5043.00,suj_valor0=4100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=943.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=90 LIMIT 1;
20140128 16:17 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4100.00,tot_desconto=0.00,tot_liquido=4100.00,tot_iva=943.00,tot_valor=5043.00,val_pago=0.00,val_pend=5043.00,suj_valor0=4100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=943.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=90 LIMIT 1;
20140128 16:17 UPDATE documento_d2 SET convertido='0' WHERE no_doc='73' and serdoc='A' 
20140128 16:17 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4100.00,tot_desconto=0.00,tot_liquido=4100.00,tot_iva=943.00,tot_valor=5043.00,val_pago=0.00,val_pend=5043.00,suj_valor0=4100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=943.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=90 LIMIT 1;
20140128 16:17 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,74,0,'',0,0,'',20140128000000,20140128000000,20000101161700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140128 16:18 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,12,'MIR INFORMATICA, LDA','','MORADA','LOCALIDADE','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
20140128 16:18 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161700,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=91 LIMIT 1;
20140128 16:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,74,'','SERVICSOS','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140128 16:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=74,codigo='',designacao='SERVICSOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=147 LIMIT 1;
20140128 16:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=74,codigo='',designacao='SERVICSOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=10000.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=147 LIMIT 1;
20140128 16:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=74,codigo='',designacao='SERVICSOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=10000.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=147 LIMIT 1;
20140128 16:18 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'12','12','SERGVICOS DE FLORESTA','','SERGVICOS DE',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140128 16:18 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'D',2,'N/ Factura',74,20140128000000,20140128000000,'','',12300.00,12300.00,'D',12300.00,0.00,0.00,2300.00,0.00,1.000000,0,0,'A','');
20140128 16:18 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161700,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=91 LIMIT 1;
20140128 16:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140128 16:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,74,'12','SERGVICOS DE FLORESTA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140128 16:18 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=74,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=148 LIMIT 1;
20140128 16:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140128 16:18 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=74,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=12000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=12000.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=148 LIMIT 1;
20140128 16:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Factura',no_doc=74,d_doc=20140128000000,d_venc=20140128000000,ref='',obs='',valor=27060.00,pendente=27060.00,deb_cred='D',debito=27060.00,credito=0.00,acumulado=0.00,val_iva=5060.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20140128 16:18 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161700,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22000.00,tot_desconto=0.00,tot_liquido=22000.00,tot_iva=5060.00,tot_valor=27060.00,val_pago=0.00,val_pend=27060.00,suj_valor0=22000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5060.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=91 LIMIT 1;
20140128 16:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Factura',no_doc=74,d_doc=20140128000000,d_venc=20140128000000,ref='',obs='',valor=27060.00,pendente=27060.00,deb_cred='D',debito=27060.00,credito=0.00,acumulado=0.00,val_iva=5060.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20140128 16:18 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161700,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22000.00,tot_desconto=0.00,tot_liquido=22000.00,tot_iva=5060.00,tot_valor=27060.00,val_pago=0.00,val_pend=27060.00,suj_valor0=22000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5060.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=91 LIMIT 1;
20140128 16:18 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161700,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22000.00,tot_desconto=0.00,tot_liquido=22000.00,tot_iva=5060.00,tot_valor=27060.00,val_pago=0.00,val_pend=27060.00,suj_valor0=22000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5060.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=91 LIMIT 1;
20140203 18:30 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,75,0,'',0,0,'',20140203000000,20140203000000,20000101183000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140203 18:30 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183000,no_cf=3,nome_cf='TESTE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=92 LIMIT 1;
20140203 18:30 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,75,'','PE€A DE XPTO','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140203 18:30 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=75,codigo='',designacao='PE€A DE XPTO',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=149 LIMIT 1;
20140203 18:30 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=75,codigo='',designacao='PE€A DE XPTO',unidade='',com_iva='',quantidade=10.000000,preco_unit=1.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=12.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=1.25,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=149 LIMIT 1;
20140203 18:30 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=75,codigo='',designacao='PE€A DE XPTO',unidade='',com_iva='',quantidade=10.000000,preco_unit=1.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=1.25,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=149 LIMIT 1;
20140203 18:30 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'D',2,'N/ Factura',75,20140203000000,20140203000000,'','',15.38,15.38,'D',15.38,0.00,0.00,2.88,0.00,1.000000,0,0,'A','');
20140203 18:30 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183000,no_cf=3,nome_cf='TESTE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.50,tot_desconto=0.00,tot_liquido=12.50,tot_iva=2.88,tot_valor=15.38,val_pago=0.00,val_pend=15.38,suj_valor0=12.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.88,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=92 LIMIT 1;
20140203 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='D',tp=2,document='N/ Factura',no_doc=75,d_doc=20140203000000,d_venc=20140203000000,ref='',obs='',valor=15.38,pendente=15.38,deb_cred='D',debito=15.38,credito=0.00,acumulado=0.00,val_iva=2.88,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20140203 18:30 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183000,no_cf=3,nome_cf='TESTE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.50,tot_desconto=0.00,tot_liquido=12.50,tot_iva=2.88,tot_valor=15.38,val_pago=0.00,val_pend=15.38,suj_valor0=12.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.88,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=92 LIMIT 1;
20140203 18:30 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183000,no_cf=3,nome_cf='TESTE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.50,tot_desconto=0.00,tot_liquido=12.50,tot_iva=2.88,tot_valor=15.38,val_pago=0.00,val_pend=15.38,suj_valor0=12.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.88,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=92 LIMIT 1;
20140203 18:30 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,1453,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
20140203 18:31 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140203 18:31 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,76,0,'',0,0,'',20140203000000,20140203000000,20000101183100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140203 18:31 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140203 18:31 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'123','123','pe‡a 123','','pe‡a 123',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,10.0000000,0.0000000,12.3000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140203 18:31 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140203 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140203 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,76,'123','pe‡a 123','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,10.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140203 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140203 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=76,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=5.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=50.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=10.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=150 LIMIT 1;
20140203 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140203 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=76,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=5.000000,preco_unit=11.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=56.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=11.25,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=150 LIMIT 1;
20140203 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-6.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140203 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,76,'123','pe‡a 123','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,10.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140203 18:31 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1453,'D',2,'N/ Factura',76,20140203000000,20140203000000,'','',81.49,81.49,'D',81.49,0.00,0.00,15.24,0.00,1.000000,0,0,'A','');
20140203 18:31 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=66.25,tot_desconto=0.00,tot_liquido=66.25,tot_iva=15.24,tot_valor=81.49,val_pago=0.00,val_pend=81.49,suj_valor0=66.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140203 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1453,doc_mov='D',tp=2,document='N/ Factura',no_doc=76,d_doc=20140203000000,d_venc=20140203000000,ref='',obs='',valor=81.49,pendente=81.49,deb_cred='D',debito=81.49,credito=0.00,acumulado=0.00,val_iva=15.24,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=77 LIMIT 1;
20140203 18:31 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=66.25,tot_desconto=0.00,tot_liquido=66.25,tot_iva=15.24,tot_valor=81.49,val_pago=0.00,val_pend=81.49,suj_valor0=66.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140203 18:32 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1453,'123','pe‡a 123',11.25,0.00,'',76,20140203000000,0.00,'');
20140203 18:32 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1453,doc_mov='D',tp=2,document='N/ Factura',no_doc=76,d_doc=20140203000000,d_venc=20140203000000,ref='',obs='',valor=81.49,pendente=81.49,deb_cred='D',debito=81.49,credito=0.00,acumulado=0.00,val_iva=15.24,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=77 LIMIT 1;
20140203 18:32 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=66.25,tot_desconto=0.00,tot_liquido=66.25,tot_iva=15.24,tot_valor=81.49,val_pago=0.00,val_pend=81.49,suj_valor0=66.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140203 18:33 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1453,doc_mov='D',tp=2,document='N/ Factura',no_doc=76,d_doc=20140203000000,d_venc=20140203000000,ref='',obs='',valor=81.49,pendente=81.49,deb_cred='D',debito=81.49,credito=0.00,acumulado=0.00,val_iva=15.24,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=77 LIMIT 1;
20140203 18:33 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=66.25,tot_desconto=0.00,tot_liquido=66.25,tot_iva=15.24,tot_valor=81.49,val_pago=0.00,val_pend=81.49,suj_valor0=66.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140203 18:33 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,77,0,'',0,0,'',20140203000000,20140203000000,20000101183300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140203 18:33 UPDATE documento_d2 SET linhas=0,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140203 18:33 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,77,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140203 18:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140203 18:33 UPDATE documento_d2 SET linhas=0,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140203 18:33 UPDATE documento_d2 SET linhas=0,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140203 18:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140203 18:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140203 18:34 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140203 18:34 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140204 15:57 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140204 15:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20140204 15:57 UPDATE documento_d2 SET linhas=2,no_doc=76,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183100,no_cf=1453,nome_cf='MIR INOFORMARICA, ldad',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=66.25,tot_desconto=0.00,tot_liquido=66.25,tot_iva=15.24,tot_valor=81.49,val_pago=0.00,val_pend=81.49,suj_valor0=66.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=93 LIMIT 1;
20140204 16:02 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140204 16:05 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,1454,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
20140204 16:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140204 16:06 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4750-124','BARCELOS','','');
20140204 16:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140204 16:07 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140204 16:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='MAO-DE-OBRA',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140204 16:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='MAO-DE-OBRA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140204 16:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='MAO-DE-OBRA',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=10000.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140204 16:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=77,codigo='',designacao='MAO-DE-OBRA',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=10000.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=152 LIMIT 1;
20140204 16:07 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,77,'','WSDFWSADSCSD','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140204 16:07 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,77,'','CSCSCSCSDCXC','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140204 16:07 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',77,20140203000000,20140203000000,'','',12300.00,12300.00,'D',12300.00,0.00,0.00,2300.00,0.00,1.000000,1,0,'A','');
20140204 16:07 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140204 16:07 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,77,'','CC','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140204 16:07 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=77,d_doc=20140203000000,d_venc=20140203000000,ref='',obs='',valor=12300.00,pendente=12300.00,deb_cred='D',debito=12300.00,credito=0.00,acumulado=0.00,val_iva=2300.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20140204 16:07 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140204 16:07 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140204 16:08 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140204 16:08 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,7,0,'',0,0,'',20140204000000,00000000000000,20000101160800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140204000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140204 16:08 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'R',1,'Recibo',7,20140204000000,20140204000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140204 16:08 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140204000000,d_venc=20140204000000,h_doc=20000101160800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140204000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140204 16:09 UPDATE documento_d2 SET linhas=1,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101184000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=12.01,val_pend=0.00,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=35 LIMIT 1;
20140204 16:09 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,7,'D',2,'N/ Factura',24,20130731000000,20130731000000,'','D',12.01,12.01,12.01,0.000,0.00,12.01,0.00,0.00,0,'A','…ëQ¸…#@');
20140204 16:09 UPDATE reciboslinhas01 SET linha=5,cor=0,no=7,doc_mov='D',tp=2,document='N/ Factura',n_doc=24,d_doc=20130731000000,d_venc=20130731000000,ref='',deb_cred='D',val_doc=12.01,val_pend=12.01,val_liqu=12.01,per_desc=0.000,val_desc=0.00,val_rec=12.01,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='…ëQ¸…#@' WHERE IDX=11 LIMIT 1;
20140204 16:09 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=7,d_doc=20140204000000,d_venc=20140204000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=87 LIMIT 1;
20140204 16:09 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140204000000,d_venc=20140204000000,h_doc=20000101160800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.01,tot_desconto=0.00,tot_liquido=12.01,tot_iva=0.00,tot_valor=12.01,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140204000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140204 16:09 UPDATE documento_d2 SET linhas=1,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101184100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=18.45,val_pend=0.00,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=36 LIMIT 1;
20140204 16:09 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,7,'D',2,'N/ Factura',25,20130731000000,20130731000000,'','D',18.45,18.45,18.45,0.000,0.00,18.45,0.00,0.00,0,'A','');
20140204 16:09 UPDATE reciboslinhas01 SET linha=10,cor=0,no=7,doc_mov='D',tp=2,document='N/ Factura',n_doc=25,d_doc=20130731000000,d_venc=20130731000000,ref='',deb_cred='D',val_doc=18.45,val_pend=18.45,val_liqu=18.45,per_desc=0.000,val_desc=0.00,val_rec=18.45,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20140204 16:09 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=7,d_doc=20140204000000,d_venc=20140204000000,ref='',obs='',valor=30.46,pendente=30.46,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=87 LIMIT 1;
20140204 16:09 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140204000000,d_venc=20140204000000,h_doc=20000101160800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.46,tot_desconto=0.00,tot_liquido=30.46,tot_iva=0.00,tot_valor=30.46,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140204000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140204 16:09 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=7,d_doc=20140204000000,d_venc=20140204000000,ref='',obs='',valor=30.46,pendente=30.46,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=87 LIMIT 1;
20140204 16:09 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140204000000,d_venc=20140204000000,h_doc=20000101160800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='',no_banco=0,nome_banco='',tot_material=30.46,tot_desconto=0.00,tot_liquido=30.46,tot_iva=0.00,tot_valor=30.46,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140204000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140204 16:09 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=7,d_doc=20140204000000,d_venc=20140204000000,ref='',obs='',valor=30.46,pendente=30.46,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=87 LIMIT 1;
20140204 16:09 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140204000000,d_venc=20140204000000,h_doc=20000101160800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='',no_banco=0,nome_banco='',tot_material=30.46,tot_desconto=0.00,tot_liquido=30.46,tot_iva=0.00,tot_valor=30.46,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140204000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140204 16:09 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140204000000,d_venc=20140204000000,h_doc=20000101160800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='',no_banco=0,nome_banco='',tot_material=30.46,tot_desconto=0.00,tot_liquido=30.46,tot_iva=0.00,tot_valor=30.46,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140204000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140204 16:12 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140208 11:54 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,8,0,'',0,0,'',20140208000000,00000000000000,20000101115400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140208000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140208 11:54 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'R',1,'Recibo',8,20140208000000,20140208000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140208 11:54 UPDATE documento_r1 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115400,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20140208 11:55 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161700,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22000.00,tot_desconto=0.00,tot_liquido=22000.00,tot_iva=5060.00,tot_valor=27060.00,val_pago=27060.00,val_pend=0.00,suj_valor0=22000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5060.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=91 LIMIT 1;
20140208 11:55 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,8,'D',2,'N/ Factura',74,20140128000000,20140128000000,'','D',27060.00,27060.00,27060.00,0.000,0.00,27060.00,0.00,0.00,0,'A','');
20140208 11:55 UPDATE reciboslinhas01 SET linha=5,cor=0,no=8,doc_mov='D',tp=2,document='N/ Factura',n_doc=74,d_doc=20140128000000,d_venc=20140128000000,ref='',deb_cred='D',val_doc=27060.00,val_pend=27060.00,val_liqu=27060.00,per_desc=0.000,val_desc=0.00,val_rec=27060.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=8,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=27060.00,pendente=27060.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=88 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115400,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=27060.00,tot_desconto=0.00,tot_liquido=27060.00,tot_iva=0.00,tot_valor=27060.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=8,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=27060.00,pendente=27060.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=88 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115400,no_cf=12,nome_cf='MIR INFORMATICA, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ BES',com_fp='12121212123',no_banco=0,nome_banco='',tot_material=27060.00,tot_desconto=0.00,tot_liquido=27060.00,tot_iva=0.00,tot_valor=27060.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20140208 11:55 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20140208000000,00000000000000,20000101115500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140208000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140208 11:55 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'R',1,'Recibo',9,20140208000000,20140208000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140208 11:55 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101184200,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=12.01,val_pend=0.00,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=38 LIMIT 1;
20140208 11:55 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,9,'D',2,'N/ Factura',27,20130731000000,20130731000000,'','D',12.01,12.01,12.01,0.000,0.00,12.01,0.00,0.00,0,'A','…ëQ¸…#@');
20140208 11:55 UPDATE reciboslinhas01 SET linha=5,cor=0,no=9,doc_mov='D',tp=2,document='N/ Factura',n_doc=27,d_doc=20130731000000,d_venc=20130731000000,ref='',deb_cred='D',val_doc=12.01,val_pend=12.01,val_liqu=12.01,per_desc=0.000,val_desc=0.00,val_rec=12.01,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='…ëQ¸…#@' WHERE IDX=14 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.01,tot_desconto=0.00,tot_liquido=12.01,tot_iva=0.00,tot_valor=12.01,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE documento_d2 SET linhas=1,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101184300,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.25,tot_desconto=0.00,tot_liquido=15.25,tot_iva=3.51,tot_valor=18.76,val_pago=18.76,val_pend=0.00,suj_valor0=15.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.51,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=39 LIMIT 1;
20140208 11:55 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,9,'D',2,'N/ Factura',28,20130731000000,20130731000000,'','D',18.76,18.76,18.76,0.000,0.00,18.76,0.00,0.00,0,'A','');
20140208 11:55 UPDATE reciboslinhas01 SET linha=10,cor=0,no=9,doc_mov='D',tp=2,document='N/ Factura',n_doc=28,d_doc=20130731000000,d_venc=20130731000000,ref='',deb_cred='D',val_doc=18.76,val_pend=18.76,val_liqu=18.76,per_desc=0.000,val_desc=0.00,val_rec=18.76,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=30.77,pendente=30.77,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=30.77,tot_desconto=0.00,tot_liquido=30.77,tot_iva=0.00,tot_valor=30.77,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE documento_d2 SET linhas=1,no_doc=29,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101184300,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.25,tot_desconto=0.00,tot_liquido=15.25,tot_iva=3.51,tot_valor=18.76,val_pago=18.76,val_pend=0.00,suj_valor0=15.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.51,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=40 LIMIT 1;
20140208 11:55 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,15,0,9,'D',2,'N/ Factura',29,20130731000000,20130731000000,'','D',18.76,18.76,18.76,0.000,0.00,18.76,0.00,0.00,0,'A','');
20140208 11:55 UPDATE reciboslinhas01 SET linha=15,cor=0,no=9,doc_mov='D',tp=2,document='N/ Factura',n_doc=29,d_doc=20130731000000,d_venc=20130731000000,ref='',deb_cred='D',val_doc=18.76,val_pend=18.76,val_liqu=18.76,per_desc=0.000,val_desc=0.00,val_rec=18.76,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=16 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140208 11:55 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140212 15:03 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140212 16:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140212 16:47 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,5,'123','pe‡a 123','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140212 16:47 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'123',1,'FORNECWSOE N. 1',10.00,0.00,0.00,20140128000000,'');
20140212 16:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140212 16:47 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=10.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140212 16:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=9.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=11.1111111,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140212 16:47 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=9.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=9.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140212 16:47 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1011.07,pendente=1011.07,deb_cred='C',debito=0.00,credito=1011.07,acumulado=0.00,val_iva=2.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140212 16:47 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1009.00,tot_desconto=0.00,tot_liquido=1009.00,tot_iva=2.07,tot_valor=1011.07,val_pago=0.00,val_pend=1011.07,suj_valor0=9.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.07,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140212 16:47 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1011.07,pendente=1011.07,deb_cred='C',debito=0.00,credito=1011.07,acumulado=0.00,val_iva=2.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140212 16:47 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1009.00,tot_desconto=0.00,tot_liquido=1009.00,tot_iva=2.07,tot_valor=1011.07,val_pago=0.00,val_pend=1011.07,suj_valor0=9.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.07,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140212 16:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=7.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=42.8571429,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140212 16:48 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=7.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=7.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=7.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140212 16:48 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1008.61,pendente=1008.61,deb_cred='C',debito=0.00,credito=1008.61,acumulado=0.00,val_iva=1.61,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140212 16:48 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1007.00,tot_desconto=0.00,tot_liquido=1007.00,tot_iva=1.61,tot_valor=1008.61,val_pago=0.00,val_pend=1008.61,suj_valor0=7.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140212 16:48 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1008.61,pendente=1008.61,deb_cred='C',debito=0.00,credito=1008.61,acumulado=0.00,val_iva=1.61,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140212 16:48 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1007.00,tot_desconto=0.00,tot_liquido=1007.00,tot_iva=1.61,tot_valor=1008.61,val_pago=0.00,val_pend=1008.61,suj_valor0=7.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140213 16:37 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20140213000000,20140213000000,20000101163700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140213 16:38 INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,rsv) VALUES(NULL,0,0,0,0,2123,'zxdcvxcv','','cvcv','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,'');
20140213 17:35 UPDATE documento_d10 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140213000000,d_venc=20140213000000,h_doc=20000101163700,no_cf=2123,nome_cf='zxdcvxcv',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20140215 11:58 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140215 11:58 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:16 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:16 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:20 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:21 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:22 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:22 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:23 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:23 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:23 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:23 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:23 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 11:23 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 11:24 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:24 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:25 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:25 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:26 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:26 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:27 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:27 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140122000000,d_venc=20140122000000,h_doc=20000101152800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.00,tot_desconto=0.00,tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,val_pago=369.00,val_pend=0.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20140220 11:27 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140220 11:27 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140220 11:27 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140220 11:29 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140220 11:29 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140220 11:30 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140220 11:30 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140220 11:30 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140220 11:31 UPDATE documento_d13 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20140220 11:31 UPDATE documento_d13 SET linhas=0,no_doc=5,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130926000000,d_venc=20130926000000,h_doc=20000101180800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=7 LIMIT 1;
20140220 11:32 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=15 LIMIT 1;
20140220 11:32 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=15 LIMIT 1;
20140220 11:32 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=10 LIMIT 1;
20140220 11:32 UPDATE tipos_de_documentosd SET numero=5,designacao='FACTURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=3 LIMIT 1;
20140220 11:32 UPDATE tipos_de_documentosd SET numero=5,designacao='FACTURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',rsv='' WHERE IDX=3 LIMIT 1;
20140220 16:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140220 16:36 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140220 16:36 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140220 16:37 UPDATE historico_contas_correntes_fornecedores SET linha_f=11,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20140220 16:37 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140220 16:37 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140220 16:37 UPDATE documento_d2 SET convertido='0' WHERE no_doc='77' and serdoc='A' 
20140220 16:37 UPDATE documento_d2 SET linhas=1,no_doc=77,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20140203000000,d_venc=20140203000000,h_doc=20000101183300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=0.00,val_pend=12300.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=94 LIMIT 1;
20140220 16:37 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20140221 16:42 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f6',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquida‡Ćo',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',rsv='' WHERE IDX=2 LIMIT 1;
20140221 16:42 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f6',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquida‡Ćo',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',rsv='' WHERE IDX=2 LIMIT 1;
20140221 16:42 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquida‡Ćo',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',rsv='' WHERE IDX=2 LIMIT 1;
20140221 16:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=8.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=25.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140221 16:49 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=8.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140221 16:49 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1009.84,pendente=1009.84,deb_cred='C',debito=0.00,credito=1009.84,acumulado=0.00,val_iva=1.84,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140221 16:49 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.00,tot_desconto=0.00,tot_liquido=1008.00,tot_iva=1.84,tot_valor=1009.84,val_pago=0.00,val_pend=1009.84,suj_valor0=8.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.84,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140221 16:49 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1009.84,pendente=1009.84,deb_cred='C',debito=0.00,credito=1009.84,acumulado=0.00,val_iva=1.84,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140221 16:49 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.00,tot_desconto=0.00,tot_liquido=1008.00,tot_iva=1.84,tot_valor=1009.84,val_pago=0.00,val_pend=1009.84,suj_valor0=8.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.84,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140221 16:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=12.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-16.6666667,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140221 16:49 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=12.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140221 16:49 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1014.76,pendente=1014.76,deb_cred='C',debito=0.00,credito=1014.76,acumulado=0.00,val_iva=2.76,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140221 16:49 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1012.00,tot_desconto=0.00,tot_liquido=1012.00,tot_iva=2.76,tot_valor=1014.76,val_pago=0.00,val_pend=1014.76,suj_valor0=12.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.76,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140221 16:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=20.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-50.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140221 16:49 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=20.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=20.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=20.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140221 16:49 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1024.60,pendente=1024.60,deb_cred='C',debito=0.00,credito=1024.60,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140221 16:49 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1020.00,tot_desconto=0.00,tot_liquido=1020.00,tot_iva=4.60,tot_valor=1024.60,val_pago=0.00,val_pend=1024.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140221 16:49 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1024.60,pendente=1024.60,deb_cred='C',debito=0.00,credito=1024.60,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140221 16:49 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1020.00,tot_desconto=0.00,tot_liquido=1020.00,tot_iva=4.60,tot_valor=1024.60,val_pago=0.00,val_pend=1024.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140228 15:31 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20140228000000,00000000000000,20000101153100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:31 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:31 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153100,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20140228 15:32 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20140228000000,00000000000000,20000101153200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:32 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:32 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153200,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140228 15:33 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20140228000000,00000000000000,20000101153300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:33 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:33 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153300,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:33 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20140228000000,00000000000000,20000101153300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:33 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:33 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153300,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140228 15:34 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20140228000000,00000000000000,20000101153400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:34 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',3,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:34 UPDATE documento_r2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153400,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140228 15:35 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20140228000000,00000000000000,20000101153500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:35 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:35 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:36 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:36 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:37 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=12 LIMIT 1;
20140228 15:37 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:38 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:38 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:39 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,10,0,2,'D',10,'V/ Factura',2,20130327000000,20130327000000,'','C',373.00,373.00,373.00,0.000,0.00,373.00,23.00,11.50,0,'A','');
20140228 15:39 UPDATE documento_d10 SET linhas=3,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130327000000,d_venc=20130327000000,h_doc=20000101180800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=350.00,tot_desconto=0.00,tot_liquido=350.00,tot_iva=23.00,tot_valor=373.00,val_pago=373.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=250.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=8 LIMIT 1;
20140228 15:39 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,20,0,2,'D',10,'V/ Factura',3,20130731000000,20130731000000,'','C',250.00,250.00,250.00,0.000,0.00,250.00,0.00,0.00,0,'A','');
20140228 15:39 UPDATE documento_d10 SET linhas=2,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101102600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=250.00,tot_desconto=0.00,tot_liquido=250.00,tot_iva=0.00,tot_valor=250.00,val_pago=250.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=250.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=9 LIMIT 1;
20140228 15:39 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,30,0,2,'D',10,'V/ Factura',5,20140128000000,20140128000000,'212121','C',1024.60,1024.60,377.00,0.000,0.00,377.00,4.60,0.00,0,'A','');
20140228 15:39 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1024.60,pendente=647.60,deb_cred='C',debito=0.00,credito=647.60,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140228 15:39 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1020.00,tot_desconto=0.00,tot_liquido=1020.00,tot_iva=4.60,tot_valor=1024.60,val_pago=377.00,val_pend=647.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140228 15:39 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:39 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:39 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:39 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:39 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:39 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:39 UPDATE documento_r2 SET linhas=3,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1024.60,pendente=1024.60,deb_cred='C',debito=0.00,credito=1024.60,acumulado=0.00,val_iva=4.60,pend_rec=377.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140228 15:39 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1020.00,tot_desconto=0.00,tot_liquido=1020.00,tot_iva=4.60,tot_valor=1024.60,val_pago=0.00,val_pend=1024.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140228 15:39 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',2,20140228000000,20140228000000,'','',1000.00,1000.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:39 UPDATE documento_r2 SET linhas=3,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101153500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=972.40,tot_iva=27.60,tot_valor=988.50,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=11.50,irs=11.50,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:39 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1024.60,pendente=1024.60,deb_cred='C',debito=0.00,credito=1024.60,acumulado=0.00,val_iva=4.60,pend_rec=754.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140228 15:39 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1020.00,tot_desconto=0.00,tot_liquido=1020.00,tot_iva=4.60,tot_valor=1024.60,val_pago=0.00,val_pend=1024.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140228 15:40 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,10,0,'',0,0,'',20140228000000,00000000000000,20000101154000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140228000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140228 15:40 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'R',1,'Recibo',10,20140228000000,20140228000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:40 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101154000,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:40 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,10,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
20140228 15:40 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=90 LIMIT 1;
20140228 15:40 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101154000,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:40 UPDATE reciboslinhas01 SET linha=5,cor=0,no=10,doc_mov='',tp=0,document='',n_doc=0,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:40 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=90 LIMIT 1;
20140228 15:40 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101154000,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:41 UPDATE reciboslinhas01 SET linha=5,cor=0,no=10,doc_mov='',tp=0,document='',n_doc=0,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:41 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=90 LIMIT 1;
20140228 15:41 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101154000,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:41 UPDATE reciboslinhas02 SET linha=10,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',n_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='20120002212121',deb_cred='C',val_doc=4.92,val_pend=4.92,val_liqu=4.92,per_desc=0.000,val_desc=0.00,val_rec=4.92,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=51 LIMIT 1;
20140228 15:41 UPDATE reciboslinhas02 SET linha=10,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',n_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='20120002212121',deb_cred='C',val_doc=4.92,val_pend=4.92,val_liqu=4.92,per_desc=0.000,val_desc=0.00,val_rec=4.92,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=51 LIMIT 1;
20140228 15:41 UPDATE reciboslinhas02 SET linha=10,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',n_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='20120002212121',deb_cred='C',val_doc=4.92,val_pend=4.92,val_liqu=4.92,per_desc=0.000,val_desc=0.00,val_rec=4.92,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='' WHERE IDX=51 LIMIT 1;
20140228 15:41 UPDATE historico_contas_correntes_fornecedores SET linha_f=11,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20140228 15:41 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140228 15:41 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,15,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'','');
20140228 15:41 UPDATE historico_contas_correntes_fornecedores SET linha_f=11,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20140228 15:41 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140228 15:41 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'R',1,'Recibo',10,20140228000000,20140228000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140228 15:41 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101154000,no_cf=3,nome_cf='TESTE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140228 15:42 UPDATE reciboslinhas01 SET linha=5,cor=0,no=10,doc_mov='',tp=0,document='',n_doc=0,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',rsv='' WHERE IDX=17 LIMIT 1;
20140228 15:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140228000000,d_venc=20140228000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=91 LIMIT 1;
20140228 15:42 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140228000000,d_venc=20140228000000,h_doc=20000101154000,no_cf=3,nome_cf='TESTE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140228000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140312 12:39 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140312 12:39 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20140312 12:39 UPDATE documento_d6 SET convertido='73' WHERE no_doc='2' and serdoc='A' 
20140312 12:45 UPDATE documento_d6 SET convertido='73' WHERE no_doc='2' and serdoc='A' 
20140312 12:45 UPDATE documento_d6 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=73,referencia='',d_doc=20131207000000,d_venc=20131207000000,h_doc=20000101121100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=2,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20140312 12:53 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=89 LIMIT 1;
20140312 12:53 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140312 12:53 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140317 11:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140317 11:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140317 12:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23128.99,saldo1=-23128.99,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23128.99,saldo1=-23128.99,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 09:24 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d6 as l1 LEFT JOIN documento_d6 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d8 as l1 LEFT JOIN documento_d8 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d9 as l1 LEFT JOIN documento_d9 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d6 as l1 LEFT JOIN documento_d6 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d8 as l1 LEFT JOIN documento_d8 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d9 as l1 LEFT JOIN documento_d9 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 09:24 SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE l1.num_doc=c1.no_doc AND c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20140318 14:32 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 14:48 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23031.39,saldo1=-23031.39,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-132.35,saldo1=-132.35,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140318 14:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140320 11:01 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,78,0,'',0,0,'',20140320000000,20140320000000,20000101110100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140320 11:01 UPDATE documento_d2 SET linhas=0,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140320 11:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140320000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140320 11:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,78,'212421','jgjkgjhkgkjgjkghkjgk','','',1.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140320 11:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=78,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=156 LIMIT 1;
20140320 11:02 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',78,20140320000000,20140320000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,1,0,'A','');
20140320 11:02 UPDATE documento_d2 SET linhas=0,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140320 11:02 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=78,d_doc=20140320000000,d_venc=20140320000000,ref='',obs='',valor=1.23,pendente=1.23,deb_cred='D',debito=1.23,credito=0.00,acumulado=0.00,val_iva=0.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=64 LIMIT 1;
20140320 11:02 UPDATE documento_d2 SET linhas=0,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140320 11:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,78,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140320 11:02 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=78,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=157 LIMIT 1;
20140320 11:02 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=78,d_doc=20140320000000,d_venc=20140320000000,ref='',obs='',valor=1.23,pendente=1.23,deb_cred='D',debito=1.23,credito=0.00,acumulado=0.00,val_iva=0.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=64 LIMIT 1;
20140320 11:02 UPDATE documento_d2 SET linhas=0,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140320 11:02 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=78,d_doc=20140320000000,d_venc=20140320000000,ref='',obs='',valor=1.23,pendente=1.23,deb_cred='D',debito=1.23,credito=0.00,acumulado=0.00,val_iva=0.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=64 LIMIT 1;
20140320 11:02 UPDATE documento_d2 SET linhas=2,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140320 11:02 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=78,d_doc=20140320000000,d_venc=20140320000000,ref='',obs='',valor=1.23,pendente=1.23,deb_cred='D',debito=1.23,credito=0.00,acumulado=0.00,val_iva=0.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=64 LIMIT 1;
20140320 11:02 UPDATE documento_d2 SET linhas=2,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140322 11:38 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,10,0,'',0,0,'',20140322000000,00000000000000,20000101113800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140322000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140322 11:38 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'R',1,'Recibo',10,20140322000000,20140322000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140322 11:38 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140322 11:38 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101124200,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=97.60,tot_desconto=0.00,tot_liquido=97.60,tot_iva=22.45,tot_valor=120.05,val_pago=120.05,val_pend=0.00,suj_valor0=97.60,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=22.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=60 LIMIT 1;
20140322 11:38 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,rsv) VALUES(NULL,5,0,10,'D',2,'N/ Factura',48,20130731000000,20130731000000,'','D',120.05,120.05,120.05,0.000,0.00,120.05,0.00,0.00,0,'A','ffffffX@33333s6@33333^@ffffffX@');
20140322 11:38 UPDATE reciboslinhas01 SET linha=5,cor=0,no=10,doc_mov='D',tp=2,document='N/ Factura',n_doc=48,d_doc=20130731000000,d_venc=20130731000000,ref='',deb_cred='D',val_doc=120.05,val_pend=120.05,val_liqu=120.05,per_desc=0.000,val_desc=0.00,val_rec=120.05,val_iva=0.00,irs=0.00,prest=0,serdoc='A',rsv='ffffffX@33333s6@33333^@ffffffX@' WHERE IDX=18 LIMIT 1;
20140322 11:38 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=91 LIMIT 1;
20140322 11:38 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140325 16:10 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,17,0,'',0,0,'',20140325000000,20140325000000,20000101161000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140325 16:10 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,17,'','','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140325 16:11 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='',designacao='',unidade='',com_iva='',quantidade=1.000000,preco_unit=12.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=12.30,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=64 LIMIT 1;
20140325 19:09 UPDATE documento_d1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140325000000,d_venc=20140325000000,h_doc=20000101161000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.30,tot_desconto=0.00,tot_liquido=12.30,tot_iva=0.00,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12.30,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20140404 15:34 UPDATE contas_correntes_fornecedores SET linha_f=11,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=5,d_doc=20140128000000,d_venc=20140128000000,ref='212121',obs='',valor=1024.60,pendente=1024.60,deb_cred='C',debito=0.00,credito=1024.60,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20140404 15:34 UPDATE documento_d10 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140128000000,d_venc=20140128000000,h_doc=20000101161100,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1020.00,tot_desconto=0.00,tot_liquido=1020.00,tot_iva=4.60,tot_valor=1024.60,val_pago=0.00,val_pend=1024.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20140404 15:34 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,7,0,'',0,0,'',20140404000000,20140404000000,20000101153400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140404 15:35 UPDATE documento_d10 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101153400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140404 15:35 UPDATE documento_d10 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101153400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140404 17:27 UPDATE contas_correntes_clientes SET linha_f=95,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=78,d_doc=20140320000000,d_venc=20140320000000,ref='',obs='',valor=1.23,pendente=1.23,deb_cred='D',debito=1.23,credito=0.00,acumulado=0.00,val_iva=0.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=61 LIMIT 1;
20140404 17:27 UPDATE documento_d2 SET linhas=2,no_doc=78,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140404 17:27 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,79,0,'',0,0,'',20140404000000,20140404000000,20000101172700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140404 17:33 UPDATE documento_d10 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101153400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140404 17:33 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'4521',1,'FORNECWSOE N. 1',16.50,0.00,0.00,20140404000000,'');
20140404 17:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4521',codigo2='4521',designacao_1='ARTIGO NOME DELE',designacao_2='',abvr='ARTIGO NOME',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=16.5000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-9.0909091,marg_2=-100.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-128.000,stock_maximo=0.000,no_forn=0,d_entrada=20140404000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140404 17:33 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,7,'4521','ARTIGO NOME DELE','UN','',1.000000,16.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,16.50,16.5000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140404 17:33 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=7,codigo='4521',designacao='ARTIGO NOME DELE',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=16.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=16.50,ult_custo=16.5000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140404 17:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4521',codigo2='4521',designacao_1='ARTIGO NOME DELE',designacao_2='',abvr='ARTIGO NOME',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=15.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=-100.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-128.000,stock_maximo=0.000,no_forn=0,d_entrada=20140404000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140404 17:33 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=7,codigo='4521',designacao='ARTIGO NOME DELE',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=16.5000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140404 17:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4521',codigo2='4521',designacao_1='ARTIGO NOME DELE',designacao_2='',abvr='ARTIGO NOME',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=15.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=-100.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-128.000,stock_maximo=0.000,no_forn=0,d_entrada=20140404000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140404 17:33 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',7,20140404000000,20140404000000,'212121','',18.45,18.45,'C',0.00,18.45,0.00,3.45,0.00,1.000000,0,0,'A','');
20140404 17:33 UPDATE documento_d10 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101153400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140404 17:33 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=7,d_doc=20140404000000,d_venc=20140404000000,ref='212121',obs='',valor=18.45,pendente=18.45,deb_cred='C',debito=0.00,credito=18.45,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20140404 17:33 UPDATE documento_d10 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101153400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140410 14:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11255.450,stock_maximo=50.000,no_forn=0,d_entrada=20121207000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11255.450,stock_maximo=50.000,no_forn=0,d_entrada=20121207000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11255.450,stock_maximo=50.000,no_forn=0,d_entrada=20121207000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:24 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,8,0,'',0,0,'',20140410000000,20140410000000,20000101142400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140410 14:24 UPDATE documento_d10 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:24 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,12,0,'1',1,'FORNECWSOE N. 1',4.00,0.00,0.00,20140410000000,'');
20140410 14:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:24 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,8,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140410 14:24 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',8,20140410000000,20140410000000,'','',4.92,4.92,'C',0.00,4.92,0.00,0.92,0.00,1.000000,0,0,'A','');
20140410 14:24 UPDATE documento_d10 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:24 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=8,d_doc=20140410000000,d_venc=20140410000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='C',debito=0.00,credito=4.92,acumulado=0.00,val_iva=0.92,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20140410 14:24 UPDATE documento_d10 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11255.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:24 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,8,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140410 14:24 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=8,d_doc=20140410000000,d_venc=20140410000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='C',debito=0.00,credito=4.92,acumulado=0.00,val_iva=0.92,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20140410 14:24 UPDATE documento_d10 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11253.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:24 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,8,'1','TESTW','UN','',1.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,4.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140410 14:25 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=8,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=4.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=4.00,ult_custo=4.0000000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140410 14:25 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=8,d_doc=20140410000000,d_venc=20140410000000,ref='',obs='',valor=9.84,pendente=9.84,deb_cred='C',debito=0.00,credito=9.84,acumulado=0.00,val_iva=1.84,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20140410 14:25 UPDATE documento_d10 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.00,tot_desconto=0.00,tot_liquido=8.00,tot_iva=1.84,tot_valor=9.84,val_pago=0.00,val_pend=9.84,suj_valor0=8.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.84,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:25 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=8,d_doc=20140410000000,d_venc=20140410000000,ref='',obs='',valor=9.84,pendente=9.84,deb_cred='C',debito=0.00,credito=9.84,acumulado=0.00,val_iva=1.84,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20140410 14:25 UPDATE documento_d10 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.00,tot_desconto=0.00,tot_liquido=8.00,tot_iva=1.84,tot_valor=9.84,val_pago=0.00,val_pend=9.84,suj_valor0=8.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.84,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:25 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=8,d_doc=20140410000000,d_venc=20140410000000,ref='',obs='',valor=9.84,pendente=9.84,deb_cred='C',debito=0.00,credito=9.84,acumulado=0.00,val_iva=1.84,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20140410 14:25 UPDATE documento_d10 SET linhas=2,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140410000000,d_venc=20140410000000,h_doc=20000101142400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.00,tot_desconto=0.00,tot_liquido=8.00,tot_iva=1.84,tot_valor=9.84,val_pago=0.00,val_pend=9.84,suj_valor0=8.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.84,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20140410 14:25 UPDATE documento_d2 SET linhas=0,no_doc=79,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101172700,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=96 LIMIT 1;
20140410 14:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,79,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140410 14:25 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',79,20140404000000,20140404000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,0,0,'A','');
20140410 14:25 UPDATE documento_d2 SET linhas=0,no_doc=79,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101172700,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=96 LIMIT 1;
20140410 14:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=79,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.76,ult_custo=4.0000000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=158 LIMIT 1;
20140410 14:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,79,'','N.Serie:123456','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140410 14:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=79,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.76,ult_custo=4.0000000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=158 LIMIT 1;
20140410 14:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=79,d_doc=20140404000000,d_venc=20140404000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='D',debito=12.01,credito=0.00,acumulado=0.00,val_iva=2.25,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=65 LIMIT 1;
20140410 14:25 UPDATE documento_d2 SET linhas=0,no_doc=79,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101172700,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=96 LIMIT 1;
20140410 14:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140410 14:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140410000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:54 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=7,d_doc=20140404000000,d_venc=20140404000000,ref='212121',obs='',valor=18.45,pendente=18.45,deb_cred='C',debito=0.00,credito=18.45,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20140411 12:54 UPDATE documento_d10 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101153400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20140411 12:54 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,9,0,'',0,0,'',20140411000000,20140411000000,20000101125400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140411 12:54 UPDATE documento_d10 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140411 12:54 UPDATE documento_d10 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11254.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,9,'1','TESTW','UN','',0.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,4.0000000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140411 12:55 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=9,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=4.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=4.0000000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=4.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=144.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11252.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=9,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=2.000000,preco_unit=4.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.00,ult_custo=4.0000000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140411 12:55 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,18,0,'1',1,'FORNECWSOE N. 1',3.95,0.00,0.00,20140411000000,'	');
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9500000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.0886076,marg_2=1.2658228,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11252.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=9,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=2.000000,preco_unit=3.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=7.90,ult_custo=4.0000000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9500000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.0886076,marg_2=1.2658228,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11252.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',9,20140411000000,20140411000000,'212121','',9.72,9.72,'C',0.00,9.72,0.00,1.82,0.00,1.000000,0,0,'A','');
20140411 12:55 UPDATE documento_d10 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.00,tot_liquido=7.90,tot_iva=1.82,tot_valor=9.72,val_pago=0.00,val_pend=9.72,suj_valor0=7.90,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140411 12:55 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=9,d_doc=20140411000000,d_venc=20140411000000,ref='212121',obs='',valor=9.72,pendente=9.72,deb_cred='C',debito=0.00,credito=9.72,acumulado=0.00,val_iva=1.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20140411 12:55 UPDATE documento_d10 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.00,tot_liquido=7.90,tot_iva=1.82,tot_valor=9.72,val_pago=0.00,val_pend=9.72,suj_valor0=7.90,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140411 12:55 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=9,d_doc=20140411000000,d_venc=20140411000000,ref='212121',obs='',valor=9.72,pendente=9.72,deb_cred='C',debito=0.00,credito=9.72,acumulado=0.00,val_iva=1.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20140411 12:55 UPDATE documento_d10 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.00,tot_liquido=7.90,tot_iva=1.82,tot_valor=9.72,val_pago=0.00,val_pend=9.72,suj_valor0=7.90,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20140411 12:55 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,10,0,'',0,0,'',20140411000000,20140411000000,20000101125500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140411 12:55 UPDATE documento_d10 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.0886076,marg_2=1.2658228,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11252.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,10,'1','TESTW','UN','',0.000000,3.9500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,3.9500000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140411 12:55 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=10,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=3.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9500000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140411 12:55 UPDATE documento_d10 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9500000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.0886076,marg_2=1.2658228,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11250.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=10,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=2.000000,preco_unit=3.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=7.90,ult_custo=3.9500000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11250.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=10,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=2.000000,preco_unit=3.9500000,desc1=0.1000000,desc_1=0.0100000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=7.89,ult_custo=3.9500000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140411 12:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11250.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140411 12:55 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',10,20140411000000,20140411000000,'','',9.71,9.71,'C',0.00,9.71,0.00,1.82,0.00,1.000000,0,0,'A','');
20140411 12:55 UPDATE documento_d10 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.01,tot_liquido=7.89,tot_iva=1.82,tot_valor=9.71,val_pago=0.00,val_pend=9.71,suj_valor0=7.89,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140411 12:55 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=10,d_doc=20140411000000,d_venc=20140411000000,ref='',obs='',valor=9.71,pendente=9.71,deb_cred='C',debito=0.00,credito=9.71,acumulado=0.00,val_iva=1.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20140411 12:55 UPDATE documento_d10 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.01,tot_liquido=7.89,tot_iva=1.82,tot_valor=9.71,val_pago=0.00,val_pend=9.71,suj_valor0=7.89,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140411 12:55 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=10,d_doc=20140411000000,d_venc=20140411000000,ref='',obs='',valor=9.71,pendente=9.71,deb_cred='C',debito=0.00,credito=9.71,acumulado=0.00,val_iva=1.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20140411 12:55 UPDATE documento_d10 SET linhas=1,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.01,tot_liquido=7.89,tot_iva=1.82,tot_valor=9.71,val_pago=0.00,val_pend=9.71,suj_valor0=7.89,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20140417 13:01 Rename table historicocaixa_00 to historicocaixa_00_old 
20140417 13:01 La tabla  'historicocaixa_00_old' ya existe
20140417 13:01 Rename table historicocaixa_00 to historicocaixa_00_old 
20140417 13:01 REPLACE DELAYED historicocaixa_00 SET  data=now() , tpdoc='0' , docmov='M' , numero='0' , tm='E' , mp='0' , h=now() , opr='1' , tipo='ABERTURA' , descricao='' , valor='0.0000' 
20140417 13:01 La columna 'tpdoc' en field list es desconocida
20140417 13:01 REPLACE DELAYED historicocaixa_00 SET  data=now() , tpdoc='0' , docmov='M' , numero='0' , tm='E' , mp='0' , h=now() , opr='1' , tipo='ABERTURA' , descricao='' , valor='0.0000' 
20140417 13:01 INSERT INTO taloes_00 (idx,linhas,d_doc,no_talao,tipo_doc,emitido,no_doc,h_doc,cf,no_cf,nome_cf,desc_perc,linha_prc,no_operador,no_vended,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_rec,val_troco,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,rsv) VALUES(NULL,0,20140417000000,1,1,0,0,20000101000000,'C',0,'',0.00,2,1,0,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'');
20140417 13:01 UPDATE taloes_00 SET linhas=0,d_doc=20140417000000,no_talao=1,tipo_doc=1,emitido=0,no_doc=0,h_doc=20000101000000,cf='C',no_cf=0,nome_cf='',desc_perc=0.00,linha_prc=2,no_operador=1,no_vended=0,tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_rec=0.00,val_troco=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,rsv='' WHERE IDX=3 LIMIT 1;
20140417 13:01 Rename table historicocaixa_00 to historicocaixa_00_old 
20140417 13:01 La tabla  'historicocaixa_00_old' ya existe
20140417 13:01 Rename table historicocaixa_00 to historicocaixa_00_old 
20140417 13:01 REPLACE DELAYED historicocaixa_00 SET  data=now() , tpdoc='0' , docmov='M' , numero='0' , tm='E' , mp='0' , h=now() , opr='1' , tipo='ABERTURA' , descricao='' , valor='0.0000' 
20140417 13:01 La columna 'tpdoc' en field list es desconocida
20140417 13:01 REPLACE DELAYED historicocaixa_00 SET  data=now() , tpdoc='0' , docmov='M' , numero='0' , tm='E' , mp='0' , h=now() , opr='1' , tipo='ABERTURA' , descricao='' , valor='0.0000' 
20140417 13:01 UPDATE taloes_00 SET linhas=0,d_doc=20140417000000,no_talao=1,tipo_doc=1,emitido=0,no_doc=0,h_doc=20000101000000,cf='C',no_cf=0,nome_cf='',desc_perc=0.00,linha_prc=2,no_operador=1,no_vended=0,tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_rec=0.00,val_troco=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,rsv='' WHERE IDX=3 LIMIT 1;
20140417 13:01 UPDATE taloes_00 SET linhas=0,d_doc=20140417000000,no_talao=1,tipo_doc=1,emitido=0,no_doc=0,h_doc=20000101000000,cf='C',no_cf=0,nome_cf='',desc_perc=0.00,linha_prc=2,no_operador=1,no_vended=0,tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_rec=0.00,val_troco=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,rsv='' WHERE IDX=3 LIMIT 1;
20140417 13:01 UPDATE taloes_00 SET linhas=0,d_doc=20140417000000,no_talao=1,tipo_doc=1,emitido=0,no_doc=0,h_doc=20000101000000,cf='C',no_cf=0,nome_cf='',desc_perc=0.00,linha_prc=2,no_operador=1,no_vended=0,tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_rec=0.00,val_troco=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,rsv='' WHERE IDX=3 LIMIT 1;
20140502 14:48 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=79,d_doc=20140404000000,d_venc=20140404000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='D',debito=12.01,credito=0.00,acumulado=0.00,val_iva=2.25,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=65 LIMIT 1;
20140502 14:48 UPDATE documento_d2 SET linhas=0,no_doc=79,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101172700,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=96 LIMIT 1;
20140502 14:48 UPDATE documento_d2 SET convertido='0' WHERE no_doc='78' and serdoc='A' 
20140502 14:48 UPDATE documento_d2 SET linhas=2,no_doc=78,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140320000000,d_venc=20140320000000,h_doc=20000101110100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=95 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0243200,prc_c_iva_2=4.9280000,stock_minimo=2.000,stock=-11250.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140404000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121212',codigo2='121212',designacao_1='m,kbm,bm,bm,b,m',designacao_2='',abvr='m,kbm,bm,bm,b,',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=0.0000000,prc_c_iva_1=15.0304000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=20.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=-50.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3200000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1234',codigo2='1234',designacao_1='ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=-100.0000000,marg_2=-100.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1011.000,stock_maximo=0.000,no_forn=0,d_entrada=20131007000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='' WHERE IDX=8 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1234567890123',codigo2='1234567890123',designacao_1='€LKJL€K€LK€K€',designacao_2='',abvr='€LKJL€K€LK€K€',no_un_=2,unidade='KG',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6400000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10011.400,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20130826000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='133232',designacao_2='',abvr='133232',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=25.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=-96.0000000,marg_2=-100.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2320000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-305.000,stock_maximo=0.000,no_forn=0,d_entrada=20130731000000,d_saida=20131014000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=17,rsv='' WHERE IDX=6 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='200051',codigo2='200051',designacao_1='POLO',designacao_2='',abvr='POLO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=200.0000000,marg_2=-100.0000000,prc_s_iva_1=30.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=36.9600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=20130917000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2320000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140320000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3456',codigo2='3456',designacao_1='CAL€A ALGODAO 50%',designacao_2='',abvr='CAL€A ALGODAO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4521',codigo2='4521',designacao_1='ARTIGO NOME DELE',designacao_2='',abvr='ARTIGO NOME',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=15.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=-100.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4800000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-128.000,stock_maximo=0.000,no_forn=0,d_entrada=20140404000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140505 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='P',codigo2='P',designacao_1='PRESTACAO DE SERVI€OS',designacao_2='',abvr='PRESTACAO DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-125.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140505 16:58 UPDATE contas_correntes_clientes SET linha_f=96,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=79,d_doc=20140404000000,d_venc=20140404000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='D',debito=12.01,credito=0.00,acumulado=0.00,val_iva=2.25,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=61 LIMIT 1;
20140505 16:58 UPDATE documento_d2 SET linhas=0,no_doc=79,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140404000000,d_venc=20140404000000,h_doc=20000101172700,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=96 LIMIT 1;
20140505 16:58 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,80,0,'',0,0,'',20140505000000,20140505000000,20000101165800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.20,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140505 16:58 UPDATE documento_d2 SET linhas=0,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140505 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0243200,prc_c_iva_2=4.9280000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140505 16:58 UPDATE documento_d2 SET linhas=0,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140505 16:58 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,80,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.20,9.76,3.9450000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140505 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0243200,prc_c_iva_2=4.9280000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140505 16:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=80,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.20,valor=10.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=160 LIMIT 1;
20140505 16:58 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',80,20140505000000,20140505000000,'','',12.32,12.32,'D',12.32,0.00,0.00,2.32,0.00,1.000000,0,0,'A','');
20140505 16:58 UPDATE documento_d2 SET linhas=0,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.32,tot_valor=12.32,val_pago=0.00,val_pend=12.32,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.32,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140505 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.20,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0243200,prc_c_iva_2=4.9280000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140505 16:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=80,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.20,valor=10.40,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=160 LIMIT 1;
20140505 17:41 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=80,d_doc=20140505000000,d_venc=20140505000000,ref='',obs='',valor=12.81,pendente=12.81,deb_cred='D',debito=12.81,credito=0.00,acumulado=0.00,val_iva=2.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=65 LIMIT 1;
20140505 17:41 UPDATE documento_d2 SET linhas=0,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.40,tot_desconto=0.00,tot_liquido=10.40,tot_iva=2.41,tot_valor=12.81,val_pago=0.00,val_pend=12.81,suj_valor0=10.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140505 18:11 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=80,d_doc=20140505000000,d_venc=20140505000000,ref='',obs='',valor=12.81,pendente=12.81,deb_cred='D',debito=12.81,credito=0.00,acumulado=0.00,val_iva=2.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=65 LIMIT 1;
20140505 18:11 UPDATE documento_d2 SET linhas=0,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.40,tot_desconto=0.00,tot_liquido=10.40,tot_iva=2.41,tot_valor=12.81,val_pago=0.00,val_pend=12.81,suj_valor0=10.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140505 18:11 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,20,0,2,'1','TESTW',10.40,0.00,'',80,20140505000000,0.00,'');
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121212',codigo2='121212',designacao_1='m,kbm,bm,bm,b,m',designacao_2='',abvr='m,kbm,bm,bm,b,',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=0.0000000,prc_c_iva_1=15.0060000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=20.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-50.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140128000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1234',codigo2='1234',designacao_1='ARTIGO 123 454 D54 1D251 2D1 2D1 C TESTT',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-100.0000000,marg_2=-100.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1011.000,stock_maximo=0.000,no_forn=0,d_entrada=20131007000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='' WHERE IDX=8 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1234567890123',codigo2='1234567890123',designacao_1='€LKJL€K€LK€K€',designacao_2='',abvr='€LKJL€K€LK€K€',no_un_=2,unidade='KG',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10011.400,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20130826000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='133232',designacao_2='',abvr='133232',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=25.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-96.0000000,marg_2=-100.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-305.000,stock_maximo=0.000,no_forn=0,d_entrada=20130731000000,d_saida=20131014000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=17,rsv='' WHERE IDX=6 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='200051',codigo2='200051',designacao_1='POLO',designacao_2='',abvr='POLO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=200.0000000,marg_2=-100.0000000,prc_s_iva_1=30.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=36.9000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=20130917000000,d_saida=20131024000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140320000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3456',codigo2='3456',designacao_1='CAL€A ALGODAO 50%',designacao_2='',abvr='CAL€A ALGODAO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131216000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4521',codigo2='4521',designacao_1='ARTIGO NOME DELE',designacao_2='',abvr='ARTIGO NOME',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=15.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=-100.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-128.000,stock_maximo=0.000,no_forn=0,d_entrada=20140404000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140505 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='P',codigo2='P',designacao_1='PRESTACAO DE SERVI€OS',designacao_2='',abvr='PRESTACAO DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-125.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20131008000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23032.62,saldo1=-23032.62,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24.82,saldo1=-24.82,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140509 17:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140509 17:50 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1695.32,saldo1=1695.32,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=2 LIMIT 1;
20140509 17:50 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='kaehjfl‡v',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:50 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2123,nome_1='zxdcvxcv',nome_2='',morada='cvcv',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=4 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23032.62,saldo1=-23032.62,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24.82,saldo1=-24.82,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140509 17:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140509 17:53 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1695.32,saldo1=1695.32,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=2 LIMIT 1;
20140509 17:53 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='kaehjfl‡v',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:53 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2123,nome_1='zxdcvxcv',nome_2='',morada='cvcv',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=4 LIMIT 1;
20140509 17:53 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1695.32,saldo1=1695.32,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=2 LIMIT 1;
20140509 17:53 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='kaehjfl‡v',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:53 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2123,nome_1='zxdcvxcv',nome_2='',morada='cvcv',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=4 LIMIT 1;
20140509 17:54 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1695.32,saldo1=1695.32,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=2 LIMIT 1;
20140509 17:54 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='kaehjfl‡v',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:54 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2123,nome_1='zxdcvxcv',nome_2='',morada='cvcv',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,rsv='' WHERE IDX=4 LIMIT 1;
20140509 17:55 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,5,0,'1','','teste2','');
20140509 17:55 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,10,0,'1','','teste3','');
20140509 17:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:55 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,80,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140509 17:55 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,80,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140509 17:55 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,80,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140509 17:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11251.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:55 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=80,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=161 LIMIT 1;
20140509 17:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11261.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 17:55 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=80,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=10.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=97.60,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=161 LIMIT 1;
20140509 17:55 UPDATE contas_correntes_clientes SET linha_f=97,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=80,d_doc=20140505000000,d_venc=20140505000000,ref='',obs='',valor=110.41,pendente=110.41,deb_cred='D',debito=110.41,credito=0.00,acumulado=0.00,val_iva=2.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=62 LIMIT 1;
20140509 17:55 UPDATE documento_d2 SET linhas=0,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=108.00,tot_desconto=0.00,tot_liquido=108.00,tot_iva=2.41,tot_valor=110.41,val_pago=0.00,val_pend=110.41,suj_valor0=10.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=97.60,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140509 17:55 UPDATE contas_correntes_clientes SET linha_f=97,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=80,d_doc=20140505000000,d_venc=20140505000000,ref='',obs='',valor=110.41,pendente=110.41,deb_cred='D',debito=110.41,credito=0.00,acumulado=0.00,val_iva=2.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=62 LIMIT 1;
20140509 17:55 UPDATE documento_d2 SET linhas=4,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=108.00,tot_desconto=0.00,tot_liquido=108.00,tot_iva=2.41,tot_valor=110.41,val_pago=0.00,val_pend=110.41,suj_valor0=10.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=97.60,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140509 17:55 UPDATE contas_correntes_clientes SET linha_f=97,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=80,d_doc=20140505000000,d_venc=20140505000000,ref='',obs='',valor=110.41,pendente=110.41,deb_cred='D',debito=110.41,credito=0.00,acumulado=0.00,val_iva=2.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=62 LIMIT 1;
20140509 17:55 UPDATE documento_d2 SET linhas=4,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=108.00,tot_desconto=0.00,tot_liquido=108.00,tot_iva=2.41,tot_valor=110.41,val_pago=0.00,val_pend=110.41,suj_valor0=10.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=97.60,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140509 18:12 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20140509000000,20140509000000,20000101181200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'B',0,'');
20140509 18:12 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140509000000,d_venc=20140509000000,h_doc=20000101181200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='B',tpdoc=0,rsv='' WHERE IDX=98 LIMIT 1;
20140509 18:12 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'B',0,0,'');
20140509 18:12 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'B',0,0,'');
20140509 18:12 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,1,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'B',0,0,'');
20140509 18:12 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11261.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140505000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 18:12 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='B',tpdoc=0,miva=0,rsv='' WHERE IDX=164 LIMIT 1;
20140509 18:12 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140509000000,d_venc=20140509000000,h_doc=20000101181200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='B',tpdoc=0,rsv='' WHERE IDX=98 LIMIT 1;
20140509 18:12 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11262.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140509000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140509 18:12 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140509000000,d_venc=20140509000000,h_doc=20000101181200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='B',tpdoc=0,rsv='' WHERE IDX=98 LIMIT 1;
20140509 18:12 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.76,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='B',tpdoc=0,miva=0,rsv='' WHERE IDX=164 LIMIT 1;
20140509 18:12 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',1,20140509000000,20140509000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,1,0,'B','');
20140509 18:12 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140509000000,d_venc=20140509000000,h_doc=20000101181200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='B',tpdoc=0,rsv='' WHERE IDX=98 LIMIT 1;
20140509 18:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=1,d_doc=20140509000000,d_venc=20140509000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='D',debito=12.01,credito=0.00,acumulado=0.00,val_iva=2.25,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='B',rsv='' WHERE IDX=66 LIMIT 1;
20140509 18:12 UPDATE documento_d2 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140509000000,d_venc=20140509000000,h_doc=20000101181200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='B',tpdoc=0,rsv='' WHERE IDX=98 LIMIT 1;
20140509 18:14 Tabla 'empdemo.caja' no existe
20140509 18:14 UPDATE caja set z=1 where z=0; 
20140510 11:57 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,0,'',0,0,'',20140510000000,20140510000000,20000101115700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140615 17:40 UPDATE contas_correntes_clientes SET linha_f=97,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=80,d_doc=20140505000000,d_venc=20140505000000,ref='',obs='',valor=110.41,pendente=110.41,deb_cred='D',debito=110.41,credito=0.00,acumulado=0.00,val_iva=2.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=62 LIMIT 1;
20140615 17:40 UPDATE documento_d2 SET linhas=4,no_doc=80,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140505000000,d_venc=20140505000000,h_doc=20000101165800,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=108.00,tot_desconto=0.00,tot_liquido=108.00,tot_iva=2.41,tot_valor=110.41,val_pago=0.00,val_pend=110.41,suj_valor0=10.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=97.60,suj_taxa0=23.20,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=97 LIMIT 1;
20140615 17:40 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,81,0,'',0,0,'',20140615000000,20140615000000,20000101174000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140615 17:40 UPDATE documento_d2 SET linhas=0,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:40 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,81,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140615 17:40 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,81,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140615 17:40 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,81,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140615 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11262.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140509000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140615 17:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=167 LIMIT 1;
20140615 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11263.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140615 17:40 UPDATE documento_d2 SET linhas=0,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.76,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=167 LIMIT 1;
20140615 17:40 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',81,20140615000000,20140615000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,1,0,'A','');
20140615 17:40 UPDATE documento_d2 SET linhas=0,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:40 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=12.01,pendente=12.01,deb_cred='D',debito=12.01,credito=0.00,acumulado=0.00,val_iva=2.25,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=67 LIMIT 1;
20140615 17:40 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11263.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140615 17:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.10,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=167 LIMIT 1;
20140615 17:40 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=12.42,pendente=12.42,deb_cred='D',debito=12.42,credito=0.00,acumulado=0.00,val_iva=2.32,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=67 LIMIT 1;
20140615 17:40 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.10,tot_desconto=0.00,tot_liquido=10.10,tot_iva=2.32,tot_valor=12.42,val_pago=0.00,val_pend=12.42,suj_valor0=10.10,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.32,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:40 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=12.42,pendente=12.42,deb_cred='D',debito=12.42,credito=0.00,acumulado=0.00,val_iva=2.32,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=67 LIMIT 1;
20140615 17:40 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.10,tot_desconto=0.00,tot_liquido=10.10,tot_iva=2.32,tot_valor=12.42,val_pago=0.00,val_pend=12.42,suj_valor0=10.10,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.32,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:40 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=12.42,pendente=12.42,deb_cred='D',debito=12.42,credito=0.00,acumulado=0.00,val_iva=2.32,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=67 LIMIT 1;
20140615 17:40 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.10,tot_desconto=0.00,tot_liquido=10.10,tot_iva=2.32,tot_valor=12.42,val_pago=0.00,val_pend=12.42,suj_valor0=10.10,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.32,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11262.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140615 17:41 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,81,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140615 17:41 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,81,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140615 17:41 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,81,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140615 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11262.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140615 17:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=10.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=170 LIMIT 1;
20140615 17:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=10.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=170 LIMIT 1;
20140615 17:41 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140615 17:41 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140805 16:18 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140806 15:13 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11263.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140806 15:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.10,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=170 LIMIT 1;
20140806 15:13 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11263.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140806 15:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=81,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=170 LIMIT 1;
20140806 15:13 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',81,20140615000000,20140615000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,1,0,'A','');
20140806 15:13 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140806 15:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=68 LIMIT 1;
20140806 15:13 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140806 15:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=68 LIMIT 1;
20140806 15:13 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140806 15:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=81,d_doc=20140615000000,d_venc=20140615000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=68 LIMIT 1;
20140806 15:13 UPDATE documento_d2 SET linhas=3,no_doc=81,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140615000000,d_venc=20140615000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=99 LIMIT 1;
20140806 15:13 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,82,0,'',0,0,'',20140806000000,20140806000000,20000101151300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140806 15:13 UPDATE documento_d2 SET linhas=0,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:13 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,82,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140806 15:13 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,82,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140806 15:13 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,82,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140806 15:13 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11263.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140615000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140806 15:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=82,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=173 LIMIT 1;
20140806 15:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=82,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=173 LIMIT 1;
20140806 15:13 UPDATE documento_d2 SET linhas=0,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:14 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11264.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140806 15:14 UPDATE documento_d2 SET linhas=0,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:14 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=82,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=173 LIMIT 1;
20140806 15:14 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',82,20140806000000,20140806000000,'','',18.45,18.45,'D',18.45,0.00,0.00,3.45,0.00,1.000000,1,0,'A','');
20140806 15:14 UPDATE documento_d2 SET linhas=0,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=82,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20140806 15:14 UPDATE documento_d2 SET linhas=3,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:14 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,82,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140806 15:14 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=82,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=176 LIMIT 1;
20140806 15:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=82,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20140806 15:14 UPDATE documento_d2 SET linhas=3,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=82,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20140806 15:14 UPDATE documento_d2 SET linhas=3,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:14 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=82,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=176 LIMIT 1;
20140806 15:14 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=82,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=176 LIMIT 1;
20140806 15:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=82,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20140806 15:14 UPDATE documento_d2 SET linhas=3,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:15 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'345','345','teste 345','','teste 345',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,10.0000000,0.0000000,12.3000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140806 15:15 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,30,0,1,'345','teste 345',10.00,0.00,'',0,00000000000000,0.00,'');
20140806 15:15 UPDATE artigos_cliente SET linha=30,cor=0,no=1,codigo='345',desig='teste 345',preco=8.00,desconto=0.00,abvr_doc='',nodoc=0,data_doc=00000000000000,desc_val=0.00,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=3,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23179.13,saldo1=-23179.13,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140806 15:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=6,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23179.13,saldo1=-23179.13,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140806 15:15 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=82,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20140806 15:15 UPDATE documento_d2 SET linhas=3,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:15 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=82,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=18.45,pendente=18.45,deb_cred='D',debito=18.45,credito=0.00,acumulado=0.00,val_iva=3.45,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20140806 15:15 UPDATE documento_d2 SET linhas=3,no_doc=82,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=15.00,tot_desconto=0.00,tot_liquido=15.00,tot_iva=3.45,tot_valor=18.45,val_pago=0.00,val_pend=18.45,suj_valor0=15.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=100 LIMIT 1;
20140806 15:16 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,83,0,'',0,0,'',20140806000000,20140806000000,20000101151600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140806 15:16 UPDATE documento_d2 SET linhas=0,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='345',codigo2='345',designacao_1='teste 345',designacao_2='',abvr='teste 345',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140806 15:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,83,'345','teste 345','','',0.000000,8.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140806 15:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=83,codigo='345',designacao='teste 345',unidade='',com_iva='',quantidade=0.000000,preco_unit=8.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=177 LIMIT 1;
20140806 15:16 UPDATE documento_d2 SET linhas=0,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='345',codigo2='345',designacao_1='teste 345',designacao_2='',abvr='teste 345',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140806 15:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=83,codigo='345',designacao='teste 345',unidade='',com_iva='',quantidade=10.000000,preco_unit=8.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=80.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=177 LIMIT 1;
20140806 15:16 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',83,20140806000000,20140806000000,'','',98.40,98.40,'D',98.40,0.00,0.00,18.40,0.00,1.000000,1,0,'A','');
20140806 15:16 UPDATE documento_d2 SET linhas=0,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,83,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140806 15:16 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=83,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=178 LIMIT 1;
20140806 15:16 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=83,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=98.40,pendente=98.40,deb_cred='D',debito=98.40,credito=0.00,acumulado=0.00,val_iva=18.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140806 15:16 UPDATE documento_d2 SET linhas=0,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='345',codigo2='345',designacao_1='teste 345',designacao_2='',abvr='teste 345',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140806 15:16 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=83,codigo='345',designacao='teste 345',unidade='',com_iva='',quantidade=0.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=178 LIMIT 1;
20140806 15:16 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=83,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=98.40,pendente=98.40,deb_cred='D',debito=98.40,credito=0.00,acumulado=0.00,val_iva=18.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140806 15:16 UPDATE documento_d2 SET linhas=0,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='345',codigo2='345',designacao_1='teste 345',designacao_2='',abvr='teste 345',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20140806 15:16 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=83,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=98.40,pendente=98.40,deb_cred='D',debito=98.40,credito=0.00,acumulado=0.00,val_iva=18.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140806 15:16 UPDATE documento_d2 SET linhas=0,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,83,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140806 15:16 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=83,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=179 LIMIT 1;
20140806 15:16 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=83,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=98.40,pendente=98.40,deb_cred='D',debito=98.40,credito=0.00,acumulado=0.00,val_iva=18.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140806 15:16 UPDATE documento_d2 SET linhas=2,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:16 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=83,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=98.40,pendente=98.40,deb_cred='D',debito=98.40,credito=0.00,acumulado=0.00,val_iva=18.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140806 15:16 UPDATE documento_d2 SET linhas=2,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:17 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'678','678','artigo 678','','artigo 678',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,20.0000000,0.0000000,24.6000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140806 15:17 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,35,0,1,'678','artigo 678',20.00,0.00,'',0,00000000000000,0.00,'');
20140806 15:17 UPDATE artigos_cliente SET linha=35,cor=0,no=1,codigo='678',desig='artigo 678',preco=22.50,desconto=0.00,abvr_doc='',nodoc=0,data_doc=00000000000000,desc_val=0.00,rsv='' WHERE IDX=22 LIMIT 1;
20140806 15:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=6,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23277.53,saldo1=-23277.53,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140806 15:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23277.53,saldo1=-23277.53,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140806 15:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=83,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=98.40,pendente=98.40,deb_cred='D',debito=98.40,credito=0.00,acumulado=0.00,val_iva=18.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=2,no_doc=83,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=2,no_doc=83,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=80.00,tot_desconto=0.00,tot_liquido=80.00,tot_iva=18.40,tot_valor=98.40,val_pago=0.00,val_pend=98.40,suj_valor0=80.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=101 LIMIT 1;
20140806 15:18 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,84,0,'',0,0,'',20140806000000,20140806000000,20000101151800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140806 15:18 UPDATE documento_d2 SET linhas=0,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,84,'678','artigo 678','','',0.000000,22.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140806 15:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=84,codigo='678',designacao='artigo 678',unidade='',com_iva='',quantidade=0.000000,preco_unit=22.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=180 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=0,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=84,codigo='678',designacao='artigo 678',unidade='',com_iva='',quantidade=10.000000,preco_unit=22.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=225.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=180 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,84,'678','artigo 678','','',0.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140806 15:18 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',84,20140806000000,20140806000000,'','',276.75,276.75,'D',276.75,0.00,0.00,51.75,0.00,1.000000,1,0,'A','');
20140806 15:18 UPDATE documento_d2 SET linhas=0,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.00,tot_desconto=0.00,tot_liquido=225.00,tot_iva=51.75,tot_valor=276.75,val_pago=0.00,val_pend=276.75,suj_valor0=225.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=84,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=0,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.00,tot_desconto=0.00,tot_liquido=225.00,tot_iva=51.75,tot_valor=276.75,val_pago=0.00,val_pend=276.75,suj_valor0=225.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,84,'678','artigo 678','','',0.000000,22.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140806 15:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=84,codigo='678',designacao='artigo 678',unidade='',com_iva='',quantidade=0.000000,preco_unit=22.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=182 LIMIT 1;
20140806 15:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='678',codigo2='678',designacao_1='artigo 678',designacao_2='',abvr='artigo 678',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=20.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=24.6000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140806000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20140806 15:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=84,codigo='678',designacao='artigo 678',unidade='',com_iva='',quantidade=1.000000,preco_unit=22.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=22.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=182 LIMIT 1;
20140806 15:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=84,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=27.68,pendente=27.68,deb_cred='D',debito=27.68,credito=0.00,acumulado=0.00,val_iva=5.18,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=0,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22.50,tot_desconto=0.00,tot_liquido=22.50,tot_iva=5.18,tot_valor=27.68,val_pago=0.00,val_pend=27.68,suj_valor0=22.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140806 15:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=84,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=27.68,pendente=27.68,deb_cred='D',debito=27.68,credito=0.00,acumulado=0.00,val_iva=5.18,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=1,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22.50,tot_desconto=0.00,tot_liquido=22.50,tot_iva=5.18,tot_valor=27.68,val_pago=0.00,val_pend=27.68,suj_valor0=22.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140806 15:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=84,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=27.68,pendente=27.68,deb_cred='D',debito=27.68,credito=0.00,acumulado=0.00,val_iva=5.18,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20140806 15:18 UPDATE documento_d2 SET linhas=1,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22.50,tot_desconto=0.00,tot_liquido=22.50,tot_iva=5.18,tot_valor=27.68,val_pago=0.00,val_pend=27.68,suj_valor0=22.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140823 12:03 DROP TABLE IF EXISTS tmp;
20140823 12:03 CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20140823 12:03 DROP TABLE IF EXISTS tmp2;
20140823 12:03 CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20140823 12:03 INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
20140823 12:03 INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
20140823 12:03 SELECT * FROM TMP2 WHERE custo<>compra ;
20140823 12:03 UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
20140828 10:36 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20140828000000,00000000000000,20000101103600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20140828000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20140828 10:36 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquida‡Ćo',2,20140828000000,20140828000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20140828 10:36 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20140828 10:36 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,2,'D',10,'V/ Factura',2,20130327000000,20130327000000,'','C',373.00,373.00,373.00,0.000,0.00,373.00,0.00,0.00,0,'A',350.00,23.00,373.00,100.00,0.00,0.00,250.00,23.00,13.00,6.00,0.00,23.00,0.00,0.00,0.00,0,'');
20140828 10:36 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,20,0,2,'D',10,'V/ Factura',3,20130731000000,20130731000000,'','C',250.00,250.00,250.00,0.000,0.00,250.00,0.00,0.00,0,'A',250.00,0.00,250.00,0.00,0.00,0.00,250.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'');
20140828 10:36 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,30,0,2,'D',10,'V/ Factura',5,20140128000000,20140128000000,'212121','C',1024.60,1024.60,377.00,0.000,0.00,377.00,0.00,0.00,0,'A',1020.00,4.60,1024.60,20.00,0.00,0.00,1000.00,23.00,13.00,6.00,0.00,4.60,0.00,0.00,0.00,0,'');
20140829 17:14 UPDATE documento_d1 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20140325000000,d_venc=20140325000000,h_doc=20000101161000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.30,tot_desconto=0.00,tot_liquido=12.30,tot_iva=0.00,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12.30,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20140829 17:14 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,17,0,'',0,0,'',20140829000000,20140829000000,20000101171400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140829 17:14 UPDATE documento_d1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20140829 17:14 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140320000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140829 17:14 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,17,'212421','jgjkgjhkgkjgjkghkjgk','','',0.000000,1.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140829 17:14 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=0.000000,preco_unit=1.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20140829 17:14 UPDATE documento_d1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20140829 17:14 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140829000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140829 17:14 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20140829 17:14 UPDATE documento_d1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=1.23,val_pend=0.00,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20140829 17:14 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=1.23,val_pend=0.00,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20140829 17:14 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=1.23,val_pend=0.00,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20140902 16:48 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,pda,ivac,rsv) VALUES(NULL,17,'FACTURA PRO-FORMA','C','',1,'doc2.rpt',1,'N','C','N','docs','FP','N','','N','N/ Factura Pro-Forma','','N','N','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N',0,0,'');
20140902 16:48 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20140902 16:48 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20140902 16:49 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20140902 16:49 CREATE TABLE IF NOT EXISTS documento_d17 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d17_1 (no_doc) ,INDEX documento_d17_2 (no_cf,no_doc) ,INDEX documento_d17_3 (d_doc,no_doc) );
20140902 16:49 CREATE TABLE IF NOT EXISTS documento_linhas_d17 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(31),PRIMARY KEY (IDX),UNIQUE INDEX documento_linhas_d17_1 (num_doc,lnh_f) );
20140902 17:00 DROP TABLE IF EXISTS tmp;
20140902 17:00 CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20140902 17:00 DROP TABLE IF EXISTS tmp2;
20140902 17:00 CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20140902 17:00 INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
20140902 17:00 INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
20140902 17:00 SELECT * FROM TMP2 WHERE custo<>compra ;
20140902 17:00 UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
20140902 17:00 DROP TABLE IF EXISTS tmpi
20140902 17:00 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20140902 17:00 CREATE INDEX tmpi_i ON TMPi(codigo);
20140902 17:00 DROP TABLE IF EXISTS tmp
20140902 17:00 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20140902 17:00 CREATE INDEX tmp_i ON TMP(codigo);
20140902 17:00 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20140902 17:00 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20140902 17:00 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20140902 17:00 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20140902 17:00 UPDATE IGNORE TMP SET preco=0 where ent<=0
20140902 17:00 DROP TABLE IF EXISTS tmp2
20140902 17:00 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20140902 17:00 CREATE INDEX tmp2_i ON TMP2(codigo);
20140902 17:00 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
20140902 17:00 DROP TABLE IF EXISTS Inventario;
20140902 17:00 CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
20140902 17:00 INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
20140902 17:00 Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
20140910 11:08 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140910 11:08 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140910 11:08 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140915 09:57 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,rsv) VALUES(NULL,0,0,0,0,1455,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
20140915 09:57 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140915 09:57 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'321','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140915 09:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20140915 09:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='2121212121 h ghku gj',designacao_2='',abvr='2121212121 h',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20140915 09:58 UPDATE documento_d10 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20140510000000,d_venc=20140510000000,h_doc=20000101115700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140915 09:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=-50.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140510000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140915 09:58 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,11,'123','pe‡a 123','','',0.000000,20.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,20.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140915 09:58 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=11,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=0.000000,preco_unit=20.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=20.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20140915 09:58 UPDATE documento_d10 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20140510000000,d_venc=20140510000000,h_doc=20000101115700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140915 09:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='pe‡a 123',designacao_2='',abvr='pe‡a 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=20.0000000,custo_medio=20.0000000,valor_medio=100.0000000,no_iva=1,iva=23.00,marg_1=-50.0000000,marg_2=-100.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=5.000,stock_maximo=0.000,no_forn=0,d_entrada=20140510000000,d_saida=20140203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20140915 09:58 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=11,codigo='123',designacao='pe‡a 123',unidade='',com_iva='',quantidade=10.000000,preco_unit=20.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=200.00,ult_custo=20.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20140915 09:58 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Factura',11,20140510000000,20140510000000,'21212121','',246.00,246.00,'C',0.00,246.00,0.00,46.00,0.00,1.000000,0,0,'A','');
20140915 09:58 UPDATE documento_d10 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20140510000000,d_venc=20140510000000,h_doc=20000101115700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=200.00,tot_desconto=0.00,tot_liquido=200.00,tot_iva=46.00,tot_valor=246.00,val_pago=0.00,val_pend=246.00,suj_valor0=200.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140915 09:59 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=11,d_doc=20140510000000,d_venc=20140510000000,ref='21212121',obs='',valor=246.00,pendente=246.00,deb_cred='C',debito=0.00,credito=246.00,acumulado=0.00,val_iva=46.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20140915 09:59 UPDATE documento_d10 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20140510000000,d_venc=20140510000000,h_doc=20000101115700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=200.00,tot_desconto=0.00,tot_liquido=200.00,tot_iva=46.00,tot_valor=246.00,val_pago=0.00,val_pend=246.00,suj_valor0=200.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20140915 09:59 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=84,d_doc=20140806000000,d_venc=20140806000000,ref='',obs='',valor=27.68,pendente=27.68,deb_cred='D',debito=27.68,credito=0.00,acumulado=0.00,val_iva=5.18,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20140915 09:59 UPDATE documento_d2 SET linhas=1,no_doc=84,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22.50,tot_desconto=0.00,tot_liquido=22.50,tot_iva=5.18,tot_valor=27.68,val_pago=0.00,val_pend=27.68,suj_valor0=22.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140915 10:00 UPDATE documento_d2 SET linhas=1,no_doc=84,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22.50,tot_desconto=0.00,tot_liquido=22.50,tot_iva=5.18,tot_valor=27.68,val_pago=0.00,val_pend=27.68,suj_valor0=22.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140915 10:01 UPDATE documento_d2 SET convertido='0' WHERE no_doc='84' and serdoc='A' 
20140915 10:01 UPDATE documento_d2 SET linhas=1,no_doc=84,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140806000000,d_venc=20140806000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=22.50,tot_desconto=0.00,tot_liquido=22.50,tot_iva=5.18,tot_valor=27.68,val_pago=0.00,val_pend=27.68,suj_valor0=22.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=102 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23195.60,saldo1=-23195.60,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,rsv='' WHERE IDX=8 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=12 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20140915 10:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140915 10:02 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,85,0,'',0,0,'',20140915000000,20140915000000,20000101100200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140915 10:02 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140915000000,d_venc=20140915000000,h_doc=20000101100200,no_cf=8,nome_cf='MIR, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=103 LIMIT 1;
20140915 10:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,85,'','fghfg fgfghf gfh','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20140915 10:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='',designacao='fghfg fgfghf gfh',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=183 LIMIT 1;
20140915 10:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='',designacao='fghfg fgfghf gfh',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=183 LIMIT 1;
20140915 10:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='',designacao='fghfg fgfghf gfh',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=183 LIMIT 1;
20140915 10:03 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Factura',85,20140915000000,20140915000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,0,0,'A','');
20140915 10:03 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140915000000,d_venc=20140915000000,h_doc=20000101100200,no_cf=8,nome_cf='MIR, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=0.00,val_pend=123.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=103 LIMIT 1;
20140915 10:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140915 10:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,85,'12','SERGVICOS DE FLORESTA','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,2,'');
20140915 10:03 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=85,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=2,rsv='' WHERE IDX=184 LIMIT 1;
20140915 10:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Factura',no_doc=85,d_doc=20140915000000,d_venc=20140915000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140915 10:03 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140915000000,d_venc=20140915000000,h_doc=20000101100200,no_cf=8,nome_cf='MIR, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=0.00,val_pend=123.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=103 LIMIT 1;
20140915 10:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Factura',no_doc=85,d_doc=20140915000000,d_venc=20140915000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20140915 10:03 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140915000000,d_venc=20140915000000,h_doc=20000101100200,no_cf=8,nome_cf='MIR, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=0.00,val_pend=123.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=103 LIMIT 1;
20140915 10:03 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20140915000000,d_venc=20140915000000,h_doc=20000101100200,no_cf=8,nome_cf='MIR, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=0.00,val_pend=123.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=103 LIMIT 1;
20140915 10:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20140917 17:39 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,12,0,'',0,0,'',20140917000000,20140917000000,20000101173900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140917 17:39 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101173900,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20140917 17:40 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'sa1','sa1','CONTACTOR XXXX','','CONTACTOR XXXX',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,9.7600000,0.0000000,12.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140917 17:40 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101173900,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20140917 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,12,'sa1','CONTACTOR XXXX','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140917 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=9.7600000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=12,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'sa1',2,'kaehjfl‡v',12.00,0.00,0.00,20140917000000,'');
20140917 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=12.0000000,custo_medio=12.0000000,valor_medio=120.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=12.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=12,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=10.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=120.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.0000000,prc_s_iva_2=6.0000000,prc_c_iva_1=7.3800000,prc_c_iva_2=7.3800000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=12,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=10.000000,preco_unit=12.0000000,desc1=50.0000000,desc_1=60.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Factura',12,20140917000000,20140917000000,'','',73.80,73.80,'C',0.00,73.80,0.00,13.80,0.00,1.000000,0,0,'A','');
20140917 17:40 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101173900,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20140917 17:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=73.80,pendente=73.80,deb_cred='C',debito=0.00,credito=73.80,acumulado=0.00,val_iva=13.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20140917 17:40 UPDATE documento_d10 SET linhas=1,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101173900,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20140917 17:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=73.80,pendente=73.80,deb_cred='C',debito=0.00,credito=73.80,acumulado=0.00,val_iva=13.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20140917 17:40 UPDATE documento_d10 SET linhas=1,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101173900,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20140917 17:40 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,85,0,'',0,0,'',20140917000000,20140917000000,20000101174000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140917 17:40 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20140917 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.0000000,prc_s_iva_2=6.0000000,prc_c_iva_1=7.3800000,prc_c_iva_2=7.3800000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,12,0,'',0,0,'',20140917000000,20140917000000,20000101174000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20140917 17:40 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=6.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.0000000,prc_s_iva_2=6.0000000,prc_c_iva_1=7.3800000,prc_c_iva_2=7.3800000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:40 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,12,'sa1','CONTACTOR XXXX','','',0.000000,6.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,6.0000000,6.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140917 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.0000000,prc_s_iva_2=6.0000000,prc_c_iva_1=7.3800000,prc_c_iva_2=7.3800000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:41 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=12,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=10.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=6.0000000,custo_medio=6.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=12.0000000,custo_medio=12.0000000,valor_medio=120.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=12.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:41 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=12,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=10.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=120.00,ult_custo=6.0000000,custo_medio=6.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.0000000,prc_s_iva_2=6.0000000,prc_c_iva_1=7.3800000,prc_c_iva_2=7.3800000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:41 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=12,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=10.000000,preco_unit=12.0000000,desc1=50.0000000,desc_1=60.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=6.0000000,custo_medio=6.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:41 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Factura',12,20140917000000,20140917000000,'','',73.80,73.80,'C',0.00,73.80,0.00,13.80,0.00,1.000000,0,0,'A','');
20140917 17:41 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:41 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=73.80,pendente=73.80,deb_cred='C',debito=0.00,credito=73.80,acumulado=0.00,val_iva=13.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20140917 17:41 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=100.0000000,marg_2=100.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=12.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:41 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=73.80,pendente=73.80,deb_cred='C',debito=0.00,credito=73.80,acumulado=0.00,val_iva=13.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20140917 17:41 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:42 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'SA2','SA2','TESTAE SA2','','TESTAE SA2',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,12.2000000,0.0000000,15.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20140917 17:42 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=73.80,pendente=73.80,deb_cred='C',debito=0.00,credito=73.80,acumulado=0.00,val_iva=13.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20140917 17:42 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.00,tot_desconto=60.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=0.0000000,prc_c_iva_1=15.0060000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:42 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,12,'SA2','TESTAE SA2','','',0.000000,12.2000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140917 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=12.2000000,custo_medio=12.2000000,valor_medio=24.4000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=12.2000000,prc_c_iva_1=15.0060000,prc_c_iva_2=15.0060000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:42 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=12,codigo='SA2',designacao='TESTAE SA2',unidade='',com_iva='',quantidade=2.000000,preco_unit=12.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=24.40,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=25 LIMIT 1;
20140917 17:42 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'SA2',2,'kaehjfl‡v',12.20,45.00,0.00,20140917000000,'');
20140917 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.7100000,custo_medio=6.7100000,valor_medio=13.4200000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.7100000,prc_s_iva_2=6.7100000,prc_c_iva_1=8.2533000,prc_c_iva_2=8.2533000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:42 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=12,codigo='SA2',designacao='TESTAE SA2',unidade='',com_iva='',quantidade=2.000000,preco_unit=12.2000000,desc1=45.0000000,desc_1=10.9800000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=13.42,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=25 LIMIT 1;
20140917 17:42 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=90.31,pendente=90.31,deb_cred='C',debito=0.00,credito=90.31,acumulado=0.00,val_iva=16.89,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20140917 17:42 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=144.40,tot_desconto=70.98,tot_liquido=73.42,tot_iva=16.89,tot_valor=90.31,val_pago=0.00,val_pend=90.31,suj_valor0=73.42,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=16.89,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:42 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=90.31,pendente=90.31,deb_cred='C',debito=0.00,credito=90.31,acumulado=0.00,val_iva=16.89,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20140917 17:42 UPDATE documento_d10 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=144.40,tot_desconto=70.98,tot_liquido=73.42,tot_iva=16.89,tot_valor=90.31,val_pago=0.00,val_pend=90.31,suj_valor0=73.42,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=16.89,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20140917 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.7100000,custo_medio=6.7100000,valor_medio=13.4200000,no_iva=1,iva=23.00,marg_1=81.8181818,marg_2=81.8181818,prc_s_iva_1=12.2000000,prc_s_iva_2=12.2000000,prc_c_iva_1=15.0060000,prc_c_iva_2=15.0060000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=100.0000000,marg_2=100.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=12.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=100.0000000,marg_2=100.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=12.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:43 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,85,'sa1','CONTACTOR XXXX','','',0.000000,12.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,6.0000000,6.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20140917 17:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='sa1',designacao='CONTACTOR XXXX',unidade='',com_iva='',quantidade=0.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=6.0000000,custo_medio=6.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=185 LIMIT 1;
20140917 17:43 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20140917 17:43 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20140917 17:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=100.0000000,marg_2=100.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=12.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.0000000,custo_medio=6.0000000,valor_medio=60.0000000,no_iva=1,iva=23.00,marg_1=120.8333333,marg_2=100.0000000,prc_s_iva_1=13.2500000,prc_s_iva_2=12.0000000,prc_c_iva_1=16.3000000,prc_c_iva_2=14.7600000,stock_minimo=0.000,stock=10.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20140917 17:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=6.7100000,custo_medio=6.7100000,valor_medio=13.4200000,no_iva=1,iva=23.00,marg_1=127.2727273,marg_2=81.8181818,prc_s_iva_1=15.2500000,prc_s_iva_2=12.2000000,prc_c_iva_1=18.7600000,prc_c_iva_2=15.0100000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20140917000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20140917 18:49 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20150102 09:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140128000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20150102 09:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,85,'12','SERGVICOS DE FLORESTA','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150102 09:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=186 LIMIT 1;
20150102 09:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140917000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20150102 09:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=186 LIMIT 1;
20150102 09:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140917000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20150102 09:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=85,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=186 LIMIT 1;
20150102 09:28 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',85,20140917000000,20140917000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20150102 09:28 UPDATE documento_d2 SET linhas=0,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20150102 09:28 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,40,0,1,'12','SERGVICOS DE FLORESTA',10.00,0.00,'FT',85,20140917000000,0.00,'');
20150102 09:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=85,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20150102 09:28 UPDATE documento_d2 SET linhas=1,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20150102 09:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=85,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20150102 09:28 UPDATE documento_d2 SET linhas=1,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20150102 09:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=85,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=70 LIMIT 1;
20150102 09:28 UPDATE documento_d2 SET linhas=1,no_doc=85,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20150102 09:28 UPDATE documento_d2 SET linhas=1,no_doc=85,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=104 LIMIT 1;
20150109 17:17  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20141231','1','','0.000000') 
20150109 17:17  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20141231','1','','0.000000') 
20150109 17:17 DROP TABLE IF EXISTS tmpi
20150109 17:17 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20150109 17:17 CREATE INDEX tmpi_i ON TMPi(codigo);
20150109 17:17 DROP TABLE IF EXISTS tmp
20150109 17:17 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20150109 17:17 CREATE INDEX tmp_i ON TMP(codigo);
20150109 17:17 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20141231 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150109 17:17 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20150109 17:17 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20150109 17:17 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20150109 17:17 UPDATE IGNORE TMP SET preco=0 where ent<=0
20150109 17:17 DROP TABLE IF EXISTS tmp2
20150109 17:17 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20150109 17:17 CREATE INDEX tmp2_i ON TMP2(codigo);
20150109 17:17 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
20150109 17:17 SELECT art.*,a1.qtd as stock2 FROM  tmp2 as a1 left join artigos as art on (art.codigo=a1.codigo) WHERE length(a1.codigo)>0 ORDER BY a1.codigo
20150109 17:17 DELETE from inventario2 where numero='' 
20150120 14:12 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101141200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150120 14:12 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101141200,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150120 14:12 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101141200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150120 14:12 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101141200,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150120 21:35  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20141231','2','','0.000000') 
20150120 21:35  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20141231','2','','0.000000') 
20150128 16:01 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=97 LIMIT 1;
20150128 16:01 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150128 16:01 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150128 16:01 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=97 LIMIT 1;
20150128 16:01 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150128 16:01 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150130 12:51 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-23219.91,saldo1=-23219.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20150130 12:51 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,86,0,'',0,0,'',20150130000000,20150130000000,20000101125100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150130 12:51 UPDATE documento_d2 SET linhas=0,no_doc=86,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150129000000,d_venc=20150129000000,h_doc=20000101125100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=105 LIMIT 1;
20150130 12:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,86,'','scsddc','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150130 12:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=86,codigo='',designacao='scsddc',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=187 LIMIT 1;
20150130 12:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=86,codigo='',designacao='scsddc',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=187 LIMIT 1;
20150130 12:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=86,codigo='',designacao='scsddc',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=187 LIMIT 1;
20150130 12:51 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',86,20150129000000,20150129000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,1,0,'A','');
20150130 12:51 UPDATE documento_d2 SET linhas=0,no_doc=86,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150129000000,d_venc=20150129000000,h_doc=20000101125100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=105 LIMIT 1;
20150130 12:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=86,d_doc=20150129000000,d_venc=20150129000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20150130 12:51 UPDATE documento_d2 SET linhas=1,no_doc=86,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150129000000,d_venc=20150129000000,h_doc=20000101125100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=105 LIMIT 1;
20150130 12:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=86,d_doc=20150129000000,d_venc=20150129000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20150130 12:51 UPDATE documento_d2 SET linhas=1,no_doc=86,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150129000000,d_venc=20150129000000,h_doc=20000101125100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=105 LIMIT 1;
20150130 12:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=86,d_doc=20150129000000,d_venc=20150129000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=71 LIMIT 1;
20150130 12:51 UPDATE documento_d2 SET linhas=1,no_doc=86,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150129000000,d_venc=20150129000000,h_doc=20000101125100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=105 LIMIT 1;
20150130 12:53 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24449.91,saldo1=-24449.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150130 12:53 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24449.91,saldo1=-24449.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150130 12:53 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24449.91,saldo1=-24449.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150130 12:53 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='213456789',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-24449.91,saldo1=-24449.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150130 14:32 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,87,0,'',0,0,'',20150130000000,20150130000000,20000101143200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150130 14:32 UPDATE documento_d2 SET linhas=0,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:32 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,87,'1','TESTW','UN','',1.000000,9.7600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,9.76,3.9450000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150130 14:32 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.76,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:32 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',87,20150130000000,20150130000000,'','',12.01,12.01,'D',12.01,0.00,0.00,2.25,0.00,1.000000,1,0,'A','');
20150130 14:32 UPDATE documento_d2 SET linhas=0,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.00,tot_liquido=9.76,tot_iva=2.25,tot_valor=12.01,val_pago=0.00,val_pend=12.01,suj_valor0=9.76,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:32 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=10.0000000,desc_1=0.9800000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.78,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:32 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=10.80,pendente=10.80,deb_cred='D',debito=10.80,credito=0.00,acumulado=0.00,val_iva=2.02,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:32 UPDATE documento_d2 SET linhas=0,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.98,tot_liquido=8.78,tot_iva=2.02,tot_valor=10.80,val_pago=0.00,val_pend=10.80,suj_valor0=8.78,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.02,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:32 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=10.80,pendente=10.80,deb_cred='D',debito=10.80,credito=0.00,acumulado=0.00,val_iva=2.02,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:32 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.98,tot_liquido=8.78,tot_iva=2.02,tot_valor=10.80,val_pago=0.00,val_pend=10.80,suj_valor0=8.78,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.02,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:32 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=10.80,pendente=10.80,deb_cred='D',debito=10.80,credito=0.00,acumulado=0.00,val_iva=2.02,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:32 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=0.98,tot_liquido=8.78,tot_iva=2.02,tot_valor=10.80,val_pago=0.00,val_pend=10.80,suj_valor0=8.78,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.02,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=20.0000000,desc_1=1.9500000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=7.81,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:33 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=9.61,pendente=9.61,deb_cred='D',debito=9.61,credito=0.00,acumulado=0.00,val_iva=1.80,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:33 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=1.95,tot_liquido=7.81,tot_iva=1.80,tot_valor=9.61,val_pago=0.00,val_pend=9.61,suj_valor0=7.81,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=30.0000000,desc_1=2.9300000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=6.83,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:33 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=8.40,pendente=8.40,deb_cred='D',debito=8.40,credito=0.00,acumulado=0.00,val_iva=1.57,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:33 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=2.93,tot_liquido=6.83,tot_iva=1.57,tot_valor=8.40,val_pago=0.00,val_pend=8.40,suj_valor0=6.83,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.57,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:33 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=8.40,pendente=8.40,deb_cred='D',debito=8.40,credito=0.00,acumulado=0.00,val_iva=1.57,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:33 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=2.93,tot_liquido=6.83,tot_iva=1.57,tot_valor=8.40,val_pago=0.00,val_pend=8.40,suj_valor0=6.83,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.57,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:34 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7600000,desc1=40.0000000,desc_1=3.9000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=5.86,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=7.21,pendente=7.21,deb_cred='D',debito=7.21,credito=0.00,acumulado=0.00,val_iva=1.35,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:34 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=3.90,tot_liquido=5.86,tot_iva=1.35,tot_valor=7.21,val_pago=0.00,val_pend=7.21,suj_valor0=5.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=7.21,pendente=7.21,deb_cred='D',debito=7.21,credito=0.00,acumulado=0.00,val_iva=1.35,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:34 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.76,tot_desconto=3.90,tot_liquido=5.86,tot_iva=1.35,tot_valor=7.21,val_pago=0.00,val_pend=7.21,suj_valor0=5.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:38 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=40.0000000,desc_1=4.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=6.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=7.38,pendente=7.38,deb_cred='D',debito=7.38,credito=0.00,acumulado=0.00,val_iva=1.38,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:38 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=4.00,tot_liquido=6.00,tot_iva=1.38,tot_valor=7.38,val_pago=0.00,val_pend=7.38,suj_valor0=6.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.38,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11265.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:38 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=40.0000000,desc_1=40.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=73.80,pendente=73.80,deb_cred='D',debito=73.80,credito=0.00,acumulado=0.00,val_iva=13.80,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:38 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=40.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=0.00,val_pend=73.80,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150130 14:38 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=10.000000,preco_unit=100.0000000,desc1=40.0000000,desc_1=400.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=600.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150130 14:39 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=738.00,pendente=738.00,deb_cred='D',debito=738.00,credito=0.00,acumulado=0.00,val_iva=138.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:39 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=400.00,tot_liquido=600.00,tot_iva=138.00,tot_valor=738.00,val_pago=0.00,val_pend=738.00,suj_valor0=600.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=138.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150130 14:39 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=738.00,pendente=738.00,deb_cred='D',debito=738.00,credito=0.00,acumulado=0.00,val_iva=138.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150130 14:39 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=400.00,tot_liquido=600.00,tot_iva=138.00,tot_valor=738.00,val_pago=0.00,val_pend=738.00,suj_valor0=600.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=138.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150202 15:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150202 15:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=87,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=10.000000,preco_unit=100.0000000,desc1=30.0000000,desc_1=300.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=700.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=188 LIMIT 1;
20150202 15:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=861.00,pendente=861.00,deb_cred='D',debito=861.00,credito=0.00,acumulado=0.00,val_iva=161.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150202 15:35 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=300.00,tot_liquido=700.00,tot_iva=161.00,tot_valor=861.00,val_pago=0.00,val_pend=861.00,suj_valor0=700.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=161.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150202 15:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=861.00,pendente=861.00,deb_cred='D',debito=861.00,credito=0.00,acumulado=0.00,val_iva=161.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150202 15:35 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=300.00,tot_liquido=700.00,tot_iva=161.00,tot_valor=861.00,val_pago=0.00,val_pend=861.00,suj_valor0=700.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=161.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150202 15:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=861.00,pendente=861.00,deb_cred='D',debito=861.00,credito=0.00,acumulado=0.00,val_iva=161.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=72 LIMIT 1;
20150202 15:35 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=300.00,tot_liquido=700.00,tot_iva=161.00,tot_valor=861.00,val_pago=0.00,val_pend=861.00,suj_valor0=700.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=161.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150203 15:03 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-29058.37,saldo1=-29058.37,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150203 15:03 UPDATE contas_correntes_clientes SET linha_f=106,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=87,d_doc=20150130000000,d_venc=20150130000000,ref='',obs='',valor=861.00,pendente=861.00,deb_cred='D',debito=861.00,credito=0.00,acumulado=0.00,val_iva=161.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=69 LIMIT 1;
20150203 15:03 UPDATE documento_d2 SET linhas=1,no_doc=87,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150130000000,d_venc=20150130000000,h_doc=20000101143200,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=300.00,tot_liquido=700.00,tot_iva=161.00,tot_valor=861.00,val_pago=0.00,val_pend=861.00,suj_valor0=700.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=161.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=106 LIMIT 1;
20150203 15:03 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,88,0,'',0,0,'',20150203000000,20150203000000,20000101150300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150203 15:03 UPDATE documento_d2 SET linhas=0,no_doc=88,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150203 15:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121212',codigo2='121212',designacao_1='m,kbm,bm,bm,b,m',designacao_2='',abvr='m,kbm,bm,bm,b,',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=0.0000000,prc_c_iva_1=15.0060000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20150203 15:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,88,'121212','m,kbm,bm,bm,b,m','','',1.000000,12.2000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,12.20,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150203 15:03 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=88,codigo='121212',designacao='m,kbm,bm,bm,b,m',unidade='',com_iva='',quantidade=1.000000,preco_unit=12.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12.20,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=189 LIMIT 1;
20150203 15:03 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',88,20150203000000,20150305000000,'','',15.01,15.01,'D',15.01,0.00,0.00,2.81,0.00,1.000000,0,0,'A','');
20150203 15:03 UPDATE documento_d2 SET linhas=0,no_doc=88,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.20,tot_desconto=0.00,tot_liquido=12.20,tot_iva=2.81,tot_valor=15.01,val_pago=0.00,val_pend=15.01,suj_valor0=12.20,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.81,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150203 15:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121212',codigo2='121212',designacao_1='m,kbm,bm,bm,b,m',designacao_2='',abvr='m,kbm,bm,bm,b,',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.2000000,prc_s_iva_2=0.0000000,prc_c_iva_1=15.0060000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150203000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20150203 15:03 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=88,codigo='121212',designacao='m,kbm,bm,bm,b,m',unidade='',com_iva='',quantidade=10.000000,preco_unit=12.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=122.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=189 LIMIT 1;
20150203 15:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=88,d_doc=20150203000000,d_venc=20150305000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=73 LIMIT 1;
20150203 15:03 UPDATE documento_d2 SET linhas=0,no_doc=88,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150203 15:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=88,d_doc=20150203000000,d_venc=20150305000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=73 LIMIT 1;
20150203 15:03 UPDATE documento_d2 SET linhas=1,no_doc=88,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150203 15:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=88,d_doc=20150203000000,d_venc=20150305000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=73 LIMIT 1;
20150203 15:03 UPDATE documento_d2 SET linhas=1,no_doc=88,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150203 15:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=88,d_doc=20150203000000,d_venc=20150305000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=73 LIMIT 1;
20150203 15:03 UPDATE documento_d2 SET linhas=1,no_doc=88,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150203 15:09 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,0,'','NII544601000M16GD','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150203 15:09 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,0,'','PC DI DESKTOP, COMPOSTO POR','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:09 UPDATE documento_d5 SET linhas=0,no_doc=0,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101121100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=20,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=20,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=20,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=20,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='N',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=20,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='N',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150203 15:11 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,pda,ivac,rsv) VALUES(NULL,21,'ENTRADA DE STOCKS','F','',1,'DOC-F.rpt',1,'N','C','E','DOCSF','EI','N','','N','Exist�ncias inicias','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N',0,0,'');
20150203 15:11 UPDATE tipos_de_documentosd SET numero=21,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='N',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=21,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF',abvr='EI',mov_finan='N',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=21,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF',abvr='EI',mov_finan='N',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150203 15:11 UPDATE tipos_de_documentosd SET numero=21,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF',abvr='EI',mov_finan='N',carta_anexo='',extras='N',des_cco='Exist�ncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150203 15:11 CREATE TABLE IF NOT EXISTS documento_d21 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d21_1 (no_doc) ,INDEX documento_d21_2 (no_cf,no_doc) ,INDEX documento_d21_3 (d_doc,no_doc) );
20150203 15:11 CREATE TABLE IF NOT EXISTS documento_linhas_d21 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(31),PRIMARY KEY (IDX),UNIQUE INDEX documento_linhas_d21_1 (num_doc,lnh_f) );
20150204 12:16 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,603,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20150204 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=603,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150204 13:09 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=11,d_doc=20140510000000,d_venc=20140510000000,ref='21212121',obs='',valor=246.00,pendente=246.00,deb_cred='C',debito=0.00,credito=246.00,acumulado=0.00,val_iva=46.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20150204 13:09 UPDATE documento_d10 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20140510000000,d_venc=20140510000000,h_doc=20000101115700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=200.00,tot_desconto=0.00,tot_liquido=200.00,tot_iva=46.00,tot_valor=246.00,val_pago=0.00,val_pend=246.00,suj_valor0=200.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150204 13:09 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,13,0,'',0,0,'',20150204000000,20150204000000,20000101130900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150204 13:09 UPDATE documento_d10 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20150204000000,d_venc=20150204000000,h_doc=20000101130900,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150204 13:09 UPDATE documento_d10 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20150204000000,d_venc=20150204000000,h_doc=20000101130900,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150204 13:10 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSI3',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150204 13:10 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=90.31,pendente=90.31,deb_cred='C',debito=0.00,credito=90.31,acumulado=0.00,val_iva=16.89,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20150204 13:10 UPDATE documento_d10 SET linhas=2,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=144.40,tot_desconto=70.98,tot_liquido=73.42,tot_iva=16.89,tot_valor=90.31,val_pago=0.00,val_pend=90.31,suj_valor0=73.42,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=16.89,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150204 13:10 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Factura',no_doc=12,d_doc=20140917000000,d_venc=20140917000000,ref='',obs='',valor=90.31,pendente=90.31,deb_cred='C',debito=0.00,credito=90.31,acumulado=0.00,val_iva=16.89,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20150204 13:10 UPDATE documento_d10 SET linhas=2,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=144.40,tot_desconto=70.98,tot_liquido=73.42,tot_iva=16.89,tot_valor=90.31,val_pago=0.00,val_pend=90.31,suj_valor0=73.42,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=16.89,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150204 13:10 UPDATE documento_d10 SET linhas=1,no_doc=9,emitido=1,anulado='',no_moed=0,convertido=0,referencia='212121',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.00,tot_liquido=7.90,tot_iva=1.82,tot_valor=9.72,val_pago=0.00,val_pend=9.72,suj_valor0=7.90,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150204 13:10 UPDATE documento_d10 SET linhas=1,no_doc=10,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140411000000,d_venc=20140411000000,h_doc=20000101125500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.90,tot_desconto=0.01,tot_liquido=7.89,tot_iva=1.82,tot_valor=9.71,val_pago=0.00,val_pend=9.71,suj_valor0=7.89,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150204 13:10 UPDATE documento_d10 SET linhas=0,no_doc=11,emitido=1,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20140510000000,d_venc=20140510000000,h_doc=20000101115700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=200.00,tot_desconto=0.00,tot_liquido=200.00,tot_iva=46.00,tot_valor=246.00,val_pago=0.00,val_pend=246.00,suj_valor0=200.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150204 13:10 UPDATE documento_d10 SET linhas=2,no_doc=12,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140917000000,d_venc=20140917000000,h_doc=20000101174000,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=144.40,tot_desconto=70.98,tot_liquido=73.42,tot_iva=16.89,tot_valor=90.31,val_pago=0.00,val_pend=90.31,suj_valor0=73.42,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=16.89,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150204 22:40 UPDATE documento_d2 SET convertido='0' WHERE no_doc='88' and serdoc='A' 
20150204 22:40 UPDATE documento_d2 SET linhas=1,no_doc=88,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150209 15:56 DROP TABLE IF EXISTS tmp;
20150209 15:56 CREATE TABLE tmp ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20150209 15:56 DROP TABLE IF EXISTS tmp2;
20150209 15:56 CREATE TABLE tmp2 ( numero int, codigo char(25), compra double, custo  double, data   date ) ;
20150209 15:56 INSERT INTO tmp SELECT lnh.num_doc, lnh.codigo, lnh.valor/lnh.quantidade, art.ultimo_custo, doc.d_doc FROM documento_linhas_D10 as lnh LEFT JOIN artigos as art using(codigo) LEFT JOIN Documento_D10 as doc on (doc.no_doc=lnh.num_doc and doc.serdoc=lnh.serdoc) WHERE length(lnh.codigo)>0 and lnh.valor>0 and  lnh.quantidade>0 ORDER by lnh.num_doc desc ;
20150209 15:56 INSERT INTO tmp2 SELECT * FROM TMP group by  codigo ;
20150209 15:56 SELECT * FROM TMP2 WHERE custo<>compra ;
20150209 15:56 UPDATE artigos,tmp2 set artigos.ultimo_custo=tmp2.compra where  tmp2.custo<>tmp2.compra and artigos.codigo=tmp2.codigo ;
20150209 17:25 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:25 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:25 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:25 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:26 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:26 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:27 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:31 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:31 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:32 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:32 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:32 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:32 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:33 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:33 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:34 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:34 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:34 UPDATE documento_d1 SET convertido='0' WHERE no_doc='12' and serdoc='A' 
20150209 17:34 UPDATE documento_d1 SET linhas=7,no_doc=12,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130305000000,d_venc=20130305000000,h_doc=20000101093500,no_cf=1,nome_cf='CIENTE 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=68.32,tot_desconto=0.00,tot_liquido=68.32,tot_iva=15.71,tot_valor=84.03,val_pago=84.03,val_pend=0.00,suj_valor0=68.32,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=15.71,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150209 17:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140829000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20150209 17:40 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20150209 17:40 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:40 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:40 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1454,'212421','jgjkgjhkgkjgjkghkjgk',100.00,0.00,'FA',17,20140829000000,0.00,'');
20150209 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140829000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20150209 17:41 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=100.0000000,desc_2=100.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20150209 17:41 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140829000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20150209 17:41 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=50.0000000,desc_2=50.0000000,iva=23.00,valor=50.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20150209 17:41 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=50.00,tot_liquido=50.00,tot_iva=11.50,tot_valor=61.50,val_pago=61.50,val_pend=0.00,suj_valor0=50.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=11.50,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140829000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20150209 17:42 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=60.0000000,desc_2=60.0000000,iva=23.00,valor=40.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20150209 17:42 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=60.00,tot_liquido=40.00,tot_iva=9.20,tot_valor=49.20,val_pago=49.20,val_pend=0.00,suj_valor0=40.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.20,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212421',codigo2='212421',designacao_1='jgjkgjhkgkjgjkghkjgk',designacao_2='',abvr='jgjkgjhkgkjgjk',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20140829000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20150209 17:42 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=17,codigo='212421',designacao='jgjkgjhkgkjgjkghkjgk',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=40.0000000,desc_2=40.0000000,iva=23.00,valor=60.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20150209 17:42 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=40.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=73.80,val_pend=0.00,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:42 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=40.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=73.80,val_pend=0.00,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:42 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=40.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=73.80,val_pend=0.00,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150209 17:42 UPDATE documento_d1 SET linhas=1,no_doc=17,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140829000000,d_venc=20140829000000,h_doc=20000101171400,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=40.00,tot_liquido=60.00,tot_iva=13.80,tot_valor=73.80,val_pago=73.80,val_pend=0.00,suj_valor0=60.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=13.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150211 15:02 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,18,0,'',0,0,'',20150211000000,20150211000000,20000101150200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150211 15:02 UPDATE documento_d1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150211000000,d_venc=20150211000000,h_doc=20000101150200,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150211 15:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150211000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20150211 15:02 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,18,'12','SERGVICOS DE FLORESTA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150211 15:02 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=18,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=66 LIMIT 1;
20150211 15:02 UPDATE documento_d1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150211000000,d_venc=20150211000000,h_doc=20000101150200,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150211 15:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='12',codigo2='12',designacao_1='SERGVICOS DE FLORESTA',designacao_2='',abvr='SERGVICOS DE',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150211000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20150211 15:02 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=18,codigo='12',designacao='SERGVICOS DE FLORESTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=66 LIMIT 1;
20150211 15:02 UPDATE documento_d1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150211000000,d_venc=20150211000000,h_doc=20000101150200,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150211 15:02 UPDATE documento_d1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150211000000,d_venc=20150211000000,h_doc=20000101150200,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150211 15:06 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,1454,'12','SERGVICOS DE FLORESTA',100.00,0.00,'',18,20150211000000,0.00,'');
20150211 15:18 UPDATE documento_d2 SET convertido='0' WHERE no_doc='88' and serdoc='A' 
20150211 15:18 UPDATE documento_d2 SET linhas=1,no_doc=88,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150409 11:11 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20130101 ) AND (c1.d_doc<=20131231 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20150409 11:11 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20130101 ) AND (c1.d_doc<=20131231 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20150409 11:11 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20130101 ) AND (c1.d_doc<=20131231 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20150409 11:12 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20130101 ) AND (c1.d_doc<=20131231 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20150409 11:12 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20130101 ) AND (c1.d_doc<=20131231 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20150409 11:12 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20130101 ) AND (c1.d_doc<=20131231 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20150409 11:16 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.d_doc>=00000000 ) AND (c1.d_doc<=20121207 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:16 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.d_doc>=00000000 ) AND (c1.d_doc<=20121207 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:16 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.d_doc>=00000000 ) AND (c1.d_doc<=20121207 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:16 SELECT l1.* FROM  documento_linhas_d6 as l1 LEFT JOIN documento_d6 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.d_doc>=00000000 ) AND (c1.d_doc<=20121207 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:16 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.d_doc>=00000000 ) AND (c1.d_doc<=20121207 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:16 SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.d_doc>=00000000 ) AND (c1.d_doc<=20121207 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d6 as l1 LEFT JOIN documento_d6 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d8 as l1 LEFT JOIN documento_d8 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d9 as l1 LEFT JOIN documento_d9 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20151231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d6 as l1 LEFT JOIN documento_d6 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150409 11:17 SELECT l1.* FROM  documento_linhas_d20 as l1 LEFT JOIN documento_d20 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.d_doc>=00000000 AND c1.d_doc<=20121207 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2012-12-07 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20150411 12:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25310.91,saldo1=-25310.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150414 10:11 UPDATE documento_d2 SET convertido='0' WHERE no_doc='88' and serdoc='A' 
20150414 10:11 UPDATE documento_d2 SET linhas=1,no_doc=88,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150203000000,d_venc=20150305000000,h_doc=20000101150300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=107 LIMIT 1;
20150414 10:11 UPDATE documento_d2 SET convertido='0' WHERE no_doc='88' and serdoc='A' 
20150414 17:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9450000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0000000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20140411000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,13,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,13,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,13,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7600000,prc_s_iva_2=4.0000000,prc_c_iva_1=12.0048000,prc_c_iva_2=4.9200000,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20150204000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:15 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=13,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=3.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:15 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=13,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=3.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:15 DELETE  FROM  documento_linhas_d10 WHERE num_doc='13'
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,13,'1','TESTW','UN','',1.000000,3.9500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,3.9450000,3.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,13,'','N.Serie:1265313131','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,13,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:15 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,13,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9500000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7723701,prc_s_iva_2=4.0050697,prc_c_iva_1=12.0200152,prc_c_iva_2=4.9262357,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20150204000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:15 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=13,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=3.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=3.95,ult_custo=3.9450000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=29 LIMIT 1;
20150414 17:15 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',13,20150204000000,20150204000000,'21212121','',4.86,4.86,'C',0.00,4.86,0.00,0.91,0.00,1.000000,0,0,'A','');
20150414 17:15 UPDATE documento_d10 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20150204000000,d_venc=20150204000000,h_doc=20000101130900,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.95,tot_desconto=0.00,tot_liquido=3.95,tot_iva=0.91,tot_valor=4.86,val_pago=0.00,val_pend=4.86,suj_valor0=3.95,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.91,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150414 17:15 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=13,d_doc=20150204000000,d_venc=20150204000000,ref='21212121',obs='',valor=4.86,pendente=4.86,deb_cred='C',debito=0.00,credito=4.86,acumulado=0.00,val_iva=0.91,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20150414 17:15 UPDATE documento_d10 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='21212121',d_doc=20150204000000,d_venc=20150204000000,h_doc=20000101130900,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.95,tot_desconto=0.00,tot_liquido=3.95,tot_iva=0.91,tot_valor=4.86,val_pago=0.00,val_pend=4.86,suj_valor0=3.95,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.91,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150414 17:16 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,89,0,'',0,0,'',20150414000000,20150414000000,20000101171600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150414 17:16 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,89,'1','TESTW','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,89,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:16 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,89,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9500000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7723701,prc_s_iva_2=4.0050697,prc_c_iva_1=12.0200152,prc_c_iva_2=4.9262357,stock_minimo=2.000,stock=-11274.450,stock_maximo=50.000,no_forn=0,d_entrada=20150204000000,d_saida=20150130000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=89,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=9.7700000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=3.9500000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=190 LIMIT 1;
20150414 17:16 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=3.9500000,custo_medio=3.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=147.4017744,marg_2=1.3941698,prc_s_iva_1=9.7723701,prc_s_iva_2=4.0050697,prc_c_iva_1=12.0200152,prc_c_iva_2=4.9262357,stock_minimo=2.000,stock=-11275.450,stock_maximo=50.000,no_forn=0,d_entrada=20150204000000,d_saida=20150414000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20150414 17:16 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=89,codigo='1',designacao='TESTW',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=9.7700000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.77,ult_custo=3.9500000,custo_medio=3.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=190 LIMIT 1;
20150414 17:16 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',89,20150414000000,20150514000000,'','',12.02,12.02,'D',12.02,0.00,0.00,2.25,0.00,1.000000,0,0,'A','');
20150414 17:16 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=9.77,tot_desconto=0.00,tot_liquido=9.77,tot_iva=2.25,tot_valor=12.02,val_pago=0.00,val_pend=12.02,suj_valor0=9.77,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.25,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:16 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'3','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:16 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,14,0,'',0,0,'',20150414000000,20150414000000,20000101171600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150414 17:16 UPDATE documento_d10 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20150414000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:16 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,14,'3','teste 3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150414 17:16 UPDATE documento_d10 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:16 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=14,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=33 LIMIT 1;
20150414 17:16 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,14,'','N.Serie:123456','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150414 17:17 UPDATE documento_d10 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:17 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=14,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=33 LIMIT 1;
20150414 17:17 UPDATE documento_d10 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:17 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'3',1,'FORNECWSOE N. 1',0.25,0.00,0.00,20150414000000,'');
20150414 17:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.2500000,prc_s_iva_2=0.2500000,prc_c_iva_1=0.3075000,prc_c_iva_2=0.3075000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20150414000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:17 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=14,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=33 LIMIT 1;
20150414 17:17 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Factura',14,20150414000000,20150414000000,'','',0.31,0.31,'C',0.00,0.31,0.00,0.06,0.00,1.000000,0,0,'A','');
20150414 17:17 UPDATE documento_d10 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:17 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20150414 17:17 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:17 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20150414 17:17 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150414 17:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.2500000,prc_s_iva_2=0.2500000,prc_c_iva_1=0.3075000,prc_c_iva_2=0.3075000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20150414000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,89,'3','teste 3','','',0.000000,0.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.2500000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150414 17:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.2500000,prc_s_iva_2=0.2500000,prc_c_iva_1=0.3075000,prc_c_iva_2=0.3075000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20150414000000,d_saida=20150414000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:17 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=89,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.25,ult_custo=0.2500000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=193 LIMIT 1;
20150414 17:17 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=89,d_doc=20150414000000,d_venc=20150514000000,ref='',obs='',valor=12.33,pendente=12.33,deb_cred='D',debito=12.33,credito=0.00,acumulado=0.00,val_iva=2.31,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=74 LIMIT 1;
20150414 17:17 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.02,tot_desconto=0.00,tot_liquido=10.02,tot_iva=2.31,tot_valor=12.33,val_pago=0.00,val_pend=12.33,suj_valor0=10.02,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.31,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:18 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=89,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.25,ult_custo=0.2500000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=193 LIMIT 1;
20150414 17:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=89,d_doc=20150414000000,d_venc=20150514000000,ref='',obs='',valor=12.33,pendente=12.33,deb_cred='D',debito=12.33,credito=0.00,acumulado=0.00,val_iva=2.31,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=74 LIMIT 1;
20150414 17:18 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.02,tot_desconto=0.00,tot_liquido=10.02,tot_iva=2.31,tot_valor=12.33,val_pago=0.00,val_pend=12.33,suj_valor0=10.02,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.31,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=89,d_doc=20150414000000,d_venc=20150514000000,ref='',obs='',valor=12.33,pendente=12.33,deb_cred='D',debito=12.33,credito=0.00,acumulado=0.00,val_iva=2.31,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=74 LIMIT 1;
20150414 17:18 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.02,tot_desconto=0.00,tot_liquido=10.02,tot_iva=2.31,tot_valor=12.33,val_pago=0.00,val_pend=12.33,suj_valor0=10.02,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.31,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150414 17:19 UPDATE documento_d1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150211000000,d_venc=20150211000000,h_doc=20000101150200,no_cf=1454,nome_cf='JOSE BENFEITO',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150414 17:19 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,19,0,'',0,0,'',20150414000000,20150414000000,20000101171900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150414 17:19 UPDATE documento_d1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150414 17:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.2500000,prc_s_iva_2=0.2500000,prc_c_iva_1=0.3075000,prc_c_iva_2=0.3075000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20150414000000,d_saida=20150414000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:19 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,19,'3','teste 3','','',0.000000,0.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.2500000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150414 17:19 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=19,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.2500000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=67 LIMIT 1;
20150414 17:19 UPDATE documento_d1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150414 17:19 UPDATE documento_d1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150414 17:20 UPDATE documento_d1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150414 17:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='teste 3',designacao_2='',abvr='teste 3',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.2500000,prc_s_iva_2=0.2500000,prc_c_iva_1=0.3075000,prc_c_iva_2=0.3075000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=20150414000000,d_saida=20150414000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20150414 17:20 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=19,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.50,ult_custo=0.2500000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=67 LIMIT 1;
20150414 17:20 UPDATE documento_d1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150414 17:20 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150417 16:40 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=100 LIMIT 1;
20150417 16:40 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150417 16:40 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=100 LIMIT 1;
20150417 16:40 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150417 16:40 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150421 16:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=2,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25310.91,saldo1=-25310.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150421 16:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='1',armazem='UN',familia='',ultimo_custo=0.0000000,custo_medio=3.9500000,valor_medio=3.0000000,no_iva=0,iva=0.00,marg_1=23.0000000,marg_2=147.4000000,prc_s_iva_1=1.3900000,prc_s_iva_2=9.7700000,prc_c_iva_1=1.3900000,prc_c_iva_2=9.7700000,stock_minimo=4.926,stock=2.000,stock_maximo=-11275.450,no_forn=50,d_entrada=00000000000000,d_saida=20150204000000,baixa='2',lnh_obs='S',stock2=0.00,lnh_emb='0',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=3 LIMIT 1;
20150421 16:53 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='0',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=6.0000000,valor_medio=6.0000000,no_iva=6,iva=0.00,marg_1=23.0000000,marg_2=120.8300000,prc_s_iva_1=100.0000000,prc_s_iva_2=13.2500000,prc_c_iva_1=100.0000000,prc_c_iva_2=13.2500000,stock_minimo=14.760,stock=0.000,stock_maximo=10.000,no_forn=0,d_entrada=00000000000000,d_saida=20140917000000,baixa='0',lnh_obs='S',stock2=0.00,lnh_emb='0',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=23 LIMIT 1;
20150421 16:53 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='0',armazem='0',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=6.0000000,no_iva=4,iva=0.00,marg_1=0.0000000,marg_2=23.0000000,prc_s_iva_1=120.8300000,prc_s_iva_2=100.0000000,prc_c_iva_1=13.2500000,prc_c_iva_2=100.0000000,stock_minimo=13.250,stock=14.760,stock_maximo=0.000,no_forn=10,d_entrada=00000000000000,d_saida=00000000000000,baixa='2',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='20.00',prc_c_iva_3='20.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=23 LIMIT 1;
20150421 16:53 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='0',armazem='0',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=4,iva=0.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=120.8300000,prc_s_iva_2=100.0000000,prc_c_iva_1=13.2500000,prc_c_iva_2=100.0000000,stock_minimo=13.250,stock=13.250,stock_maximo=0.000,no_forn=0,d_entrada=10000000000000,d_saida=00000000000000,baixa='0',lnh_obs='2',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='20.00',prc_c_iva_3='20.00',marg_4='0',prc_s_iva_4='60.00',prc_c_iva_4='60.00' WHERE IDX=23 LIMIT 1;
20150421 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='0',armazem='0',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=120.8300000,prc_s_iva_2=100.0000000,prc_c_iva_1=148.6200000,prc_c_iva_2=123.0000000,stock_minimo=13.250,stock=13.250,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=10000000000000,baixa='0',lnh_obs='0',stock2=2.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='20.00',prc_c_iva_3='24.60',marg_4='0',prc_s_iva_4='60.00',prc_c_iva_4='73.80' WHERE IDX=23 LIMIT 1;
20150421 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='sa1',codigo2='sa1',designacao_1='CONTACTOR XXXX',designacao_2='',abvr='CONTACTOR XXXX',no_un_=0,unidade='0',armazem='0',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=1.00,marg_1=23.0000000,marg_2=0.0000000,prc_s_iva_1=120.8300000,prc_s_iva_2=100.0000000,prc_c_iva_1=148.6200000,prc_c_iva_2=123.0000000,stock_minimo=13.250,stock=13.250,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='1',lnh_obs='0',stock2=0.00,lnh_emb='2',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='20.00',prc_c_iva_3='24.60',marg_4='0',prc_s_iva_4='60.00',prc_c_iva_4='73.80' WHERE IDX=23 LIMIT 1;
20150421 16:54 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25310.91,saldo1=-25310.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150421 16:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=89,d_doc=20150414000000,d_venc=20150514000000,ref='',obs='',valor=12.33,pendente=12.33,deb_cred='D',debito=12.33,credito=0.00,acumulado=0.00,val_iva=2.31,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=74 LIMIT 1;
20150421 16:54 UPDATE documento_d2 SET linhas=0,no_doc=89,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150514000000,h_doc=20000101171600,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.02,tot_desconto=0.00,tot_liquido=10.02,tot_iva=2.31,tot_valor=12.33,val_pago=0.00,val_pend=12.33,suj_valor0=10.02,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.31,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=108 LIMIT 1;
20150421 16:54 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,90,0,'',0,0,'',20150421000000,20150421000000,20000101165400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150421 16:54 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:54 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=6.7100000,valor_medio=0.0000000,no_iva=13,iva=1.00,marg_1=23.0000000,marg_2=127.2727273,prc_s_iva_1=81.8181818,prc_s_iva_2=15.2500000,prc_c_iva_1=12.2000000,prc_c_iva_2=18.7600000,stock_minimo=15.010,stock=0.000,stock_maximo=2.000,no_forn=0,d_entrada=00000000000000,d_saida=20140917000000,baixa='0',lnh_obs='S',stock2=0.00,lnh_emb='0',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='' WHERE IDX=24 LIMIT 1;
20150421 16:54 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,90,'SA2','TESTAE SA2','0','',0.000000,12.2000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,6.7100000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150421 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='',ultimo_custo=0.0000000,custo_medio=0.4789436,valor_medio=6.7100000,no_iva=0,iva=13.00,marg_1=1.0000000,marg_2=23.0000000,prc_s_iva_1=127.2727273,prc_s_iva_2=81.8181818,prc_c_iva_1=15.2500000,prc_c_iva_2=12.2000000,stock_minimo=18.760,stock=14.010,stock_maximo=0.000,no_forn=2,d_entrada=00000000000000,d_saida=20150421000000,baixa='2',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:54 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:54 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=90,codigo='SA2',designacao='TESTAE SA2',unidade='0',com_iva='',quantidade=1.000000,preco_unit=12.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=12.20,ult_custo=0.0000000,custo_medio=6.7100000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=194 LIMIT 1;
20150421 16:54 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',90,20150421000000,20150421000000,'','',12.20,12.20,'D',12.20,0.00,0.00,0.00,0.00,1.000000,1,0,'A','');
20150421 16:54 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.20,tot_desconto=0.00,tot_liquido=12.20,tot_iva=0.00,tot_valor=12.20,val_pago=0.00,val_pend=12.20,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12.20,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0255300,valor_medio=0.4789436,no_iva=6,iva=0.00,marg_1=13.0000000,marg_2=1.0000000,prc_s_iva_1=23.0000000,prc_s_iva_2=127.2727273,prc_c_iva_1=81.8181818,prc_c_iva_2=15.2500000,stock_minimo=12.200,stock=18.760,stock_maximo=14.010,no_forn=0,d_entrada=02000000000000,d_saida=00000000000000,baixa='2',lnh_obs='2',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:54 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,90,'SA2','TESTAE SA2','0','',0.000000,81.8200000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150421 16:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=90,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=12.20,pendente=12.20,deb_cred='D',debito=12.20,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20150421 16:54 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.20,tot_desconto=0.00,tot_liquido=12.20,tot_iva=0.00,tot_valor=12.20,val_pago=0.00,val_pend=12.20,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12.20,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:54 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,45,0,1,'SA2','TESTAE SA2',12.20,0.00,'',90,20150421000000,0.00,'');
20150421 16:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=90,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=12.20,pendente=12.20,deb_cred='D',debito=12.20,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20150421 16:54 UPDATE documento_d2 SET linhas=2,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.20,tot_desconto=0.00,tot_liquido=12.20,tot_iva=0.00,tot_valor=12.20,val_pago=0.00,val_pend=12.20,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12.20,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:55 UPDATE documento_d2 SET linhas=2,no_doc=90,emitido=0,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165400,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.20,tot_desconto=0.00,tot_liquido=12.20,tot_iva=0.00,tot_valor=12.20,val_pago=0.00,val_pend=12.20,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12.20,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=109 LIMIT 1;
20150421 16:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0019341,valor_medio=0.0255300,no_iva=0,iva=6.00,marg_1=0.0000000,marg_2=13.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=23.0000000,prc_c_iva_1=127.2727273,prc_c_iva_2=81.8181818,stock_minimo=15.250,stock=13.200,stock_maximo=18.760,no_forn=14,d_entrada=00000000000000,d_saida=02000000000000,baixa='0',lnh_obs='2',stock2=2.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0001268,valor_medio=0.0019341,no_iva=0,iva=0.00,marg_1=6.0000000,marg_2=0.0000000,prc_s_iva_1=13.0000000,prc_s_iva_2=1.0000000,prc_c_iva_1=23.0000000,prc_c_iva_2=127.2727273,stock_minimo=81.818,stock=15.250,stock_maximo=13.200,no_forn=18,d_entrada=14000000000000,d_saida=00000000000000,baixa='0',lnh_obs='0',stock2=2.00,lnh_emb='2',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:55 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,90,0,'',0,0,'',20150421000000,20150421000000,20000101165500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150421 16:55 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150421 16:55 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150421 16:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000015,valor_medio=0.0001268,no_iva=0,iva=0.00,marg_1=0.0000000,marg_2=6.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=13.0000000,prc_c_iva_1=1.0000000,prc_c_iva_2=23.0000000,stock_minimo=127.273,stock=81.818,stock_maximo=15.250,no_forn=13,d_entrada=18000000000000,d_saida=14000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='2',lnh_prom='2',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:55 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,90,'SA2','TESTAE SA2','0','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150421 16:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000015,no_iva=0,iva=0.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=6.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=13.0000000,prc_c_iva_2=1.0000000,stock_minimo=23.000,stock=126.273,stock_maximo=81.818,no_forn=15,d_entrada=13000000000000,d_saida=20150421000000,baixa='1',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='2',flg=2,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:55 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=90,codigo='SA2',designacao='TESTAE SA2',unidade='0',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=196 LIMIT 1;
20150421 16:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=0.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=6.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=13.0000000,stock_minimo=1.000,stock=23.000,stock_maximo=126.273,no_forn=81,d_entrada=15000000000000,d_saida=13000000000000,baixa='2',lnh_obs='1',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=2,anos_ga=2,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:55 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=90,codigo='SA2',designacao='TESTAE SA2',unidade='0',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=196 LIMIT 1;
20150421 16:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='SA2',codigo2='SA2',designacao_1='TESTAE SA2',designacao_2='',abvr='TESTAE SA2',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=1.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=6.0000000,prc_c_iva_2=0.0000000,stock_minimo=13.000,stock=1.000,stock_maximo=23.000,no_forn=126,d_entrada=81000000000000,d_saida=15000000000000,baixa='1',lnh_obs='2',stock2=1.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=2,local_imp=2,usaserie='0',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=24 LIMIT 1;
20150421 16:55 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=90,codigo='SA2',designacao='TESTAE SA2',unidade='0',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=196 LIMIT 1;
20150421 16:55 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',90,20150421000000,20150421000000,'','',10.00,10.00,'D',10.00,0.00,0.00,1.87,0.00,1.000000,1,0,'A','');
20150421 16:55 UPDATE documento_d2 SET linhas=0,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=0.00,val_pend=10.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150421 16:55 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=90,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=10.00,pendente=10.00,deb_cred='D',debito=10.00,credito=0.00,acumulado=0.00,val_iva=1.87,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20150421 16:55 UPDATE documento_d2 SET linhas=1,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=0.00,val_pend=10.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150421 16:55 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=90,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=10.00,pendente=10.00,deb_cred='D',debito=10.00,credito=0.00,acumulado=0.00,val_iva=1.87,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20150421 16:55 UPDATE documento_d2 SET linhas=1,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=0.00,val_pend=10.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150421 16:56 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4) VALUES(NULL,0,0,0,0,'1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00');
20150421 16:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=8 LIMIT 1;
20150421 16:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20150421 16:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20150421 16:56 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20150421 16:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=6 LIMIT 1;
20150421 16:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=6 LIMIT 1;
20150421 16:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=6 LIMIT 1;
20150421 16:56 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101141200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 16:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20150421 16:56 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'1','ARTIGO 1','','',0.000000,3.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150421 16:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20150421 16:56 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='ARTIGO 1',unidade='',com_iva='',quantidade=1.000000,preco_unit=3.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=3.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20150421 16:56 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',1,20150421000000,20150421000000,'','',3.00,3.00,'D',3.00,0.00,0.00,0.56,0.00,1.000000,0,0,'A','');
20150421 16:56 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101141200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.44,tot_desconto=0.00,tot_liquido=2.44,tot_iva=0.56,tot_valor=3.00,val_pago=0.00,val_pend=3.00,suj_valor0=2.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.56,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 16:56 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1,'1','ARTIGO 1',3.00,0.00,'',1,20150421000000,0.00,'');
20150421 16:56 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=1,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=3.00,pendente=3.00,deb_cred='D',debito=3.00,credito=0.00,acumulado=0.00,val_iva=0.56,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20150421 16:56 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101141200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.44,tot_desconto=0.00,tot_liquido=2.44,tot_iva=0.56,tot_valor=3.00,val_pago=0.00,val_pend=3.00,suj_valor0=2.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.56,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 16:56 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=1,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=3.00,pendente=3.00,deb_cred='D',debito=3.00,credito=0.00,acumulado=0.00,val_iva=0.56,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20150421 16:56 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101141200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.44,tot_desconto=0.00,tot_liquido=2.44,tot_iva=0.56,tot_valor=3.00,val_pago=0.00,val_pend=3.00,suj_valor0=2.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.56,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 16:57 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=1,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=3.00,pendente=3.00,deb_cred='D',debito=3.00,credito=0.00,acumulado=0.00,val_iva=0.56,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20150421 16:57 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101141200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.44,tot_desconto=0.00,tot_liquido=2.44,tot_iva=0.56,tot_valor=3.00,val_pago=0.00,val_pend=3.00,suj_valor0=2.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.56,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 16:57 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101141200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.44,tot_desconto=0.00,tot_liquido=2.44,tot_iva=0.56,tot_valor=3.00,val_pago=0.00,val_pend=3.00,suj_valor0=2.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.56,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 16:57 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4) VALUES(NULL,0,0,0,0,'2','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00');
20150421 16:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=9 LIMIT 1;
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5.00',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=9 LIMIT 1;
20150421 16:58 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00');
20150421 16:58 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20150421 16:58 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20150421 16:58 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20150421000000,20150421000000,20000101165800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150421 16:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:58 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'2','ARTIGO 2','','',0.000000,5.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=5.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20150421 16:58 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',2,20150421000000,20150421000000,'','',5.00,5.00,'D',5.00,0.00,0.00,0.94,0.00,1.000000,0,0,'A','');
20150421 16:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150421 16:58 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,1,'2','ARTIGO 2',5.00,0.00,'',2,20150421000000,0.00,'');
20150421 16:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=5.00,pendente=5.00,deb_cred='D',debito=5.00,credito=0.00,acumulado=0.00,val_iva=0.94,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20150421 16:58 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150421 16:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=5.00,pendente=5.00,deb_cred='D',debito=5.00,credito=0.00,acumulado=0.00,val_iva=0.94,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20150421 16:58 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150421 16:58 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:58 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:58 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:58 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:58 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20150421000000,20150421000000,20000101165800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150421 16:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:58 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'2','ARTIGO 2','','',0.000000,5.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=5.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20150421 16:58 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',2,20150421000000,20150421000000,'','',5.00,5.00,'D',5.00,0.00,0.00,0.00,0.00,1.000000,0,0,'A','');
20150421 16:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=0.00,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=5.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150421 16:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=5.00,pendente=5.00,deb_cred='D',debito=5.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20150421 16:58 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=0.00,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=5.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150421 16:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=5.00,pendente=5.00,deb_cred='D',debito=5.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20150421 16:58 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=0.00,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=5.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150421 16:58 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=0.00,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=5.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=19 LIMIT 1;
20150421 16:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:59 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:59 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:59 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:59 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150421 16:59 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20150421000000,20150421000000,20000101165900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150421 16:59 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 16:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:59 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'2','ARTIGO 2','','',0.000000,5.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150421 16:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 16:59 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=5.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20150421 17:25 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',2,20150421000000,20150421000000,'','',5.00,5.00,'D',5.00,0.00,0.00,0.94,0.00,1.000000,0,0,'A','');
20150421 17:25 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=5.00,pendente=5.00,deb_cred='D',debito=5.00,credito=0.00,acumulado=0.00,val_iva=0.94,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20150421 17:25 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:42 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=5.00,pendente=5.00,deb_cred='D',debito=5.00,credito=0.00,acumulado=0.00,val_iva=0.94,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20150421 17:42 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.06,tot_desconto=0.00,tot_liquido=4.06,tot_iva=0.94,tot_valor=5.00,val_pago=0.00,val_pend=5.00,suj_valor0=4.06,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.94,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 17:42 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'2','ARTIGO 2','','',0.000000,5.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150421 17:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150421 17:42 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=5.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20150421 17:42 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=6.15,pendente=6.15,deb_cred='D',debito=6.15,credito=0.00,acumulado=0.00,val_iva=1.15,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20150421 17:42 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=1.15,tot_valor=6.15,val_pago=0.00,val_pend=6.15,suj_valor0=5.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.15,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:42 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=6.15,pendente=6.15,deb_cred='D',debito=6.15,credito=0.00,acumulado=0.00,val_iva=1.15,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20150421 17:42 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=1.15,tot_valor=6.15,val_pago=0.00,val_pend=6.15,suj_valor0=5.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.15,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:42 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=6.15,pendente=6.15,deb_cred='D',debito=6.15,credito=0.00,acumulado=0.00,val_iva=1.15,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20150421 17:42 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=1.15,tot_valor=6.15,val_pago=0.00,val_pend=6.15,suj_valor0=5.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.15,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:42 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=2,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=6.15,pendente=6.15,deb_cred='D',debito=6.15,credito=0.00,acumulado=0.00,val_iva=1.15,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20150421 17:42 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=1.15,tot_valor=6.15,val_pago=0.00,val_pend=6.15,suj_valor0=5.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.15,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150421 17:42 UPDATE documento_d2 SET linhas=1,no_doc=2,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.00,tot_desconto=0.00,tot_liquido=5.00,tot_iva=1.15,tot_valor=6.15,val_pago=0.00,val_pend=6.15,suj_valor0=5.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.15,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=20 LIMIT 1;
20150422 15:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0' WHERE IDX=9 LIMIT 1;
20150422 15:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5.00',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20150422 15:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0.00',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20150422 15:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20150422 15:24 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20150422000000,20150422000000,20000101152400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150422 15:24 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150422 15:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150421000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20150422 15:24 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,3,'2','ARTIGO 2','','',0.000000,5.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150422 15:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=0.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20150422 15:24 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150422 15:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150422000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20150422 15:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=2.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20150422 15:24 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Factura',3,20150422000000,20150422000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20150422 15:24 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150422 15:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=3,d_doc=20150422000000,d_venc=20150422000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20150422 15:24 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150422 15:24 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,2,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',78,00000000000000,0,0,'');
20150422 15:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=7 LIMIT 1;
20150422 15:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='cliente 2',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=4,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=7 LIMIT 1;
20150422 15:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=3,d_doc=20150422000000,d_venc=20150422000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20150422 15:24 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150422 15:24 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20150422000000,20150422000000,20000101152400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150422 15:24 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150422 15:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150422000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20150422 15:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,4,'2','ARTIGO 2','','',0.000000,4.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20150422 15:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150422000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20150422 15:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='2',designacao='ARTIGO 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=4.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=4.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20150422 15:25 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Factura',4,20150422000000,20150422000000,'','',4.92,4.92,'D',4.92,0.00,0.00,0.92,0.00,1.000000,0,0,'A','');
20150422 15:25 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150422 15:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=4,d_doc=20150422000000,d_venc=20150422000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.92,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20150422 15:25 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150422 15:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Factura',no_doc=4,d_doc=20150422000000,d_venc=20150422000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.92,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20150422 15:25 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150422 15:25 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150422 16:23 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,2,'2','ARTIGO 2',4.00,0.00,'FA',4,20150422000000,0.00,'');
20150504 10:31 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi2',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150504 10:31 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi3',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150504 10:32 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150504 10:33 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150504 10:34 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de cr‚dito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20150504 10:34 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de cr‚dito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20150504 10:34 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de cr‚dito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20150504 10:34 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de d‚bito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20150504 10:34 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de d‚bito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20150504 10:34 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de d‚bito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20150504 19:05 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Factura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='123',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20150504 19:05 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20150504 19:05 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,15,0,'',0,0,'',20150504000000,20150504000000,20000101190500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150504 19:05 UPDATE documento_d10 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150504000000,d_venc=20150504000000,h_doc=20000101190500,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20150508 12:51 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSI4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150508 12:52 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Factura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150526 10:41 DROP TABLE IF EXISTS tmpi
20150526 10:41 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20150526 10:41 CREATE INDEX tmpi_i ON TMPi(codigo);
20150526 10:41 DROP TABLE IF EXISTS tmp
20150526 10:41 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20150526 10:41 CREATE INDEX tmp_i ON TMP(codigo);
20150526 10:41 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20150526 10:41 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20150526 10:41 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20150526 10:41 UPDATE IGNORE TMP SET preco=0 where ent<=0
20150526 10:41 DROP TABLE IF EXISTS tmp2
20150526 10:41 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20150526 10:41 CREATE INDEX tmp2_i ON TMP2(codigo);
20150526 10:41 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
20150526 10:41 DROP TABLE IF EXISTS Inventario;
20150526 10:41 CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
20150526 10:41 INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
20150526 10:41 Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
20150526 10:41 DROP TABLE IF EXISTS tmpi
20150526 10:41 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20150526 10:41 CREATE INDEX tmpi_i ON TMPi(codigo);
20150526 10:41 DROP TABLE IF EXISTS tmp
20150526 10:41 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20150526 10:41 CREATE INDEX tmp_i ON TMP(codigo);
20150526 10:41 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc>=0 AND a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20150526 10:41 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20150526 10:41 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20150526 10:41 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20150526 10:41 UPDATE IGNORE TMP SET preco=0 where ent<=0
20150526 10:41 DROP TABLE IF EXISTS tmp2
20150526 10:41 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20150526 10:41 CREATE INDEX tmp2_i ON TMP2(codigo);
20150526 10:41 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
20150526 10:41 DROP TABLE IF EXISTS Inventario;
20150526 10:41 CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
20150526 10:41 INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
20150526 10:41 Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
20150529 15:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Factura',no_doc=90,d_doc=20150421000000,d_venc=20150421000000,ref='',obs='',valor=10.00,pendente=10.00,deb_cred='D',debito=10.00,credito=0.00,acumulado=0.00,val_iva=1.87,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20150529 15:04 UPDATE documento_d2 SET linhas=1,no_doc=90,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=0.00,val_pend=10.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150529 15:05 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,91,0,'',0,0,'',20150529000000,20150529000000,20000101150500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150529 15:05 UPDATE documento_d2 SET linhas=0,no_doc=91,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20150529000000,d_venc=20150529000000,h_doc=20000101150500,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=111 LIMIT 1;
20150611 15:11 UPDATE documento_d2 SET convertido='0' WHERE no_doc='90' and serdoc='A' 
20150611 15:16 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,25,0,2,'121212','m,kbm,bm,bm,b,m',12.20,0.00,'',88,20150203000000,0.00,'');
20150611 15:18 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,124,'3','teste 3',0.25,0.00,'',19,20150414000000,0.00,'');
20150611 15:18 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA / RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 15:19 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura/Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 15:19 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura/Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 15:19 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Factura/Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 15:21 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140828000000,d_venc=20140828000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=16 LIMIT 1;
20150611 15:21 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 15:21 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 15:28 UPDATE documento_d2 SET convertido='0' WHERE no_doc='90' and serdoc='A' 
20150611 15:28 UPDATE documento_d2 SET linhas=1,no_doc=90,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150421000000,d_venc=20150421000000,h_doc=20000101165500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=1,cond_pagam='P.PAGAMENTO',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=0.00,val_pend=10.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=110 LIMIT 1;
20150611 15:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=2,d_doc=20140828000000,d_venc=20140828000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=16 LIMIT 1;
20150611 15:33 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 15:33 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 15:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=11,cor=0,no=1,doc_mov='R',tp=2,document='Liquida‡Ćo',no_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=15 LIMIT 1;
20150611 15:33 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150611 15:33 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura -Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura -Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura -Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=5,designacao='FACTURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20150611 18:14 UPDATE tipos_de_documentosd SET numero=5,designacao='FACTURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20150611 18:15 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20150611 18:15 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20150611 18:15 UPDATE tipos_de_documentosd SET numero=6,designacao='GUIA DE REMESSA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsg',abvr='GR',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de remessa',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20150611 18:15 UPDATE tipos_de_documentosd SET numero=7,designacao='GUIA DE TRANSPORTE',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsg',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20150611 18:15 UPDATE tipos_de_documentosd SET numero=7,designacao='GUIA DE TRANSPORTE',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsg',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20150611 18:15 UPDATE tipos_de_documentosd SET numero=7,designacao='GUIA DE TRANSPORTE',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsg',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de transporte',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolu‡Ćo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20150611 18:20 UPDATE tipos_de_documentosd SET numero=9,designacao='GUIA INTERNA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GI',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia interna',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='Fatura a credito',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='Fatura a credito',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150611 18:21 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,pda,ivac,rsv) VALUES(NULL,18,'COMPRAS','F','',1,'DOC-F.rpt',1,'C','P','E','docsi4','CO','S','','N','Fatura a credito','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N',0,0,'');
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:21 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:22 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:22 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='Compra a dinheiro',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:22 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:22 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia transporte FORN',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia transporte FORN',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia transporte FORN',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolu‡Ćo FR',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolu‡Ćo FR',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20150611 18:23 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='ExistEncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='ExistEncias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150611 18:24 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150611 18:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='1',familia='UN',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=3.9500000,no_iva=3,iva=6.00,marg_1=0.0000000,marg_2=23.0000000,prc_s_iva_1=147.4000000,prc_s_iva_2=1.3900000,prc_c_iva_1=9.7700000,prc_c_iva_2=1.3900000,stock_minimo=9.770,stock=4.926,stock_maximo=2.000,no_forn=-11275,d_entrada=50000000000000,d_saida=00000000000000,baixa='2',lnh_obs='2',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=3 LIMIT 1;
20150611 18:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='UN',familia='UN',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=3,iva=3.00,marg_1=6.0000000,marg_2=0.0000000,prc_s_iva_1=147.4000000,prc_s_iva_2=1.3900000,prc_c_iva_1=9.7700000,prc_c_iva_2=1.3900000,stock_minimo=9.770,stock=9.770,stock_maximo=2.000,no_forn=2,d_entrada=255120000000000,d_saida=50000000000000,baixa='0',lnh_obs='2',stock2=2.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=3 LIMIT 1;
20150611 18:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='1',armazem='UN',familia='UN',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=3,iva=6.00,marg_1=6.0000000,marg_2=0.0000000,prc_s_iva_1=147.4000000,prc_s_iva_2=1.3900000,prc_c_iva_1=9.7700000,prc_c_iva_2=1.3900000,stock_minimo=9.770,stock=9.770,stock_maximo=2.000,no_forn=2,d_entrada=02000000000000,d_saida=00000000000000,baixa='5',lnh_obs='0',stock2=2.00,lnh_emb='2',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='0',miva=0,rsv='0',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=3 LIMIT 1;
20150612 10:23 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20150612 10:23 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20150612 10:23 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='DOCSF',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='DOCSF',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='DOCSF',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de debito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='DOCSF',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de debito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20150612 10:24 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G TRANSPORTE P/ FORN',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20150612 10:25 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='G. Devolucao Forn.',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20150612 10:25 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20150612 10:25 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20150612 10:25 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20150612 10:26 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20150612 10:26 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20150612 10:38 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=100 LIMIT 1;
20150612 10:38 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150612 10:38 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150612 10:38 UPDATE documento_d2 SET convertido='0' WHERE no_doc='48' and serdoc='A' 
20150612 10:38 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20130731000000,d_venc=20130731000000,h_doc=20000101124200,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=97.60,tot_desconto=0.00,tot_liquido=97.60,tot_iva=22.45,tot_valor=120.05,val_pago=120.05,val_pend=0.00,suj_valor0=97.60,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=22.45,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=60 LIMIT 1;
20150612 10:39 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=100 LIMIT 1;
20150612 10:39 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150612 10:39 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25320.91,saldo1=-25320.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25308.90,saldo1=-25308.90,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-6642.00,saldo1=-6642.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150612 10:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150612 15:37 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=102 LIMIT 1;
20150612 15:37 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150612 15:37 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150615 17:50 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150618 19:12 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi3',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150618 19:12 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi2',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150618 19:14 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150618 19:14 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20150622 10:04 UPDATE documento_d2 SET convertido='0' WHERE no_doc='90' and serdoc='A' 
20150622 13:54 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquidacao',2,20140828000000,20140828000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20150622 13:54 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150622 13:54 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150623 11:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='1',armazem='1',familia='UN',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=3.00,marg_1=6.0000000,marg_2=6.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=147.4000000,prc_c_iva_1=1.3900000,prc_c_iva_2=9.7700000,stock_minimo=1.390,stock=9.770,stock_maximo=9.770,no_forn=2,d_entrada=02000000000000,d_saida=02000000000000,baixa='0',lnh_obs='5',stock2=0.00,lnh_emb='2',lnh_prom='2',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=3 LIMIT 1;
20150623 11:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='1',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=3.0000000,marg_2=6.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=9.770,stock=1.390,stock_maximo=9.770,no_forn=9,d_entrada=02000000000000,d_saida=02000000000000,baixa='0',lnh_obs='0',stock2=5.00,lnh_emb='0',lnh_prom='2',flg=2,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150623 11:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='0',familia='1',ultimo_custo=1.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=1.00,marg_1=23.0000000,marg_2=3.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=9.770,stock=9.770,stock_maximo=9.770,no_forn=9,d_entrada=09000000000000,d_saida=02000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='5',lnh_prom='0',flg=2,anos_ga=2,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150623 11:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=1.0000000,custo_medio=1.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=100.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=2.460,stock=9.770,stock_maximo=9.770,no_forn=9,d_entrada=09000000000000,d_saida=09000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='5',flg=0,anos_ga=2,local_imp=2,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150623 11:45 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4) VALUES(NULL,0,0,0,0,'a','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00');
20150623 11:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='a',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='0',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='0',lnh_obs='S',stock2=0.00,lnh_emb='0',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00' WHERE IDX=27 LIMIT 1;
20150623 11:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='a',codigo2='a',designacao_1='aaaa',designacao_2='',abvr='aaaa',no_un_=0,unidade='0',armazem='0',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=23.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=27 LIMIT 1;
20150623 11:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=1.0000000,valor_medio=1.0000000,no_iva=1,iva=23.00,marg_1=23.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=1.0000000,prc_c_iva_1=2.0000000,prc_c_iva_2=1.2300000,stock_minimo=2.460,stock=2.460,stock_maximo=9.770,no_forn=9,d_entrada=09000000000000,d_saida=09000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=5,anos_ga=0,local_imp=2,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150630 12:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=1.0000000,no_iva=1,iva=1.00,marg_1=23.0000000,marg_2=23.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=100.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=101.0000000,stock_minimo=1.230,stock=2.460,stock_maximo=2.460,no_forn=9,d_entrada=09000000000000,d_saida=09000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=5,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150630 12:30 UPDATE historico_contas_correntes_clientes SET linha_f=13,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=49.53,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=101 LIMIT 1;
20150630 12:30 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ MILLENNIUM',com_fp='121212540',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=49.53,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150630 12:30 UPDATE historico_contas_correntes_clientes SET linha_f=13,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20140208000000,d_venc=20140208000000,ref='',obs='',valor=49.53,pendente=49.53,deb_cred='C',debito=0.00,credito=49.53,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=101 LIMIT 1;
20150630 12:30 UPDATE documento_r1 SET linhas=3,no_doc=9,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140208000000,d_venc=20140208000000,h_doc=20000101115500,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ MILLENNIUM',com_fp='121212540',no_banco=0,nome_banco='',tot_material=49.53,tot_desconto=0.00,tot_liquido=49.53,tot_iva=0.00,tot_valor=49.53,val_pago=0.00,val_pend=49.53,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140208000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150630 12:30 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,11,0,'',0,0,'',20150630000000,00000000000000,20000101123000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20150630000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20150630 12:30 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'R',1,'Recibo',11,20150630000000,20150630000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20150630 12:30 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 12:31 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 12:31 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 12:31 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130925000000,d_venc=20130925000000,h_doc=20000101174600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1300.00,tot_desconto=0.00,tot_liquido=1300.00,tot_iva=299.00,tot_valor=1599.00,val_pago=1599.00,val_pend=0.00,suj_valor0=1300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=299.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=73 LIMIT 1;
20150630 12:31 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,11,'D',2,'Fatura',60,20130925000000,20130925000000,'','D',1599.00,1599.00,1599.00,0.000,0.00,1599.00,0.00,0.00,0,'A',1300.00,299.00,1599.00,1300.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,299.00,0.00,0.00,0.00,0,'');
20150630 12:31 UPDATE reciboslinhas01 SET linha=5,cor=0,no=11,doc_mov='D',tp=2,document='Fatura',n_doc=60,d_doc=20130925000000,d_venc=20130925000000,ref='',deb_cred='D',val_doc=1599.00,val_pend=1599.00,val_liqu=1599.00,per_desc=0.000,val_desc=0.00,val_rec=1599.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=1300.00,tot_iva=299.00,tot_valor=1599.00,suj_valor0=1300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=299.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20150630 12:31 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 12:31 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 12:31 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 12:31 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 12:31 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 12:31 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 12:31 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 12:33 CREATE TABLE IF NOT EXISTS documento_d18 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d18_1 (no_doc) ,INDEX documento_d18_2 (no_cf,no_doc) ,INDEX documento_d18_3 (d_doc,no_doc) );
20150630 12:33 CREATE TABLE IF NOT EXISTS documento_linhas_d18 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(31),PRIMARY KEY (IDX),UNIQUE INDEX documento_linhas_d18_1 (num_doc,lnh_f) );
20150630 12:33 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150630 12:33 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150630 12:33 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150630 12:33 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CR�DITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CRÉDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CRÉDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:34 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CRÉDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docs',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20150630 12:35 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20150630 13:17 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 13:17 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 13:17 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/ CGD',com_fp='3212121F2',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 13:54 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 13:54 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150630 13:55 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=103 LIMIT 1;
20150630 13:55 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150704 11:58 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150704 11:58 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150710 17:15 UPDATE documento_d2 SET convertido='0' WHERE no_doc='90' and serdoc='A' 
20150724 16:51 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20150724 16:51 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25308.90,saldo1=-25308.90,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=1,c_pagamento='P.PAGAMENTO',prazo=0,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25308.90,saldo1=-25308.90,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:10 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25320.91,saldo1=-25320.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25320.91,saldo1=-25320.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25320.91,saldo1=-25320.91,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:13 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,91,0,'',0,0,'',20150728000000,20150728000000,20000101121300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20150728 12:13 UPDATE documento_d2 SET linhas=0,no_doc=91,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150728 12:13 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,91,'','TESTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20150728 12:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=91,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=197 LIMIT 1;
20150728 12:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=91,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=20.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=20.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=197 LIMIT 1;
20150728 12:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=91,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=20.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=20.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=197 LIMIT 1;
20150728 12:13 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',91,20150728000000,20150827000000,'','',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,1,0,'A','');
20150728 12:13 UPDATE documento_d2 SET linhas=0,no_doc=91,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150728 12:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=91,d_doc=20150728000000,d_venc=20150827000000,ref='',obs='',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20150728 12:13 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150728 12:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=91,d_doc=20150728000000,d_venc=20150827000000,ref='',obs='',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20150728 12:13 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150728 12:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=91,d_doc=20150728000000,d_venc=20150827000000,ref='',obs='',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=75 LIMIT 1;
20150728 12:13 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150728 12:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:20 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=104 LIMIT 1;
20150728 12:20 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:20 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150728 12:20 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=2,d_doc=20140828000000,d_venc=20140828000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=20 LIMIT 1;
20150728 12:20 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150728 12:20 UPDATE historico_contas_correntes_fornecedores SET linha_f=11,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=1,d_doc=20121207000000,d_venc=20121207000000,ref='',obs='',valor=4.92,pendente=4.92,deb_cred='D',debito=4.92,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=18 LIMIT 1;
20150728 12:20 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:20 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20121207000000,d_venc=20121207000000,h_doc=20000101161800,no_cf=1,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=2,des_fp='TRANSF. BANCARIA',com_fp='2121',no_banco=0,nome_banco='',tot_material=4.92,tot_desconto=0.00,tot_liquido=4.92,tot_iva=0.00,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20121207000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150728 12:21 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=1,unidade='UN',armazem='0',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=1.0000000,marg_2=23.0000000,prc_s_iva_1=23.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=100.0000000,prc_c_iva_2=0.0000000,stock_minimo=101.000,stock=1.230,stock_maximo=2.460,no_forn=2,d_entrada=09000000000000,d_saida=09000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=5,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150805 13:09 INSERT INTO etiquetas_de_artigos (idx,linhas,no,data,no_cli,cliente,obs,lp,iv,rsv) VALUES(NULL,0,1,00000000000000,0,'','','','','');
20150805 13:09 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=00000000000000,no_cli=0,cliente='',obs='',lp='',iv='',rsv='' WHERE IDX=1 LIMIT 1;
20150805 13:09 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 13:09 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 13:09 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:09 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:09 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:11 INSERT INTO etiquetas__linhas_ (idx,linha,cor,no,codigo,descricao,preco,qtd,iva,aux1,abvr,rsv) VALUES(NULL,5,0,1,'1','TESTW',0.00,1,1.00,'','TESTW','');
20150805 14:11 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='1',descricao='TESTW',preco=0.00,qtd=1,iva=1.00,aux1='',abvr='TESTW',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:11 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='1',armazem='UN',familia='0',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=23.0000000,marg_2=1.0000000,prc_s_iva_1=23.0000000,prc_s_iva_2=23.0000000,prc_c_iva_1=28.2900000,prc_c_iva_2=28.2900000,stock_minimo=0.000,stock=101.000,stock_maximo=1.230,no_forn=2,d_entrada=02000000000000,d_saida=09000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150805 14:12 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='1',descricao='TESTW',preco=0.00,qtd=1,iva=1.00,aux1='',abvr='TESTW',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='1',descricao='TESTW',preco=23.00,qtd=1,iva=1.00,aux1='',abvr='TESTW',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=0,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='1',familia='UN',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=23.0000000,marg_2=23.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=23.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=28.2900000,stock_minimo=28.290,stock=0.000,stock_maximo=101.000,no_forn=1,d_entrada=02000000000000,d_saida=02000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3.00',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=3 LIMIT 1;
20150805 14:12 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='1',descricao='TESTW',preco=23.00,qtd=1,iva=1.00,aux1='',abvr='TESTW',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='1',descricao='TESTW',preco=23.00,qtd=1,iva=1.00,aux1='',abvr='TESTW',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 INSERT INTO etiquetas__linhas_ (idx,linha,cor,no,codigo,descricao,preco,qtd,iva,aux1,abvr,rsv) VALUES(NULL,5,0,1,'1','TESTW',23.00,1,1.00,'','TESTW','');
20150805 14:12 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='1',descricao='TESTW',preco=23.00,qtd=1,iva=1.00,aux1='',abvr='TESTW',rsv='' WHERE IDX=2 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 14:12 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150805 16:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150805 16:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25333.50,saldo1=-25333.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='JOAQUIM JOSE',nome_2='',morada='MORADAD DEKLE',localidade='SDSDSDS',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=3 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='TESTE',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-15.38,saldo1=-15.38,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=4 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='FDFD',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='ANTONIO JOSE, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-5043.00,saldo1=-5043.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=6 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CIENTE 7',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=7 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='MIR, LDA',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-1955.45,saldo1=-1955.45,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=2,venc=1,rsv='' WHERE IDX=8 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='CONEI€ŽO',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='MIR INFORMATICA, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=99,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=100,nome_1='b vbn bnbn nb',nome_2='',morada='mnmnmnm',localidade=',m,m',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=124,nome_1='NOME DA EMPREDSA LDFAD',nome_2='',morada='MORTADADASD',localidade='LDKFOKLDJKFOLD',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='506102556',telefone='253235323',fax='232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=125,nome_1='jkhghjghjghj',nome_2='',morada='~jnjhbjbhj',localidade='jkhjhkjh',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1452,nome_1='ghfcgvnbvbnvnvb',nome_2='',morada=',mnmnm,',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1453,nome_1='MIR INOFORMARICA, ldad',nome_2='',morada='moradad',localidade='localidee',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='221245256',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-81.49,saldo1=-81.49,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=16 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1454,nome_1='JOSE BENFEITO',nome_2='',morada='RUA ZXPRO',localidade='BARCELOS',cod_post='4750-124',concelho='BARCELOS',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='9664525451',fax='250323232',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='GHJDFJGHFJHFMV',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20150805 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1455,nome_1='jklghlkdhjgklfjh‡l',nome_2='',morada='gjgjghkmh',localidade='jngmgmhgm',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20150805 18:12 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20150805 18:12 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150805 18:12 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20150805 18:12 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150806 12:19 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20150806 12:19 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150806 12:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=2,d_doc=20140828000000,d_venc=20140828000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=20 LIMIT 1;
20150806 12:33 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150806 12:33 UPDATE documento_r2 SET linhas=0,no_doc=2,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140828000000,d_venc=20140828000000,h_doc=20000101103600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140828000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=12 LIMIT 1;
20150806 12:38 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20150806 12:38 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20150806 15:15 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150806 15:15 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150806 15:15 INSERT INTO etiquetas__linhas_ (idx,linha,cor,no,codigo,descricao,preco,qtd,iva,aux1,abvr,rsv) VALUES(NULL,10,0,1,'123','pe‡a 123',0.00,1,1.00,'','pe‡a 123','');
20150806 15:15 UPDATE etiquetas__linhas_ SET linha=10,cor=0,no=1,codigo='123',descricao='pe‡a 123',preco=0.00,qtd=1,iva=1.00,aux1='',abvr='pe‡a 123',rsv='' WHERE IDX=3 LIMIT 1;
20150806 15:15 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150806 15:15 UPDATE etiquetas__linhas_ SET linha=10,cor=0,no=1,codigo='123',descricao='pe‡a 123',preco=50.00,qtd=1,iva=1.00,aux1='',abvr='pe‡a 123',rsv='' WHERE IDX=3 LIMIT 1;
20150806 15:15 UPDATE etiquetas__linhas_ SET linha=10,cor=0,no=1,codigo='123',descricao='pe‡a 123',preco=50.00,qtd=2,iva=1.00,aux1='',abvr='pe‡a 123',rsv='' WHERE IDX=3 LIMIT 1;
20150806 15:15 UPDATE etiquetas_de_artigos SET linhas=1,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150806 15:15 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150806 15:15 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20150813 12:13 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=104 LIMIT 1;
20150813 12:13 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150813 12:13 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20150814 17:49 CREATE TABLE IF NOT EXISTS documento_d18 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d18_1 (no_doc) ,INDEX documento_d18_2 (no_cf,no_doc) ,INDEX documento_d18_3 (d_doc,no_doc) );
20150814 17:49 CREATE TABLE IF NOT EXISTS documento_linhas_d18 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(31),PRIMARY KEY (IDX),UNIQUE INDEX documento_linhas_d18_1 (num_doc,lnh_f) );
20150918 14:17 UPDATE documento_d2 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
20150918 14:17 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150422000000,d_venc=20150422000000,h_doc=20000101152400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.00,tot_desconto=0.00,tot_liquido=4.00,tot_iva=0.92,tot_valor=4.92,val_pago=0.00,val_pend=4.92,suj_valor0=4.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.92,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=22 LIMIT 1;
20151003 11:36 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,5,0,'',0,0,'',20151003000000,20151003000000,20000101113600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20151003 11:36 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151003 11:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20151003000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20151003 11:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,5,'1','ARTIGO 1','UN','',1.000000,2.4600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,2.46,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20151003 11:36 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=5,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=2.4600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2.46,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20151003 11:36 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Fatura',5,20151003000000,20151003000000,'','',2.46,2.46,'D',2.46,0.00,0.00,0.46,0.00,1.000000,0,0,'A','');
20151003 11:36 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=0.00,val_pend=2.46,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151003 11:39 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20151003000000,d_venc=20151003000000,ref='',obs='',valor=2.46,pendente=2.46,deb_cred='D',debito=2.46,credito=0.00,acumulado=0.00,val_iva=0.46,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20151003 11:39 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=0.00,val_pend=2.46,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151003 11:39 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,2,'1','ARTIGO 1',2.46,0.00,'FA',5,20151003000000,0.00,'');
20151003 11:39 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20151003000000,d_venc=20151003000000,ref='',obs='',valor=2.46,pendente=2.46,deb_cred='D',debito=2.46,credito=0.00,acumulado=0.00,val_iva=0.46,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20151003 11:39 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=0.00,val_pend=2.46,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151003 11:41 INSERT INTO paises (idx,no,designacao,moeda,cambio,cambio_c,rsv) VALUES(NULL,3,'FRANCA','',0.000,0.000,'');
20151003 11:42 UPDATE paises SET no=2,designacao='ESPANHA',moeda='',cambio=0.000,cambio_c=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20151003 11:42 UPDATE paises SET no=1,designacao='PORTUGAL',moeda='euro',cambio=0.000,cambio_c=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20151102 18:18 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi5',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20151102 18:18 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi5',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20151102 18:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20151003000000,d_venc=20151003000000,ref='',obs='',valor=2.46,pendente=2.46,deb_cred='D',debito=2.46,credito=0.00,acumulado=0.00,val_iva=0.46,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20151102 18:19 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=0.00,val_pend=2.46,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=10025.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151102 18:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20151003000000,d_venc=20151003000000,ref='',obs='',valor=2.46,pendente=2.46,deb_cred='D',debito=2.46,credito=0.00,acumulado=0.00,val_iva=0.46,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20151102 18:19 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=0.00,val_pend=2.46,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=10025.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151102 18:20 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151003000000,d_venc=20151003000000,h_doc=20000101113600,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=0.00,val_pend=2.46,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=10025.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20151102 18:20 INSERT INTO documento_d16 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20151102000000,20151102000000,20000101182000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20151102 18:20 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:27 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=200.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 INSERT INTO documento_linhas_d16 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'','VALOR DA REPARACAO','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20151102 18:28 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='VALOR DA REPARACAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='VALOR DA REPARACAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=2380.5400000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=2380.54,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20151102 18:28 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='VALOR DA REPARACAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=2380.5400000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2380.54,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1935.40,tot_desconto=0.00,tot_liquido=1935.40,tot_iva=445.14,tot_valor=2380.54,val_pago=2380.54,val_pend=0.00,suj_valor0=1935.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=445.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1935.40,tot_desconto=0.00,tot_liquido=1935.40,tot_iva=445.14,tot_valor=2380.54,val_pago=2380.54,val_pend=0.00,suj_valor0=1935.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=445.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1935.40,tot_desconto=0.00,tot_liquido=1935.40,tot_iva=445.14,tot_valor=2380.54,val_pago=2380.54,val_pend=0.00,suj_valor0=1935.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=445.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1935.40,tot_desconto=0.00,tot_liquido=1935.40,tot_iva=445.14,tot_valor=2380.54,val_pago=2380.54,val_pend=0.00,suj_valor0=1935.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=445.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1935.40,tot_desconto=0.00,tot_liquido=1935.40,tot_iva=445.14,tot_valor=2380.54,val_pago=2380.54,val_pend=0.00,suj_valor0=1935.40,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=445.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='VALOR DA REPARACAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=2928.0600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2928.06,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:28 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:29 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:29 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:29 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151102 18:32 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151103 15:31 UPDATE documento_d16 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151102000000,d_venc=20151102000000,h_doc=20000101182000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2380.54,tot_desconto=0.00,tot_liquido=2380.54,tot_iva=547.52,tot_valor=2928.06,val_pago=2928.06,val_pend=0.00,suj_valor0=2380.54,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=547.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=500.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20151103 15:32 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi5',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20151103 15:32 INSERT INTO documento_d16 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20151103000000,20151103000000,20000101153200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20151103 15:32 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 INSERT INTO documento_linhas_d16 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'','xdvfs','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20151103 15:32 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='xdvfs',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20151103 15:32 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='xdvfs',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20151103 15:32 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='xdvfs',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=200.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=200.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=200.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=200.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:32 UPDATE documento_d16 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=81.30,tot_desconto=0.00,tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,val_pago=100.00,val_pend=0.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=200.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20151103 15:34 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi5',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20151103 15:34 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi5',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20151103 15:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20151103 15:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20151103 15:34 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,6,0,'',0,0,'',20151103000000,20151103000000,20000101153400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20151103 15:34 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,6,'','wefwrf','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20151103 15:34 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='',designacao='wefwrf',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20151103 15:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='',designacao='wefwrf',unidade='',com_iva='',quantidade=1.000000,preco_unit=343.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=343.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20151103 15:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='',designacao='wefwrf',unidade='',com_iva='',quantidade=1.000000,preco_unit=343.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=343.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20151103 15:34 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Fatura',6,20151103000000,20151103000000,'','',343.00,343.00,'D',343.00,0.00,0.00,64.14,0.00,1.000000,0,0,'A','');
20151103 15:34 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151103 15:34 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151103 15:34 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151103 15:34 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151103 15:34 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151103 15:34 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20151103 15:34 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20151104 18:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=2.4600000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20151003000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=8 LIMIT 1;
20151104 18:38 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,6,'1','ARTIGO 1','UN','',0.000000,2.4600000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20151104 18:38 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=6,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=0.000000,preco_unit=2.4600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20151104 18:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151104 18:38 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151104 18:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151104 18:38 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151104 18:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151104 18:38 UPDATE documento_d2 SET linhas=2,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151204 17:52 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20151204 AND c1.d_doc<=20151204 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2015-12-04 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-04 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20151204 17:52 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20151204 AND c1.d_doc<=20151204 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2015-12-04 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-04 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20151204 17:52 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20151204 AND c1.d_doc<=20151204 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2015-12-04 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2015-12-04 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo >='' AND l1.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20151204 17:53 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20151103000000,d_venc=20151103000000,ref='',obs='',valor=343.00,pendente=343.00,deb_cred='D',debito=343.00,credito=0.00,acumulado=0.00,val_iva=64.14,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20151204 17:53 UPDATE documento_d2 SET linhas=2,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20151204 17:53 UPDATE documento_d2 SET linhas=2,no_doc=6,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20151103000000,d_venc=20151103000000,h_doc=20000101153400,no_cf=2,nome_cf='cliente 2',desconto=0.00,linha_pre=3,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=278.86,tot_desconto=0.00,tot_liquido=278.86,tot_iva=64.14,tot_valor=343.00,val_pago=0.00,val_pend=343.00,suj_valor0=278.86,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.14,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=20.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160112 12:06 UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20160112 12:06 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20160112 16:56 CREATE TABLE IF NOT EXISTS listagens_configuraveis_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),ficheiro char(32),campo char(46),tipo int(5),ofest int(5),tam int(5),ndec int(5),max int(5),rsv char(37),PRIMARY KEY (IDX),UNIQUE INDEX listagens_configuraveis_linhas_1 (lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documento_d17 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d17_1 (no_doc) ,INDEX documento_d17_2 (no_cf,no_doc) ,INDEX documento_d17_3 (d_doc,no_doc) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documento_linhas_d17 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(31),PRIMARY KEY (IDX),UNIQUE INDEX documento_linhas_d17_1 (num_doc,lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documento_pagamento_d17 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d17_1 (no_doc,lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documento_pagamento_d18 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d18_1 (no_doc,lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documentosextras17 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras17_1 (no_doc) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documentosextras18 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras18_1 (no_doc) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documentoresd17 (IDX INT NOT NULL AUTO_INCREMENT,no int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),contribuinte char(17),serdoc char(7),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX documentoresd17_1 (no) );
20160112 16:56 CREATE TABLE IF NOT EXISTS documentoresd18 (IDX INT NOT NULL AUTO_INCREMENT,no int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),contribuinte char(17),serdoc char(7),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX documentoresd18_1 (no) );
20160112 16:56 CREATE TABLE IF NOT EXISTS art_prod (IDX INT NOT NULL AUTO_INCREMENT,codigo char(16),nome char(42),qtd_ord double,qtd_sat double,qtd_flt double,rsv char(47),PRIMARY KEY (IDX),UNIQUE INDEX art_prod_1 (codigo) );
20160112 16:56 CREATE TABLE IF NOT EXISTS prodo (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),num int,d_doc date,d_prev date,obs char(52),rsv char(62),PRIMARY KEY (IDX),UNIQUE INDEX prodo_1 (num) );
20160112 16:56 CREATE TABLE IF NOT EXISTS prodo_lin (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num int,codigo char(16),nome char(42),qtd double,n_arm int(5),lnh_o int(5),preco double,rsv char(43),PRIMARY KEY (IDX),UNIQUE INDEX prodo_lin_1 (num,lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS prodd_lin2 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num int,codigo char(16),nome char(42),qtd double,n_arm int(5),lnh_o int(5),preco double,rsv char(43),PRIMARY KEY (IDX),UNIQUE INDEX prodd_lin2_1 (num,lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS doc2d (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),n_moed int(5),convertido int,referencia char(22),d__doc_ date,d__venc_ date,h__doc_ datetime,n_c_f int,nome_c_f char(42),descp double,linha_pre int(5),observacao char(42),n_operador int(5),n_vended_ int(5),comissao double,n__cond_pag_ int(5),cond__pagam_ char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),n_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val__pago double,val__pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d__lan_ date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,rsv char(24),PRIMARY KEY (IDX),UNIQUE INDEX doc2d_1 (linhas) );
20160112 16:56 CREATE TABLE IF NOT EXISTS doc2e (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),n_moed int(5),convertido int,referencia char(22),d__doc_ date,d__venc_ date,h__doc_ datetime,n_c_f int,nome_c_f char(42),descp double,linha_pre int(5),observacao char(42),n_operador int(5),n_vended_ int(5),comissao double,n__cond_pag_ int(5),cond__pagam_ char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),n_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val__pago double,val__pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d__lan_ date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,rsv char(24),PRIMARY KEY (IDX),UNIQUE INDEX doc2e_1 (linhas) );
20160112 16:56 CREATE TABLE IF NOT EXISTS doc2dlnh (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,descp1 double,desc_1 double,descp2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,rsv char(8),PRIMARY KEY (IDX),UNIQUE INDEX doc2dlnh_1 (lnh_f) );
20160112 16:56 CREATE TABLE IF NOT EXISTS doc2elnh (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,descp1 double,desc_1 double,descp2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,rsv char(8),PRIMARY KEY (IDX),UNIQUE INDEX doc2elnh_1 (lnh_f) );
20160112 16:59 INSERT INTO serdoc (idx,numero,serie,nome,obs,ano,rsv) VALUES(NULL,1,'','','',0,'');
20160112 16:59 UPDATE serdoc SET numero=1,serie='',nome='',obs='',ano=0,rsv='' WHERE IDX=1 LIMIT 1;
20160112 16:59 UPDATE serdoc SET numero=1,serie='A',nome='SERIE A',obs='',ano=0,rsv='' WHERE IDX=1 LIMIT 1;
20160112 17:00 INSERT INTO serdoc (idx,numero,serie,nome,obs,ano,rsv) VALUES(NULL,2,'','','',0,'');
20160112 17:00 UPDATE serdoc SET numero=2,serie='',nome='',obs='',ano=0,rsv='' WHERE IDX=2 LIMIT 1;
20160112 17:00 UPDATE serdoc SET numero=2,serie='B',nome='Serie B',obs='',ano=0,rsv='' WHERE IDX=2 LIMIT 1;
20160112 17:00 INSERT INTO serdoc (idx,numero,serie,nome,obs,ano,rsv) VALUES(NULL,3,'','','',0,'');
20160112 17:00 UPDATE serdoc SET numero=3,serie='',nome='',obs='',ano=0,rsv='' WHERE IDX=3 LIMIT 1;
20160112 17:00 UPDATE serdoc SET numero=3,serie='C',nome='Serie C',obs='',ano=0,rsv='' WHERE IDX=3 LIMIT 1;
20160113 10:21 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160113 10:21 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160113 10:25 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-cirs',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160113 10:31 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160113000000,20160113000000,20000101103100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160113 10:32 UPDATE contas_correntes_fornecedores SET linha_f=21,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='123',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160113 10:32 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=14,codigo='3',designacao='teste 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='I',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=33 LIMIT 1;
20160113 10:32 UPDATE contas_correntes_fornecedores SET linha_f=21,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='123',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160113 10:32 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 UPDATE contas_correntes_fornecedores SET linha_f=21,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='123',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160113 10:32 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 UPDATE contas_correntes_fornecedores SET linha_f=21,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='123',obs='',valor=0.31,pendente=0.31,deb_cred='C',debito=0.00,credito=0.31,acumulado=0.00,val_iva=0.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160113 10:32 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20160113000000,00000000000000,20000101103200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20160113000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20160113 10:32 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquidacao',3,20160113000000,20160113000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20160113 10:32 UPDATE documento_r2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:32 UPDATE documento_d10 SET linhas=2,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='123',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171600,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.25,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.31,val_pend=0.00,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,3,'D',10,'V/ Fatura',14,20150414000000,20150414000000,'123','C',0.31,0.31,0.31,0.000,0.00,0.31,0.06,0.00,0,'A',0.25,0.06,0.31,0.25,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.06,0.00,0.00,0.00,0,'');
20160113 10:32 UPDATE reciboslinhas02 SET linha=5,cor=0,no=3,doc_mov='D',tp=10,document='V/ Fatura',n_doc=14,d_doc=20150414000000,d_venc=20150414000000,ref='123',deb_cred='C',val_doc=0.31,val_pend=0.31,val_liqu=0.31,per_desc=0.000,val_desc=0.00,val_rec=0.31,val_iva=0.06,irs=0.00,prest=0,serdoc='A',tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,suj_valor0=0.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=56 LIMIT 1;
20160113 10:32 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=3,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=0.31,pendente=0.31,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 UPDATE documento_r2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.31,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:32 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=3,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=0.31,pendente=0.31,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=21 LIMIT 1;
20160113 10:32 UPDATE documento_r2 SET linhas=1,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.31,tot_desconto=0.00,tot_liquido=0.25,tot_iva=0.06,tot_valor=0.31,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:32 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,15,0,'',0,0,'',20160113000000,20160113000000,20000101103200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160113 10:32 UPDATE documento_d10 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:32 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,15,'','WEFWFWR','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160113 10:32 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=15,codigo='',designacao='WEFWFWR',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=35 LIMIT 1;
20160113 10:32 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=15,codigo='',designacao='WEFWFWR',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=35 LIMIT 1;
20160113 10:33 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=15,codigo='',designacao='WEFWFWR',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=35 LIMIT 1;
20160113 10:33 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=15,codigo='',designacao='WEFWFWR',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='I',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=35 LIMIT 1;
20160113 10:33 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',15,20160113000000,20160113000000,'','',1230.00,1230.00,'C',0.00,1230.00,0.00,230.00,0.00,1.000000,0,0,'A','');
20160113 10:33 UPDATE documento_d10 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:33 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='C',debito=0.00,credito=1230.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:33 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:33 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='C',debito=0.00,credito=1230.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:33 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:33 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='C',debito=0.00,credito=1230.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:33 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:33 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='C',debito=0.00,credito=1230.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160113 10:33 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:33 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,4,0,'',0,0,'',20160113000000,00000000000000,20000101103300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20160113000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20160113 10:33 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquidacao',4,20160113000000,20160113000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:33 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=1230.00,val_pend=0.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160113 10:33 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,4,'D',10,'V/ Fatura',15,20160113000000,20160113000000,'','C',1230.00,1230.00,1230.00,0.000,0.00,1230.00,230.00,115.00,0,'A',1000.00,230.00,1230.00,1000.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,230.00,0.00,0.00,0.00,0,'');
20160113 10:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1000.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:33 UPDATE reciboslinhas02 SET linha=5,cor=0,no=4,doc_mov='D',tp=10,document='V/ Fatura',n_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',deb_cred='C',val_doc=1230.00,val_pend=1230.00,val_liqu=1230.00,per_desc=0.000,val_desc=0.00,val_rec=1230.00,val_iva=230.00,irs=115.00,prest=0,serdoc='A',tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=57 LIMIT 1;
20160113 10:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:33 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:33 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:34 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:34 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:34 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:34 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:34 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:34 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:34 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:34 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:34 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:34 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:34 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:34 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:35 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:35 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:35 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:35 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:35 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:35 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:35 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:35 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:35 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160113 10:35 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160113 10:35 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160115 11:37 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:37 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:37 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:37 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:37 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:37 La columna 'tpdoc' en field list es desconocida
20160115 11:37 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:37 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:37 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:37 La columna 'docmov' en where clause es desconocida
20160115 11:37 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:37 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='0.6200' 
20160115 11:37 La columna 'tpdoc' en field list es desconocida
20160115 11:37 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='0.6200' 
20160115 11:37 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160115 11:38 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:38 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:38 La columna 'tpdoc' en field list es desconocida
20160115 11:38 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:38 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:38 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:38 La columna 'docmov' en where clause es desconocida
20160115 11:38 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:38 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='1.0000' 
20160115 11:38 La columna 'tpdoc' en field list es desconocida
20160115 11:38 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='1.0000' 
20160115 11:38 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='T' , mp='0' , h=now() , opr='1' , tipo='TROCO' , descricao='FATURA - RECIBO     ' , valor='-0.3800' 
20160115 11:38 La columna 'tpdoc' en field list es desconocida
20160115 11:38 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='T' , mp='0' , h=now() , opr='1' , tipo='TROCO' , descricao='FATURA - RECIBO     ' , valor='-0.3800' 
20160115 11:38 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160115 11:40 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:40 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:40 La columna 'tpdoc' en field list es desconocida
20160115 11:40 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:40 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:40 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:40 La columna 'docmov' en where clause es desconocida
20160115 11:40 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:40 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='0.6200' 
20160115 11:40 La columna 'tpdoc' en field list es desconocida
20160115 11:40 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='0.6200' 
20160115 11:40 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:40 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:41 La columna 'tpdoc' en field list es desconocida
20160115 11:41 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='0.6200' 
20160115 11:41 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:41 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:41 La columna 'docmov' en where clause es desconocida
20160115 11:41 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=19 
20160115 11:41 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='0.6200' 
20160115 11:41 La columna 'tpdoc' en field list es desconocida
20160115 11:41 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='19' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='0.6200' 
20160115 11:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160115 11:41 UPDATE documento_d1 SET convertido='0' WHERE no_doc='19' and serdoc='A' 
20160115 11:41 UPDATE documento_d1 SET linhas=1,no_doc=19,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150414000000,d_venc=20150414000000,h_doc=20000101171900,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.50,tot_desconto=0.00,tot_liquido=0.50,tot_iva=0.12,tot_valor=0.62,val_pago=0.62,val_pend=0.00,suj_valor0=0.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.12,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160115 11:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='0',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=23.0000000,marg_2=23.0000000,prc_s_iva_1=23.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=23.0000000,prc_c_iva_2=12.3000000,stock_minimo=28.290,stock=28.290,stock_maximo=0.000,no_forn=101,d_entrada=01000000000000,d_saida=02000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92',peso='10.1 kg' WHERE IDX=3 LIMIT 1;
20160115 11:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='TESTW',designacao_2='',abvr='TESTW',no_un_=0,unidade='0',armazem='0',familia='1',ultimo_custo=1.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=0.00,marg_1=23.0000000,marg_2=23.0000000,prc_s_iva_1=23.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=23.0000000,prc_c_iva_2=12.3000000,stock_minimo=28.290,stock=28.290,stock_maximo=0.000,no_forn=0,d_entrada=10010000000000,d_saida=01000000000000,baixa='0',lnh_obs='0',stock2=0.00,lnh_emb='0',lnh_prom='0',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='0',marg_3='0',prc_s_iva_3='3',prc_c_iva_3='3.69',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92',peso='10.1 kg' WHERE IDX=3 LIMIT 1;
20160115 11:48 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_linhas_D1 as b left join  Documento_D1 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_linhas_D2 as b left join  Documento_D2 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_linhas_D3 as b left join  Documento_D3 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_linhas_D6 as b left join  Documento_D6 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),8 FROM  Documento_linhas_D8 as b left join  Documento_D8 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),9 FROM  Documento_linhas_D9 as b left join  Documento_D9 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_linhas_D10 as b left join  Documento_D10 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_linhas_D18 as b left join  Documento_D18 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_linhas_D20 as b left join  Documento_D20 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:48 CREATE TABLE IF NOT EXISTS prodd_lin2 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num int,codigo char(16),nome char(42),qtd double,n_arm int(5),lnh_o int(5),preco double,rsv char(43),PRIMARY KEY (IDX),UNIQUE INDEX prodd_lin2_1 (num,lnh_f) );
20160115 11:48 INSERT INTO tmp (codigo,sai,doc) SELECT l.codigo,sum(l.qtd) as qtd,219 FROM  prodd_lin2 as l left Join prodo as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:48 Tabla 'empdemo.prodo' no existe
20160115 11:48 INSERT INTO tmp (codigo,sai,doc) SELECT l.codigo,sum(l.qtd) as qtd,219 FROM  prodd_lin2 as l left Join prodo as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT l.codigo,sum(l.qtd) as qtd,209 FROM  prode_lin as l left Join prode as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:48 Tabla 'empdemo.prode_lin' no existe
20160115 11:48 INSERT INTO tmp (codigo,ent,doc) SELECT l.codigo,sum(l.qtd) as qtd,209 FROM  prode_lin as l left Join prode as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:49 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_linhas_D1 as b left join  Documento_D1 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_linhas_D2 as b left join  Documento_D2 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_linhas_D3 as b left join  Documento_D3 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_linhas_D6 as b left join  Documento_D6 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),8 FROM  Documento_linhas_D8 as b left join  Documento_D8 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),9 FROM  Documento_linhas_D9 as b left join  Documento_D9 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_linhas_D10 as b left join  Documento_D10 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_linhas_D18 as b left join  Documento_D18 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_linhas_D20 as b left join  Documento_D20 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160115 11:49 INSERT INTO tmp (codigo,sai,doc) SELECT l.codigo,sum(l.qtd) as qtd,219 FROM  prodd_lin2 as l left Join prodo as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:49 Tabla 'empdemo.prodo' no existe
20160115 11:49 INSERT INTO tmp (codigo,sai,doc) SELECT l.codigo,sum(l.qtd) as qtd,219 FROM  prodd_lin2 as l left Join prodo as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT l.codigo,sum(l.qtd) as qtd,209 FROM  prode_lin as l left Join prode as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:49 Tabla 'empdemo.prode_lin' no existe
20160115 11:49 INSERT INTO tmp (codigo,ent,doc) SELECT l.codigo,sum(l.qtd) as qtd,209 FROM  prode_lin as l left Join prode as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160115 11:52 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_linhas_D1 as b left join  Documento_D1 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_linhas_D2 as b left join  Documento_D2 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_linhas_D3 as b left join  Documento_D3 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_linhas_D6 as b left join  Documento_D6 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),8 FROM  Documento_linhas_D8 as b left join  Documento_D8 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),9 FROM  Documento_linhas_D9 as b left join  Documento_D9 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_linhas_D10 as b left join  Documento_D10 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_linhas_D18 as b left join  Documento_D18 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160115 11:52 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_linhas_D20 as b left join  Documento_D20 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160116 10:39 DELETE FROM artigos_composicao WHERE  cod_cab='' 
20160116 10:39 DELETE FROM artigos_armazem WHERE  codigo='' 
20160116 10:39 DELETE FROM artigos_equivalencias WHERE  codigo='' 
20160116 10:39 DELETE FROM artigos_embalagens WHERE  codigo='' 
20160116 10:39 DELETE FROM artigos_observacoes WHERE  codigo='' 
20160116 10:39 DELETE FROM artigos_hist WHERE  codigo='' 
20160116 10:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=2.3000000,prc_c_iva_1=1.5400000,prc_c_iva_2=2.8300000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20151003000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.10',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23' WHERE IDX=8 LIMIT 1;
20160118 17:46 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_linhas_D1 as b left join  Documento_D1 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_linhas_D2 as b left join  Documento_D2 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_linhas_D3 as b left join  Documento_D3 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_linhas_D6 as b left join  Documento_D6 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),8 FROM  Documento_linhas_D8 as b left join  Documento_D8 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),9 FROM  Documento_linhas_D9 as b left join  Documento_D9 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_linhas_D10 as b left join  Documento_D10 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_linhas_D18 as b left join  Documento_D18 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_linhas_D20 as b left join  Documento_D20 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20160118 17:46 INSERT INTO tmp (codigo,sai,doc) SELECT l.codigo,sum(l.qtd) as qtd,219 FROM  prodd_lin2 as l left Join prodo as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160118 17:46 Tabla 'empdemo.prodo' no existe
20160118 17:46 INSERT INTO tmp (codigo,sai,doc) SELECT l.codigo,sum(l.qtd) as qtd,219 FROM  prodd_lin2 as l left Join prodo as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT l.codigo,sum(l.qtd) as qtd,209 FROM  prode_lin as l left Join prode as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160118 17:46 Tabla 'empdemo.prode_lin' no existe
20160118 17:46 INSERT INTO tmp (codigo,ent,doc) SELECT l.codigo,sum(l.qtd) as qtd,209 FROM  prode_lin as l left Join prode as c using (num) WHERE c.d_doc>='20000101' AND length(l.codigo)>0 AND l.qtd<>0 GROUP BY l.codigo
20160118 17:46 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160118 17:46 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160118 17:46 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160118 17:46 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160118 17:46 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160118 17:46 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160118 17:46 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160118 17:46 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160118 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-295.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150422000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5.00',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20160118 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='ARTIGO 2',designacao_2='',abvr='ARTIGO 2',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=5.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=6.1500000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=-295.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20150422000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5.00',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4.00',prc_c_iva_4='4.92' WHERE IDX=9 LIMIT 1;
20160119 10:13 TRUNCATE TABLE documento_D1
20160119 10:13 TRUNCATE TABLE documento_linhas_D1
20160119 10:13 TRUNCATE TABLE documento_D1_a_hash
20160119 10:13 TRUNCATE TABLE documento_D2
20160119 10:13 TRUNCATE TABLE documento_linhas_D2
20160119 10:13 TRUNCATE TABLE documento_D2_a_hash
20160119 10:13 TRUNCATE TABLE documento_D3
20160119 10:13 TRUNCATE TABLE documento_linhas_D3
20160119 10:13 TRUNCATE TABLE documento_D3_a_hash
20160119 10:13 TRUNCATE TABLE documento_D5
20160119 10:13 TRUNCATE TABLE documento_linhas_D5
20160119 10:13 TRUNCATE TABLE documento_D5_a_hash
20160119 10:13 TRUNCATE TABLE documento_D6
20160119 10:13 TRUNCATE TABLE documento_linhas_D6
20160119 10:13 TRUNCATE TABLE documento_D6_a_hash
20160119 10:13 TRUNCATE TABLE documento_D7
20160119 10:13 TRUNCATE TABLE documento_linhas_D7
20160119 10:13 TRUNCATE TABLE documento_D7_a_hash
20160119 10:13 TRUNCATE TABLE documento_D8
20160119 10:13 TRUNCATE TABLE documento_linhas_D8
20160119 10:13 TRUNCATE TABLE documento_D8_a_hash
20160119 10:13 TRUNCATE TABLE documento_D9
20160119 10:13 TRUNCATE TABLE documento_linhas_D9
20160119 10:13 TRUNCATE TABLE documento_D9_a_hash
20160119 10:13 TRUNCATE TABLE documento_D10
20160119 10:13 TRUNCATE TABLE documento_linhas_D10
20160119 10:13 TRUNCATE TABLE documento_D10_a_hash
20160119 10:13 TRUNCATE TABLE documento_D11
20160119 10:13 TRUNCATE TABLE documento_linhas_D11
20160119 10:13 TRUNCATE TABLE documento_D11_a_hash
20160119 10:13 TRUNCATE TABLE documento_D12
20160119 10:13 TRUNCATE TABLE documento_linhas_D12
20160119 10:13 TRUNCATE TABLE documento_D12_a_hash
20160119 10:13 TRUNCATE TABLE documento_D13
20160119 10:13 TRUNCATE TABLE documento_linhas_D13
20160119 10:13 TRUNCATE TABLE documento_D13_a_hash
20160119 10:13 TRUNCATE TABLE documento_D14
20160119 10:13 TRUNCATE TABLE documento_linhas_D14
20160119 10:13 TRUNCATE TABLE documento_D14_a_hash
20160119 10:13 TRUNCATE TABLE documento_D15
20160119 10:13 TRUNCATE TABLE documento_linhas_D15
20160119 10:13 TRUNCATE TABLE documento_D15_a_hash
20160119 10:13 Tabla 'emp0001.documento_d15_a_hash' no existe
20160119 10:13 TRUNCATE TABLE documento_D15_a_hash
20160119 10:13 TRUNCATE TABLE documento_D16
20160119 10:13 TRUNCATE TABLE documento_linhas_D16
20160119 10:13 TRUNCATE TABLE documento_D16_a_hash
20160119 10:13 TRUNCATE TABLE documento_D17
20160119 10:13 TRUNCATE TABLE documento_linhas_D17
20160119 10:13 TRUNCATE TABLE documento_D17_a_hash
20160119 10:13 Tabla 'emp0001.documento_d17_a_hash' no existe
20160119 10:13 TRUNCATE TABLE documento_D17_a_hash
20160119 10:13 TRUNCATE TABLE documento_D18
20160119 10:13 TRUNCATE TABLE documento_linhas_D18
20160119 10:13 TRUNCATE TABLE documento_D18_a_hash
20160119 10:13 Tabla 'emp0001.documento_d18_a_hash' no existe
20160119 10:13 TRUNCATE TABLE documento_D18_a_hash
20160119 10:13 TRUNCATE TABLE documento_D20
20160119 10:13 TRUNCATE TABLE documento_linhas_D20
20160119 10:13 TRUNCATE TABLE documento_D20_a_hash
20160119 10:13 TRUNCATE TABLE documento_R1
20160119 10:13 TRUNCATE TABLE reciboslinhas01
20160119 10:13 TRUNCATE TABLE documento_R2
20160119 10:13 TRUNCATE TABLE reciboslinhas02
20160119 10:13 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101101300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160119 10:13 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101101300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:14 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101101400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160119 10:14 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101101400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:14 INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101101400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160119 10:14 UPDATE documento_d7 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101101400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:14 INSERT INTO documento_d6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101101400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160119 10:14 UPDATE documento_d6 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101101400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:15 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,00000000000000,20000101101500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20160119000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20160119 10:15 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101101500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160119 10:15 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101101500,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:15 INSERT INTO documento_d13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,20001231000000,20000101101500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160119 10:15 UPDATE documento_d13 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101101500,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:15 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,00000000000000,20000101101500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20160119000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20160119 10:15 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=00000000000000,h_doc=20000101101500,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160119000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160119 10:15 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),8 FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),9 FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_D18 as a left join  Documento_linhas_D18 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160119 10:15 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc  and a.serdoc=b.serdoc)   Left join tmpi as c ON c.codigo=b.codigo  WHERE a.d_doc>=20000101 AND (a.d_doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' GROUP BY codigo
20160126 17:39 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160126 17:39 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160126 17:39 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160126 17:39 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160201 17:34 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,20,0,'',0,0,'',20160201000000,20160201000000,20000101173400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160201 17:34 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160201 17:34 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4) VALUES(NULL,0,0,0,0,'ARTCOD','ARTCOD','DESIGNACAO DO PRODUTO','','DESIGNACAO DO',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,100.0000000,0.0000000,123.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','0','5.00','6.15','0','4.00','4.92');
20160201 17:34 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160201 17:34 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ARTCOD',codigo2='ARTCOD',designacao_1='DESIGNACAO DO PRODUTO',designacao_2='',abvr='DESIGNACAO DO',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160201000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='5',prc_c_iva_3='6.15',marg_4='0',prc_s_iva_4='4',prc_c_iva_4='4.92' WHERE IDX=11 LIMIT 1;
20160201 17:34 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,20,'ARTCOD','DESIGNACAO DO PRODUTO','','',1.000000,100.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,100.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160201 17:38 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160203 12:46 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20160203 12:47 SELECT atdoccodeid from guiaat where numero='D7 A/14'
20160203 12:47 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='docsi4',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de debito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi4',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi4',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi4',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi4',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20160203 12:47 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='G. Devolucao Forn.',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20160203 12:48 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20160203 12:48 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSG',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20160203 12:48 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi4',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi4',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='G. Devolucao Forn.',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20160203 12:49 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsg',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='G. Devolucao Forn.',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20160203 12:50 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:50 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:50 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20160203 12:50 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='docsi4',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsi4',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF2',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF2',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF2',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF2',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:55 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSI3',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF2',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF2',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=12,designacao='N. D�BITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='N',ecr='DOCSF2',abvr='ND',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de debito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='DOCSF2',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='DOCSF2',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20160203 12:56 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20160203 12:56 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160203 12:56 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160203 12:56 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160203 12:56 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160203 12:58 TRUNCATE TABLE documento_D1
20160203 12:58 TRUNCATE TABLE documento_linhas_D1
20160203 12:58 TRUNCATE TABLE documento_D1_a_hash
20160203 12:58 TRUNCATE TABLE documento_D2
20160203 12:58 TRUNCATE TABLE documento_linhas_D2
20160203 12:58 TRUNCATE TABLE documento_D2_a_hash
20160203 12:58 TRUNCATE TABLE documento_D3
20160203 12:58 TRUNCATE TABLE documento_linhas_D3
20160203 12:58 TRUNCATE TABLE documento_D3_a_hash
20160203 12:58 TRUNCATE TABLE documento_D5
20160203 12:58 TRUNCATE TABLE documento_linhas_D5
20160203 12:58 TRUNCATE TABLE documento_D5_a_hash
20160203 12:58 TRUNCATE TABLE documento_D6
20160203 12:58 TRUNCATE TABLE documento_linhas_D6
20160203 12:58 TRUNCATE TABLE documento_D6_a_hash
20160203 12:58 TRUNCATE TABLE documento_D7
20160203 12:58 TRUNCATE TABLE documento_linhas_D7
20160203 12:58 TRUNCATE TABLE documento_D7_a_hash
20160203 12:58 TRUNCATE TABLE documento_D8
20160203 12:58 TRUNCATE TABLE documento_linhas_D8
20160203 12:58 TRUNCATE TABLE documento_D8_a_hash
20160203 12:58 TRUNCATE TABLE documento_D9
20160203 12:58 TRUNCATE TABLE documento_linhas_D9
20160203 12:58 TRUNCATE TABLE documento_D9_a_hash
20160203 12:58 TRUNCATE TABLE documento_D10
20160203 12:58 TRUNCATE TABLE documento_linhas_D10
20160203 12:58 TRUNCATE TABLE documento_D10_a_hash
20160203 12:58 TRUNCATE TABLE documento_D11
20160203 12:58 TRUNCATE TABLE documento_linhas_D11
20160203 12:58 TRUNCATE TABLE documento_D11_a_hash
20160203 12:58 TRUNCATE TABLE documento_D13
20160203 12:58 TRUNCATE TABLE documento_linhas_D13
20160203 12:58 TRUNCATE TABLE documento_D13_a_hash
20160203 12:58 TRUNCATE TABLE documento_D14
20160203 12:58 TRUNCATE TABLE documento_linhas_D14
20160203 12:58 TRUNCATE TABLE documento_D14_a_hash
20160203 12:58 TRUNCATE TABLE documento_D15
20160203 12:58 TRUNCATE TABLE documento_linhas_D15
20160203 12:58 TRUNCATE TABLE documento_D15_a_hash
20160203 12:58 Tabla 'emp0001.documento_d15_a_hash' no existe
20160203 12:58 TRUNCATE TABLE documento_D15_a_hash
20160203 12:58 TRUNCATE TABLE documento_D16
20160203 12:58 TRUNCATE TABLE documento_linhas_D16
20160203 12:58 TRUNCATE TABLE documento_D16_a_hash
20160203 12:58 TRUNCATE TABLE documento_D17
20160203 12:58 TRUNCATE TABLE documento_linhas_D17
20160203 12:58 TRUNCATE TABLE documento_D17_a_hash
20160203 12:58 Tabla 'emp0001.documento_d17_a_hash' no existe
20160203 12:58 TRUNCATE TABLE documento_D17_a_hash
20160203 12:58 TRUNCATE TABLE documento_D18
20160203 12:58 TRUNCATE TABLE documento_linhas_D18
20160203 12:58 TRUNCATE TABLE documento_D18_a_hash
20160203 12:58 Tabla 'emp0001.documento_d18_a_hash' no existe
20160203 12:58 TRUNCATE TABLE documento_D18_a_hash
20160203 12:58 TRUNCATE TABLE documento_D20
20160203 12:58 TRUNCATE TABLE documento_linhas_D20
20160203 12:58 TRUNCATE TABLE documento_D20_a_hash
20160203 12:58 TRUNCATE TABLE documento_R1
20160203 12:58 TRUNCATE TABLE reciboslinhas01
20160203 12:58 TRUNCATE TABLE documento_R2
20160203 12:58 TRUNCATE TABLE reciboslinhas02
20160203 12:58 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160203000000,20160203000000,20000101125800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160203 12:59 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160203000000,d_venc=20160203000000,h_doc=20000101125800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160203 12:59 DELETE FROM documento_linhas_d2 WHERE  num_doc=1  AND  serdoc='a' 
20160203 12:59 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160203000000,20160203000000,20000101125900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160203 12:59 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160203000000,d_venc=20160203000000,h_doc=20000101125900,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160203 12:59 DELETE FROM documento_linhas_d2 WHERE  num_doc=1  AND  serdoc='a' 
20160226 19:19 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:19 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:19 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:19 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:19 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:19 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:19 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:19 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:20 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:20 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:20 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:20 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:20 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:20 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160226 19:20 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160226 19:20 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160307 18:05 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160307 18:05 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160308 12:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160308 12:42 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160308 12:42 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20160308 16:26 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160308000000,0,0,'',0,'','',0.00,3,0,'','','','');
20160308 16:26 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160308000000,0,0,'',0,'','',0.00,3,0,'','','','');
20160308 16:35 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160308000000,0,0,'',0,'','',0.00,3,0,'','','','');
20160308 16:36 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c-m',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:36 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c-m',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:36 INSERT INTO documento_pagamento_r1 (idx,lnh_f,cor,no_doc,conta,no_forma,des_forma,data,ref,obs,valor,transf,estado,serdoc,tpdoc,rsv) VALUES(NULL,5,0,11,1,0,'',00000000000000,'','',0.00,'','','',0,'');
20160308 16:36 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=0,des_forma='',data=00000000000000,ref='',obs='',valor=0.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:36 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=104 LIMIT 1;
20160308 16:36 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160308 16:36 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=0,des_forma='',data=20160302000000,ref='',obs='',valor=0.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:37 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=1,des_forma='Cheque',data=20160302000000,ref='',obs='',valor=0.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:37 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=1,des_forma='Cheque',data=20160302000000,ref='',obs='',valor=0.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:37 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=104 LIMIT 1;
20160308 16:37 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160308 16:37 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=1,des_forma='Cheque',data=20160302000000,ref='2121',obs='',valor=0.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:37 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=1,des_forma='Cheque',data=20160302000000,ref='2121',obs='1212',valor=0.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:37 UPDATE documento_pagamento_r1 SET lnh_f=5,cor=0,no_doc=11,conta=1,no_forma=1,des_forma='Cheque',data=20160302000000,ref='2121',obs='1212',valor=5000.00,transf='',estado='',serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160308 16:37 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=104 LIMIT 1;
20160308 16:37 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160308 16:37 UPDATE historico_contas_correntes_clientes SET linha_f=16,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20150630000000,d_venc=20150630000000,ref='',obs='',valor=1599.00,pendente=1599.00,deb_cred='C',debito=0.00,credito=1599.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=104 LIMIT 1;
20160308 16:37 UPDATE documento_r1 SET linhas=1,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160308 18:23 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:23 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160308 18:23 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160308 18:23 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docs',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160308 18:23 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:23 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:24 La columna 'tpdoc' en field list es desconocida
20160308 18:24 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:24 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:24 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:24 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:24 La columna 'tpdoc' en field list es desconocida
20160308 18:24 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:24 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:25 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:25 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:25 La columna 'tpdoc' en field list es desconocida
20160308 18:25 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:25 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:27 CREATE TABLE IF NOT EXISTS historicocaixa_00 (IDX INT NOT NULL AUTO_INCREMENT,data date,tpdoc int(5),docmov char(3),numero int,tm char(3),mp int(5),h datetime,opr int(5),tipo char(16),descricao char(32),valor double,rsv char(4),PRIMARY KEY (IDX),UNIQUE INDEX historicocaixa_00_1 (data,docmov,tpdoc,numero,mp,tm) );
20160308 18:27 CREATE TABLE IF NOT EXISTS listagens_configuraveis_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),ficheiro char(32),campo char(46),tipo int(5),ofest int(5),tam int(5),ndec int(5),max int(5),rsv char(37),PRIMARY KEY (IDX),UNIQUE INDEX listagens_configuraveis_linhas_1 (lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documento_pagamento_d9 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d9_1 (no_doc,lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documento_pagamento_d15 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d15_1 (no_doc,lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documento_pagamento_d16 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d16_1 (no_doc,lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documento_pagamento_d17 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d17_1 (no_doc,lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documento_pagamento_d18 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d18_1 (no_doc,lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentosextras09 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras09_1 (no_doc) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentosextras15 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras15_1 (no_doc) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentosextras16 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras16_1 (no_doc) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentosextras17 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras17_1 (no_doc) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentosextras18 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras18_1 (no_doc) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentoresd17 (IDX INT NOT NULL AUTO_INCREMENT,no int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),contribuinte char(17),serdoc char(7),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX documentoresd17_1 (no) );
20160308 18:27 CREATE TABLE IF NOT EXISTS documentoresd18 (IDX INT NOT NULL AUTO_INCREMENT,no int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),contribuinte char(17),serdoc char(7),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX documentoresd18_1 (no) );
20160308 18:27 CREATE TABLE IF NOT EXISTS doc2d (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),n_moed int(5),convertido int,referencia char(22),d__doc_ date,d__venc_ date,h__doc_ datetime,n_c_f int,nome_c_f char(42),descp double,linha_pre int(5),observacao char(42),n_operador int(5),n_vended_ int(5),comissao double,n__cond_pag_ int(5),cond__pagam_ char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),n_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val__pago double,val__pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d__lan_ date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,rsv char(24),PRIMARY KEY (IDX),UNIQUE INDEX doc2d_1 (linhas) );
20160308 18:27 CREATE TABLE IF NOT EXISTS doc2e (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),n_moed int(5),convertido int,referencia char(22),d__doc_ date,d__venc_ date,h__doc_ datetime,n_c_f int,nome_c_f char(42),descp double,linha_pre int(5),observacao char(42),n_operador int(5),n_vended_ int(5),comissao double,n__cond_pag_ int(5),cond__pagam_ char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),n_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val__pago double,val__pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d__lan_ date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,rsv char(24),PRIMARY KEY (IDX),UNIQUE INDEX doc2e_1 (linhas) );
20160308 18:27 CREATE TABLE IF NOT EXISTS doc2dlnh (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,descp1 double,desc_1 double,descp2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,rsv char(8),PRIMARY KEY (IDX),UNIQUE INDEX doc2dlnh_1 (lnh_f) );
20160308 18:27 CREATE TABLE IF NOT EXISTS doc2elnh (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,descp1 double,desc_1 double,descp2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,rsv char(8),PRIMARY KEY (IDX),UNIQUE INDEX doc2elnh_1 (lnh_f) );
20160308 18:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:27 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160308 18:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160308 18:27 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=20 
20160308 18:27 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='116.8000' 
20160308 18:28 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160309 15:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&',codigo2='&',designacao_1='CAL&#128;OES',designacao_2='',abvr='CAL&#128;OES',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='1234' WHERE IDX=12 LIMIT 1;
20160309 15:58 INSERT INTO etiquetas__linhas_ (idx,linha,cor,no,codigo,descricao,preco,qtd,iva,aux1,abvr,rsv) VALUES(NULL,5,0,1,'&','CAL&#128;OES',0.00,1,23.00,'','CAL&#128;OES','');
20160309 15:58 UPDATE etiquetas__linhas_ SET linha=5,cor=0,no=1,codigo='&',descricao='CAL&#128;OES',preco=0.00,qtd=1,iva=23.00,aux1='',abvr='CAL&#128;OES',rsv='' WHERE IDX=4 LIMIT 1;
20160309 15:58 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160309 15:58 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160309 15:58 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:00 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:15 INSERT INTO serdoc (idx,numero,serie,nome,obs,ano,rsv) VALUES(NULL,1,'','','',0,'');
20160309 16:15 UPDATE serdoc SET numero=1,serie='',nome='',obs='',ano=0,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:15 UPDATE serdoc SET numero=1,serie='A',nome='A',obs='A',ano=0,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:15 INSERT INTO serdoc (idx,numero,serie,nome,obs,ano,rsv) VALUES(NULL,2,'','','',0,'');
20160309 16:15 UPDATE serdoc SET numero=2,serie='B',nome='B',obs='B',ano=0,rsv='' WHERE IDX=2 LIMIT 1;
20160309 16:17 UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20160309 16:17 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20160309 16:22 INSERT INTO tipos_de_documentosb (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,pda,ivac,rsv) VALUES(NULL,5,'','','',0,'',0,'','','','','','','','','','','','','N','','',0,0,'N','','',0,'','','','','','','','','',0,'','','',0,0,'');
20160309 16:22 UPDATE tipos_de_documentosb SET numero=5,designacao='',cli_forn='',tipo_desc='',no_vias=0,ficheiro='',porta=0,flg_cco='',ctrl_seq='',mov_stock='',ecr='',abvr='',mov_finan='',carta_anexo='',extras='',des_cco='',cco_banco='',mov_caixa='',act_preco='',edt_temp='N',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=5,designacao='DESPESAS BANCARIAS',cli_forn='',tipo_desc='',no_vias=1,ficheiro='',porta=0,flg_cco='D',ctrl_seq='C',mov_stock='',ecr='',abvr='DB',mov_finan='',carta_anexo='',extras='',des_cco='Despesas bancarias',cco_banco='',mov_caixa='',act_preco='',edt_temp='N',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=5,designacao='DESPESAS BANCARIAS',cli_forn='',tipo_desc='',no_vias=1,ficheiro='',porta=0,flg_cco='D',ctrl_seq='C',mov_stock='',ecr='',abvr='DB',mov_finan='',carta_anexo='',extras='',des_cco='Despesas bancarias',cco_banco='',mov_caixa='',act_preco='',edt_temp='N',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=3,designacao='DEPźSITO',cli_forn='',tipo_desc='',no_vias=1,ficheiro='',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='',ecr='BMOVS',abvr='DE',mov_finan='',carta_anexo='',extras='',des_cco='DEPźSITO',cco_banco='',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=4,designacao='TRANSFER‰NCIA',cli_forn='',tipo_desc='',no_vias=1,ficheiro='',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='',ecr='BMOVS-T',abvr='TR',mov_finan='',carta_anexo='',extras='',des_cco='TRANSFER‰NCIA',cco_banco='',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=5,designacao='DESPESAS BANCARIAS',cli_forn='',tipo_desc='',no_vias=1,ficheiro='BMOVS',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='',ecr='BMOVS',abvr='DB',mov_finan='',carta_anexo='',extras='',des_cco='Despesas bancarias',cco_banco='',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=5,designacao='DESPESAS BANCARIAS',cli_forn='',tipo_desc='',no_vias=1,ficheiro='BMOVS',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='',ecr='BMOVS',abvr='DB',mov_finan='',carta_anexo='',extras='',des_cco='Despesas bancarias',cco_banco='',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160309 16:23 UPDATE tipos_de_documentosb SET numero=5,designacao='DESPESAS BANCARIAS',cli_forn='',tipo_desc='',no_vias=1,ficheiro='BMOVS',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='',ecr='BMOVS',abvr='DB',mov_finan='',carta_anexo='',extras='',des_cco='Despesas bancarias',cco_banco='',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='N',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='',hash='',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160309 16:23 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,5,0,'','','','');
20160309 16:23 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,5,0,'','','','');
20160309 16:23 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160309 16:23 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='123.0000' 
20160309 16:23 UPDATE documento_d1 SET convertido='0' WHERE no_doc='20' and serdoc='A' 
20160309 16:23 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=20 
20160309 16:23 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='20' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='98.4000' 
20160309 16:24 UPDATE documento_d1 SET linhas=0,no_doc=20,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160201000000,d_venc=20160201000000,h_doc=20000101173400,no_cf=0,nome_cf='NOME DO SEU CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160309 16:24 UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20160309 16:24 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20160309 16:24 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,5,0,'','','','');
20160309 16:25 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,5,0,'','','','');
20160309 16:25 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,3,0,'','','','');
20160309 16:26 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),d_doc date,n_operador int(5),cont_org int(5),ref_conta char(22),cont_dest int(5),ref_conta2 char(22),observacao char(42),tot_valor double,tipo int(5),clinum int,clinome char(51),prazo int(5),data2 date,rsv char(14),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_1 (tipo,n_doc) );
20160309 16:26 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc2 int,linha int(5),estado char(3),tipo int(5),rsv char(25),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (no_doc,lnh_f) );
20160309 16:26 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,5,0,'','','','');
20160309 16:26 UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
20160309 16:26 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:26 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,1,0,'',20160302000000,'',0.00,'',0,00000000000000,'',0,0,0,'',5,'');
20160309 16:27 UPDATE contas_bancarias set debito='48.0000',credito='0.0000',saldo='-48.0000' where no=1 
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20160302000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=5,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20160302000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=5,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20160302000000,ref='ghy',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=5,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20160302000000,ref='ghy',valor=10.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=5,rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE contas_bancarias set debito='10.0000',credito='0.0000',saldo='-10.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=10.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE contas_bancarias set debito='10.0000',credito='0.0000',saldo='-10.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=10.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20160309 16:27 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20160309000000,0,0,'',0,'','',0.00,3,0,'','','','');
20160309 16:27 UPDATE contas_bancarias set debito='10.0000',credito='0.0000',saldo='-10.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20160309 16:27 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,1,0,'',20160302000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20160309 16:27 UPDATE contas_bancarias set debito='10.0000',credito='0.0000',saldo='-10.0000' where no=1 
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20160309 16:27 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20160309000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20160309 16:53 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n__doc int,emitido int(5),anulado char(3),d__doc_ date,n__operador int(5),cont_org int(5),ref_conta char(22),cont_dest int(5),ref_conta2 char(22),observacao char(42),tot_valor double,rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_1 (linhas) );
20160309 16:53 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d__form date,ref char(22),valor double,transf char(3),conta int(5),d__mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160309 16:53 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d__form date,ref char(22),valor double,transf char(3),conta int(5),d__mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160309 16:53 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d__form date,ref char(22),valor double,transf char(3),conta int(5),d__mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160309 16:55 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),d_doc_ date,n_operador int(5),cont_org int(5),ref_conta char(22),cont_dest int(5),ref_conta2 char(22),observacao char(42),tot_valor double,rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_1 (linhas) );
20160309 16:55 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160309 16:55 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160309 16:55 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160309 17:00 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:00 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:00 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:44 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:44 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:44 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:44 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:45 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:45 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:46 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:46 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:48 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:48 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:54 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:54 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:57 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:57 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:57 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 17:58 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 17:58 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160309 18:00 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160309 18:00 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160314 18:59 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160315 16:45 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 16:45 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 16:46 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 16:46 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 16:46 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 16:46 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 16:47 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 16:47 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 17:10 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 17:10 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 17:16 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 17:16 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 17:16 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 17:16 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=2,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 17:16 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 17:18 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 17:18 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 17:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160315 17:20 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160315 18:37 UPDATE documento_r1 SET linhas=1,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160315 18:39 UPDATE documento_r1 SET linhas=1,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160315 18:40 UPDATE documento_r1 SET linhas=1,no_doc=11,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20150630000000,d_venc=20150630000000,h_doc=20000101123000,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=4,des_fp='MULTIBANCO',com_fp='',no_banco=0,nome_banco='',tot_material=1599.00,tot_desconto=0.00,tot_liquido=1599.00,tot_iva=0.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20150630000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160317 17:58 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160317 17:58 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160317 17:58 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160317 17:59 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160317 17:59 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160317 18:07 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160317 18:07 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160317 18:09 UPDATE documento_d2 SET convertido='0' WHERE no_doc='91' and serdoc='A' 
20160317 18:09 UPDATE documento_d2 SET linhas=1,no_doc=91,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20150728000000,d_venc=20150827000000,h_doc=20000101121300,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.00,tot_desconto=0.00,tot_liquido=20.00,tot_iva=4.60,tot_valor=24.60,val_pago=0.00,val_pend=24.60,suj_valor0=20.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=112 LIMIT 1;
20160318 17:05 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'121512','121512','ascdsxv','','ascdsxv',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,10.0000000,0.0000000,12.3000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160318 17:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121512',codigo2='121512',designacao_1='ascdsxv',designacao_2='',abvr='ascdsxv',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160113000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8788 LIMIT 1;
20160318 17:05 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,15,'121512','ascdsxv','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160318 17:05 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=1230.00,val_pend=0.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='121512',codigo2='121512',designacao_1='ascdsxv',designacao_2='',abvr='ascdsxv',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160113000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8788 LIMIT 1;
20160318 17:05 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=1230.00,val_pend=0.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:05 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=1230.00,val_pend=0.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:08 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'2254','2254','fnkjdsbfjkdsbg','','fnkjdsbfjkdsbg',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,1.0000000,0.0000000,1.2300000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160318 17:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2254',codigo2='2254',designacao_1='fnkjdsbfjkdsbg',designacao_2='',abvr='fnkjdsbfjkdsbg',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160113000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8789 LIMIT 1;
20160318 17:08 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,15,'2254','fnkjdsbfjkdsbg','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160318 17:08 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'2254',1,'FORNECWSOE N. 1',10.00,0.00,0.00,20160113000000,'');
20160318 17:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2254',codigo2='2254',designacao_1='fnkjdsbfjkdsbg',designacao_2='',abvr='fnkjdsbfjkdsbg',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=10.0000000,custo_medio=10.0000000,valor_medio=10.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=10.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=12.3000000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160113000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8789 LIMIT 1;
20160318 17:08 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=15,codigo='2254',designacao='fnkjdsbfjkdsbg',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=37 LIMIT 1;
20160318 17:08 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',15,20160113000000,20160113000000,'','',1242.30,12.30,'C',0.00,12.30,0.00,232.30,0.00,1.000000,0,0,'A','');
20160318 17:08 UPDATE documento_d10 SET linhas=1,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1010.00,tot_desconto=0.00,tot_liquido=1010.00,tot_iva=232.30,tot_valor=1242.30,val_pago=1230.00,val_pend=12.30,suj_valor0=1010.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=232.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:08 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1242.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=232.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160318 17:08 UPDATE documento_d10 SET linhas=2,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1010.00,tot_desconto=0.00,tot_liquido=1010.00,tot_iva=232.30,tot_valor=1242.30,val_pago=1230.00,val_pend=12.30,suj_valor0=1010.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=232.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:08 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1242.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=232.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160318 17:08 UPDATE documento_d10 SET linhas=2,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1010.00,tot_desconto=0.00,tot_liquido=1010.00,tot_iva=232.30,tot_valor=1242.30,val_pago=1230.00,val_pend=12.30,suj_valor0=1010.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=232.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:09 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1242.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=232.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160318 17:09 UPDATE documento_d10 SET linhas=2,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1010.00,tot_desconto=0.00,tot_liquido=1010.00,tot_iva=232.30,tot_valor=1242.30,val_pago=1230.00,val_pend=12.30,suj_valor0=1010.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=232.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160318 17:47 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,92,0,'',0,0,'',20160318000000,20160318000000,20000101174700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160318 17:47 UPDATE documento_d2 SET linhas=0,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,30,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,35,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,40,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,45,0,92,'','BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:48 UPDATE documento_d2 SET linhas=0,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:48 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:48 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:48 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'BANANA','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160318 17:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:49 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,5,0,'BANANA','','TEM PELO','');
20160318 17:49 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,10,0,'BANANA','','TEM COR','');
20160318 17:49 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,15,0,'BANANA','','TEM BANANANA','');
20160318 17:49 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,20,0,'BANANA','','BANAIXA DA BOA','');
20160318 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:49 INSERT INTO artigos_observacoes (idx,linha,cor,codigo,cod_obs,des_obs,rsv) VALUES(NULL,25,0,'BANANA','','DASDASDAD','');
20160318 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8790 LIMIT 1;
20160318 17:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=92,codigo='',designacao='BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=198 LIMIT 1;
20160318 17:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=92,codigo='',designacao='BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN',unidade='',com_iva='',quantidade=1.000000,preco_unit=122.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=122.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=198 LIMIT 1;
20160318 17:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=92,codigo='',designacao='BANAN COM ANAMNANSD S KDSNFMD SF,MNDSFKN',unidade='',com_iva='',quantidade=1.000000,preco_unit=122.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=122.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=198 LIMIT 1;
20160318 17:49 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',92,20160318000000,20160318000000,'','',150.06,150.06,'D',150.06,0.00,0.00,28.06,0.00,1.000000,0,0,'A','');
20160318 17:49 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:49 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=92,d_doc=20160318000000,d_venc=20160318000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20160318 17:49 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:49 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=92,d_doc=20160318000000,d_venc=20160318000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20160318 17:49 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:49 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=92,d_doc=20160318000000,d_venc=20160318000000,ref='',obs='',valor=150.06,pendente=150.06,deb_cred='D',debito=150.06,credito=0.00,acumulado=0.00,val_iva=28.06,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=76 LIMIT 1;
20160318 17:49 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 17:49 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,93,0,'',0,0,'',20160318000000,20160318000000,20000101174900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160318 17:49 UPDATE documento_d2 SET linhas=0,no_doc=93,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160417000000,h_doc=20000101174900,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=114 LIMIT 1;
20160318 17:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,93,'BANANA','BANANA DA BOA','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,93,'','TEM PELO','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,93,'','TEM COR','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,93,'','TEM BANANANA','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,93,'','BANAIXA DA BOA','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 17:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,30,0,93,'','DASDASDAD','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160318 18:08 UPDATE documento_d2 SET linhas=0,no_doc=93,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160417000000,h_doc=20000101174900,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=114 LIMIT 1;
20160318 18:08 UPDATE documento_d2 SET convertido='0' WHERE no_doc='92' and serdoc='A' 
20160318 18:08 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160318 19:09 UPDATE documento_d2 SET convertido='0' WHERE no_doc='92' and serdoc='A' 
20160318 19:09 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160322 14:50 UPDATE documento_d2 SET linhas=0,no_doc=93,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160417000000,h_doc=20000101174900,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=114 LIMIT 1;
20160322 14:50 UPDATE documento_d2 SET linhas=0,no_doc=93,emitido=0,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160417000000,h_doc=20000101174900,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=114 LIMIT 1;
20160322 14:50 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='BANANA',codigo2='BANANA',designacao_1='BANANA DA BOA',designacao_2='',abvr='BANANA DA BOA',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=12.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=14.7600000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8790 LIMIT 1;
20160322 14:50 DELETE FROM documento_linhas_d2 WHERE  num_doc=93  AND  serdoc='a' 
20160322 14:50 UPDATE documento_d2 SET convertido='0' WHERE no_doc='92' and serdoc='A' 
20160322 14:50 UPDATE documento_d2 SET linhas=9,no_doc=92,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160318000000,d_venc=20160318000000,h_doc=20000101174700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=122.00,tot_desconto=0.00,tot_liquido=122.00,tot_iva=28.06,tot_valor=150.06,val_pago=0.00,val_pend=150.06,suj_valor0=122.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.06,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=113 LIMIT 1;
20160322 16:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='92' and serdoc='A' 
20160322 16:14 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,93,0,'',0,0,'',20160322000000,20160322000000,20000101161400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160322 16:14 UPDATE documento_d2 SET linhas=0,no_doc=93,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160322 16:14 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,93,'','ZSSCSZXV','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160322 16:14 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=93,codigo='',designacao='ZSSCSZXV',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=213 LIMIT 1;
20160322 16:14 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=93,codigo='',designacao='ZSSCSZXV',unidade='',com_iva='',quantidade=1.000000,preco_unit=121.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=121.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=213 LIMIT 1;
20160322 16:14 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=93,codigo='',designacao='ZSSCSZXV',unidade='',com_iva='',quantidade=1.000000,preco_unit=121.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=121.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=213 LIMIT 1;
20160322 16:14 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',93,20160322000000,20160322000000,'','',148.83,148.83,'D',148.83,0.00,0.00,27.83,0.00,1.000000,0,0,'A','');
20160322 16:14 UPDATE documento_d2 SET linhas=0,no_doc=93,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160322 16:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=93,d_doc=20160322000000,d_venc=20160322000000,ref='',obs='',valor=148.83,pendente=148.83,deb_cred='D',debito=148.83,credito=0.00,acumulado=0.00,val_iva=27.83,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=77 LIMIT 1;
20160322 16:14 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160322 16:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=93,d_doc=20160322000000,d_venc=20160322000000,ref='',obs='',valor=148.83,pendente=148.83,deb_cred='D',debito=148.83,credito=0.00,acumulado=0.00,val_iva=27.83,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=77 LIMIT 1;
20160322 16:14 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160322 16:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=93,d_doc=20160322000000,d_venc=20160322000000,ref='',obs='',valor=148.83,pendente=148.83,deb_cred='D',debito=148.83,credito=0.00,acumulado=0.00,val_iva=27.83,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=77 LIMIT 1;
20160322 16:14 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160322 16:14 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160322 16:48 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160322 16:48 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160323 13:19 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160323 13:19 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160330 14:37 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160330 14:37 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160331 13:26 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160331 13:26 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160401 15:51 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160401 15:51 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160406 18:55 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Fatura',15,20160113000000,20160113000000,'','',1242.30,12.30,'C',0.00,12.30,0.00,232.30,0.00,1.000000,0,0,'A','');
20160406 18:55 UPDATE documento_d10 SET linhas=2,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1010.00,tot_desconto=0.00,tot_liquido=1010.00,tot_iva=232.30,tot_valor=1242.30,val_pago=1230.00,val_pend=12.30,suj_valor0=1010.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=232.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160408 16:50 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160408 16:50 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160408 18:52 UPDATE documento_d2 SET convertido='0' WHERE no_doc='93' and serdoc='A' 
20160408 18:52 UPDATE documento_d2 SET linhas=1,no_doc=93,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160322000000,d_venc=20160322000000,h_doc=20000101161400,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=121.00,tot_desconto=0.00,tot_liquido=121.00,tot_iva=27.83,tot_valor=148.83,val_pago=0.00,val_pend=148.83,suj_valor0=121.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=115 LIMIT 1;
20160411 15:23 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 15:23 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='S',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:55 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,21,0,'',0,0,'',20160411000000,20160411000000,20000101175500,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160411 17:55 UPDATE documento_d1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=14 LIMIT 1;
20160411 17:56 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,21,'&#35;','CASACO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 17:56 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=21,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=69 LIMIT 1;
20160411 17:56 UPDATE documento_d1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 17:56 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=21,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=69 LIMIT 1;
20160411 17:56 UPDATE documento_d1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 17:56 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=21,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=3.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=30.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=69 LIMIT 1;
20160411 17:56 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,50,0,1,'&#35;','CASACO',10.00,0.00,'',21,20160411000000,0.00,'');
20160411 17:56 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:56 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:57 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:57 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='21' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='30.0000' 
20160411 17:57 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:57 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=21 
20160411 17:57 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='21' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='30.0000' 
20160411 17:57 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsc2',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160411 17:57 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20160411 18:01 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160411 18:01 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,22,0,'',0,0,'',20160411000000,20160411000000,20000101180100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160411 18:01 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:01 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:01 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:02 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:02 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,94,0,'',0,0,'',20160411000000,20160411000000,20000101180200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160411 18:02 UPDATE documento_d2 SET linhas=0,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:02 UPDATE documento_d2 SET linhas=0,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:02 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:02 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:02 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160411 18:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:06 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,94,'&#35;','CASACO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 18:06 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,94,'&#35;','CASACO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 18:06 UPDATE documento_d2 SET linhas=0,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:06 UPDATE documento_d2 SET linhas=0,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:06 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:09 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=94,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=214 LIMIT 1;
20160411 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=94,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.30,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=215 LIMIT 1;
20160411 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=94,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=5.0000000,desc_2=0.5200000,iva=23.00,valor=9.78,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=215 LIMIT 1;
20160411 18:09 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',94,20160411000000,20160411000000,'','',24.64,24.64,'D',24.64,0.00,0.00,4.61,0.00,1.000000,0,0,'A','');
20160411 18:09 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=0.52,tot_liquido=20.03,tot_iva=4.61,tot_valor=24.64,val_pago=0.00,val_pend=24.64,suj_valor0=20.03,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=24.64,pendente=24.64,deb_cred='D',debito=24.64,credito=0.00,acumulado=0.00,val_iva=4.61,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:09 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=0.52,tot_liquido=20.03,tot_iva=4.61,tot_valor=24.64,val_pago=0.00,val_pend=24.64,suj_valor0=20.03,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=24.64,pendente=24.64,deb_cred='D',debito=24.64,credito=0.00,acumulado=0.00,val_iva=4.61,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:09 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=0.52,tot_liquido=20.03,tot_iva=4.61,tot_valor=24.64,val_pago=0.00,val_pend=24.64,suj_valor0=20.03,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:10 CREATE TABLE IF NOT EXISTS listagens (IDX INT NOT NULL AUTO_INCREMENT,lnh int(5),num int(5),tipo char(42),titulo char(42),colunas int(5),flag_int1 char(3),flag_int2 char(3),contador int(5),flag_dest char(3),c_pc char(51),u_pc char(51),i_pc int(5),i_uc int(5),f_pc double,f_uc double,l_pc int,l_uc int,h_pc datetime,h_uc datetime,d_pc date,d_uc date,n_mexer int(5),n_edita int(5),comp_pag int(5),form_pag char(3),marg_to int(5),cab_sep char(3),marg_es int(5),ordem char(3),formato char(3),pitch int(5),lpt int(5),esp_lnh int(5),orient int(5),tot_final char(3),edt_imp char(3),poe_grp char(3),ficheiro char(21),contorno char(3),ficheiro2 char(11),rsv char(84),PRIMARY KEY (IDX),UNIQUE INDEX listagens_1 (ficheiro2,num) );
20160411 18:10 CREATE TABLE IF NOT EXISTS listagenslinhas (IDX INT NOT NULL AUTO_INCREMENT,lnh int(5),cor int(5),num int(5),campo char(46),ord int(5),ind int(5),tam int(5),ndec int(5),imp int(5),tipo int(5),ofset int(5),max int(5),parse char(32),edt int(5),grupo char(22),lim int(5),ficheiro2 char(11),rsv char(58),PRIMARY KEY (IDX),UNIQUE INDEX listagenslinhas_1 (ficheiro2,num,lnh) );
20160411 18:10 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=24.64,pendente=24.64,deb_cred='D',debito=24.64,credito=0.00,acumulado=0.00,val_iva=4.61,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:10 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=0.52,tot_liquido=20.03,tot_iva=4.61,tot_valor=24.64,val_pago=0.00,val_pend=24.64,suj_valor0=20.03,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:10 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,6,'&#35;','CASACO',10.25,0.00,'',94,20160411000000,0.00,'');
20160411 18:12 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:12 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=94,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=48.5436893,desc_2=5.0000000,iva=23.00,valor=5.30,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=215 LIMIT 1;
20160411 18:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=19.13,pendente=19.13,deb_cred='D',debito=19.13,credito=0.00,acumulado=0.00,val_iva=3.58,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:12 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=5.00,tot_liquido=15.55,tot_iva=3.58,tot_valor=19.13,val_pago=0.00,val_pend=19.13,suj_valor0=15.55,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.58,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=19.13,pendente=19.13,deb_cred='D',debito=19.13,credito=0.00,acumulado=0.00,val_iva=3.58,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:12 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=5.00,tot_liquido=15.55,tot_iva=3.58,tot_valor=19.13,val_pago=0.00,val_pend=19.13,suj_valor0=15.55,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.58,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=19.13,pendente=19.13,deb_cred='D',debito=19.13,credito=0.00,acumulado=0.00,val_iva=3.58,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:12 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=5.00,tot_liquido=15.55,tot_iva=3.58,tot_valor=19.13,val_pago=0.00,val_pend=19.13,suj_valor0=15.55,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.58,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:14 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:14 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=94,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.3000000,desc1=2.0000000,desc_1=0.2100000,desc2=48.5436893,desc_2=4.9000000,iva=23.00,valor=5.19,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=215 LIMIT 1;
20160411 18:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=18.99,pendente=18.99,deb_cred='D',debito=18.99,credito=0.00,acumulado=0.00,val_iva=3.55,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:14 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=5.11,tot_liquido=15.44,tot_iva=3.55,tot_valor=18.99,val_pago=0.00,val_pend=18.99,suj_valor0=15.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:14 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=18.99,pendente=18.99,deb_cred='D',debito=18.99,credito=0.00,acumulado=0.00,val_iva=3.55,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:14 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=5.11,tot_liquido=15.44,tot_iva=3.55,tot_valor=18.99,val_pago=0.00,val_pend=18.99,suj_valor0=15.44,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:15 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:15 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=94,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=51.2195122,desc_2=5.2500000,iva=23.00,valor=5.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=214 LIMIT 1;
20160411 18:15 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12.53,pendente=12.53,deb_cred='D',debito=12.53,credito=0.00,acumulado=0.00,val_iva=2.34,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:15 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=10.36,tot_liquido=10.19,tot_iva=2.34,tot_valor=12.53,val_pago=0.00,val_pend=12.53,suj_valor0=10.19,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.34,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:15 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12.53,pendente=12.53,deb_cred='D',debito=12.53,credito=0.00,acumulado=0.00,val_iva=2.34,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:15 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=10.36,tot_liquido=10.19,tot_iva=2.34,tot_valor=12.53,val_pago=0.00,val_pend=12.53,suj_valor0=10.19,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.34,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=94,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12.53,pendente=12.53,deb_cred='D',debito=12.53,credito=0.00,acumulado=0.00,val_iva=2.34,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160411 18:19 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=10.36,tot_liquido=10.19,tot_iva=2.34,tot_valor=12.53,val_pago=0.00,val_pend=12.53,suj_valor0=10.19,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.34,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:19 UPDATE documento_d2 SET linhas=2,no_doc=94,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101180200,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.55,tot_desconto=10.36,tot_liquido=10.19,tot_iva=2.34,tot_valor=12.53,val_pago=0.00,val_pend=12.53,suj_valor0=10.19,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.34,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=12.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=116 LIMIT 1;
20160411 18:26 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,95,0,'',0,0,'',20160411000000,20160411000000,20000101182600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160411 18:26 UPDATE documento_d2 SET linhas=0,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=0,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,95,'&#35;','CASACO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 18:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=95,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=216 LIMIT 1;
20160411 18:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160411 18:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=95,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=216 LIMIT 1;
20160411 18:27 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'123','123','srtigo 123','','srtigo 123',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,10.0000000,0.0000000,12.3000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160411 18:27 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',95,20160411000000,20160411000000,'','',1.23,1.23,'D',1.23,0.00,0.00,0.23,0.00,1.000000,0,0,'A','');
20160411 18:27 UPDATE documento_d2 SET linhas=0,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.00,tot_desconto=0.00,tot_liquido=1.00,tot_iva=0.23,tot_valor=1.23,val_pago=0.00,val_pend=1.23,suj_valor0=1.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160411 18:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,95,'123','srtigo 123','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 18:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160411 18:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=95,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=2.0000000,desc_1=0.2000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=9.80,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=217 LIMIT 1;
20160411 18:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=13.28,pendente=13.28,deb_cred='D',debito=13.28,credito=0.00,acumulado=0.00,val_iva=2.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=0,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=11.00,tot_desconto=0.20,tot_liquido=10.80,tot_iva=2.48,tot_valor=13.28,val_pago=0.00,val_pend=13.28,suj_valor0=10.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,6,'123','srtigo 123',10.00,2.00,'',95,20160411000000,0.00,'');
20160411 18:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=13.28,pendente=13.28,deb_cred='D',debito=13.28,credito=0.00,acumulado=0.00,val_iva=2.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=2,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=11.00,tot_desconto=0.20,tot_liquido=10.80,tot_iva=2.48,tot_valor=13.28,val_pago=0.00,val_pend=13.28,suj_valor0=10.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=13.28,pendente=13.28,deb_cred='D',debito=13.28,credito=0.00,acumulado=0.00,val_iva=2.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=2,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=11.00,tot_desconto=0.20,tot_liquido=10.80,tot_iva=2.48,tot_valor=13.28,val_pago=0.00,val_pend=13.28,suj_valor0=10.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,95,'','teste','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160411 18:27 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=95,codigo='',designacao='teste',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=218 LIMIT 1;
20160411 18:27 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=95,codigo='',designacao='teste',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=218 LIMIT 1;
20160411 18:27 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=95,codigo='',designacao='teste',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=218 LIMIT 1;
20160411 18:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12313.28,pendente=12313.28,deb_cred='D',debito=12313.28,credito=0.00,acumulado=0.00,val_iva=2302.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=2,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=0.20,tot_liquido=10010.80,tot_iva=2302.48,tot_valor=12313.28,val_pago=0.00,val_pend=12313.28,suj_valor0=10010.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2302.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12313.28,pendente=12313.28,deb_cred='D',debito=12313.28,credito=0.00,acumulado=0.00,val_iva=2302.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=0.20,tot_liquido=10010.80,tot_iva=2302.48,tot_valor=12313.28,val_pago=0.00,val_pend=12313.28,suj_valor0=10010.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2302.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12313.28,pendente=12313.28,deb_cred='D',debito=12313.28,credito=0.00,acumulado=0.00,val_iva=2302.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:27 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=0.20,tot_liquido=10010.80,tot_iva=2302.48,tot_valor=12313.28,val_pago=0.00,val_pend=12313.28,suj_valor0=10010.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2302.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=12313.28,pendente=12313.28,deb_cred='D',debito=12313.28,credito=0.00,acumulado=0.00,val_iva=2302.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:30 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=0.20,tot_liquido=10010.80,tot_iva=2302.48,tot_valor=12313.28,val_pago=0.00,val_pend=12313.28,suj_valor0=10010.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2302.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:30 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=95,codigo='',designacao='teste',unidade='',com_iva='',quantidade=1.000000,preco_unit=10000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=5.0000000,desc_2=500.0000000,iva=23.00,valor=9500.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=218 LIMIT 1;
20160411 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=11698.28,pendente=11698.28,deb_cred='D',debito=11698.28,credito=0.00,acumulado=0.00,val_iva=2187.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:30 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=500.20,tot_liquido=9510.80,tot_iva=2187.48,tot_valor=11698.28,val_pago=0.00,val_pend=11698.28,suj_valor0=9510.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2187.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=95,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=11698.28,pendente=11698.28,deb_cred='D',debito=11698.28,credito=0.00,acumulado=0.00,val_iva=2187.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=79 LIMIT 1;
20160411 18:30 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=500.20,tot_liquido=9510.80,tot_iva=2187.48,tot_valor=11698.28,val_pago=0.00,val_pend=11698.28,suj_valor0=9510.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2187.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:30 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=500.20,tot_liquido=9510.80,tot_iva=2187.48,tot_valor=11698.28,val_pago=0.00,val_pend=11698.28,suj_valor0=9510.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2187.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160411 18:31 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,96,0,'',0,0,'',20160411000000,20160411000000,20000101183100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;&#35;',codigo2='&#35;&#35;',designacao_1='CAMISA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=15 LIMIT 1;
20160411 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,96,'&#35;&#35;','CAMISA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=96,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=219 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;&#35;',codigo2='&#35;&#35;',designacao_1='CAMISA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=15 LIMIT 1;
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=96,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=219 LIMIT 1;
20160411 18:31 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',96,20160411000000,20160411000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,0,0,'A','');
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=0.00,val_pend=123.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=96,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=12,rsv='' WHERE IDX=219 LIMIT 1;
20160411 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,96,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=96,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=12,rsv='' WHERE IDX=219 LIMIT 1;
20160411 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=96,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=100.00,pendente=100.00,deb_cred='D',debito=100.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=80 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=0.00,tot_valor=100.00,val_pago=0.00,val_pend=100.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=100.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0002',codigo2='0002',designacao_1='SAIA / MINI SAIA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=29 LIMIT 1;
20160411 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,96,'0002','SAIA / MINI SAIA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=96,codigo='0002',designacao='SAIA / MINI SAIA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=221 LIMIT 1;
20160411 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=96,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=100.00,pendente=100.00,deb_cred='D',debito=100.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=80 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=0.00,tot_valor=100.00,val_pago=0.00,val_pend=100.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=100.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0002',codigo2='0002',designacao_1='SAIA / MINI SAIA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=29 LIMIT 1;
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=96,codigo='0002',designacao='SAIA / MINI SAIA',unidade='',com_iva='',quantidade=1.000000,preco_unit=1320.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1320.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=221 LIMIT 1;
20160411 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=96,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=1723.60,pendente=1723.60,deb_cred='D',debito=1723.60,credito=0.00,acumulado=0.00,val_iva=303.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=80 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=303.60,tot_valor=1723.60,val_pago=0.00,val_pend=1723.60,suj_valor0=1320.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=100.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=303.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=96,codigo='0002',designacao='SAIA / MINI SAIA',unidade='',com_iva='',quantidade=1.000000,preco_unit=1320.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1320.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=12,rsv='' WHERE IDX=221 LIMIT 1;
20160411 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,96,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160411 18:31 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=96,codigo='0002',designacao='SAIA / MINI SAIA',unidade='',com_iva='',quantidade=1.000000,preco_unit=1320.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1320.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=12,rsv='' WHERE IDX=221 LIMIT 1;
20160411 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=96,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=1420.00,pendente=1420.00,deb_cred='D',debito=1420.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=80 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=0,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=96,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=1420.00,pendente=1420.00,deb_cred='D',debito=1420.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=80 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=96,d_doc=20160411000000,d_venc=20160411000000,ref='',obs='',valor=1420.00,pendente=1420.00,deb_cred='D',debito=1420.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=80 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160411 18:31 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160412 10:05 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20130925000000,d_venc=20130925000000,h_doc=20000101174600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1300.00,tot_desconto=0.00,tot_liquido=1300.00,tot_iva=299.00,tot_valor=1599.00,val_pago=0.00,val_pend=1599.00,suj_valor0=1300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=299.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=73 LIMIT 1;
20160412 10:05 DELETE FROM reciboslinhas01 WHERE  no=11 
20160412 10:05 DELETE FROM documento_pagamento_r1 WHERE  no_doc=11 
20160412 10:05 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160412 10:05 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160412 10:05 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160412 10:05 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1115.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160412 10:05 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=15,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1242.30,pendente=1242.30,deb_cred='C',debito=0.00,credito=1242.30,acumulado=0.00,val_iva=232.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20160412 10:05 UPDATE documento_d10 SET linhas=2,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103200,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1010.00,tot_desconto=0.00,tot_liquido=1010.00,tot_iva=232.30,tot_valor=1242.30,val_pago=0.00,val_pend=1242.30,suj_valor0=1010.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=232.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=11.50,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=23 LIMIT 1;
20160412 10:05 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160412 10:05 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1230.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1000.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=115.00,irs=115.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160412 10:05 UPDATE historico_contas_correntes_fornecedores SET linha_f=14,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=4,d_doc=20160113000000,d_venc=20160113000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=22 LIMIT 1;
20160412 10:05 UPDATE documento_r2 SET linhas=0,no_doc=4,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160113000000,d_venc=20160113000000,h_doc=20000101103300,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=1115.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160113000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=14 LIMIT 1;
20160418 15:43 CREATE TABLE IF NOT EXISTS fun (IDX INT NOT NULL AUTO_INCREMENT,numero int,nome char(42),nome2 char(42),nome_solt char(42),prenome char(42),nasc date,local_nas char(42),profissao char(42),profissao char(42),profissao char(42),qualif1 char(42),qualif2 char(42),qualif3 char(42),especial1 char(42),especial2 char(42),especial3 char(42),morada char(52),localidad char(32),cp char(12),concelho char(32),distrito char(32),zona char(22),pais char(22),nacionali char(42),contribui char(17),telefone char(32),candidatu date,fax char(32),num_ss char(22),estado_ci char(32),num_filho char(12),transport char(42),nome_acid char(42),telef_aci char(22),medica date,desloca char(3),des_conce char(3),des_distr char(3),des_odist char(3),des_estra char(3),empresa_u char(42),morada_ul char(52),morada2_u char(52),data_entr date,data_said date,qualif_ul char(42),salario_u double,des_posto char(82),des_posto char(82),des_posto char(82),motivo_sa char(62),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),form_base char(42),diplomas char(82),form_org1 char(42),form1 date,duracao1 char(12),conteudo1 char(12),form_org2 char(42),form2 date,duracao2 char(12),conteudo2 char(12),form_org3 char(42),form3 date,duracao3 char(12),conteudo3 char(12),form_org4 char(42),form4 date,duracao4 char(12),conteudo4 char(12),lingua1 char(42),lingua2 char(42),lingua3 char(42),lingua4 char(42),nome_ref char(42),telef_ref char(22),morada_re char(82),aut_ref char(3),obs char(82),rsv char(101),PRIMARY KEY (IDX),UNIQUE INDEX fun_1 (fun) );
20160418 15:43 CREATE TABLE IF NOT EXISTS fun (IDX INT NOT NULL AUTO_INCREMENT,numero int,nome char(42),nome2 char(42),nome_solt char(42),prenome char(42),nasc date,local_nas char(42),profissao char(42),profissao char(42),profissao char(42),qualif1 char(42),qualif2 char(42),qualif3 char(42),especial1 char(42),especial2 char(42),especial3 char(42),morada char(52),localidad char(32),cp char(12),concelho char(32),distrito char(32),zona char(22),pais char(22),nacionali char(42),contribui char(17),telefone char(32),candidatu date,fax char(32),num_ss char(22),estado_ci char(32),num_filho char(12),transport char(42),nome_acid char(42),telef_aci char(22),medica date,desloca char(3),des_conce char(3),des_distr char(3),des_odist char(3),des_estra char(3),empresa_u char(42),morada_ul char(52),morada2_u char(52),data_entr date,data_said date,qualif_ul char(42),salario_u double,des_posto char(82),des_posto char(82),des_posto char(82),motivo_sa char(62),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),empresa_c char(52),data_entr date,data_said date,qualif_cv char(42),salario_c double,motivo_cv char(42),form_base char(42),diplomas char(82),form_org1 char(42),form1 date,duracao1 char(12),conteudo1 char(12),form_org2 char(42),form2 date,duracao2 char(12),conteudo2 char(12),form_org3 char(42),form3 date,duracao3 char(12),conteudo3 char(12),form_org4 char(42),form4 date,duracao4 char(12),conteudo4 char(12),lingua1 char(42),lingua2 char(42),lingua3 char(42),lingua4 char(42),nome_ref char(42),telef_ref char(22),morada_re char(82),aut_ref char(3),obs char(82),rsv char(101),PRIMARY KEY (IDX),UNIQUE INDEX fun_1 (fun) );
20160418 15:45 CREATE TABLE IF NOT EXISTS fun (IDX INT NOT NULL AUTO_INCREMENT,numero int,nome char(42),nome2 char(42),nome_solt char(42),prenome char(42),nasc date,local_nas char(42),profissao1 char(42),profissao2 char(42),profissao3 char(42),qualif1 char(42),qualif2 char(42),qualif3 char(42),especial1 char(42),especial2 char(42),especial3 char(42),morada char(52),localidade char(32),cp char(12),concelho char(32),distrito char(32),zona char(22),pais char(22),nacionalidade char(42),contribuinte char(17),telefone char(32),candidatura date,fax char(32),num_ss char(22),estado_civil char(32),num_filhos char(12),transporte char(42),nome_acid char(42),telef_aci char(22),medica date,desloca char(3),des_conce char(3),des_distr char(3),des_odist char(3),des_estrang char(3),empresa_u char(42),morada_ul char(52),morada2_u char(52),data_entr_u date,data_said_u date,qualif_ul char(42),salario_u double,des_posto_u1 char(82),des_posto_u2 char(82),des_posto_u3 char(82),motivo_saida_u char(62),empresa_cv1 char(52),data_entr_cv1 date,data_said_cv1 date,qualif_cv1 char(42),salario_cv1 double,motivo_cv1 char(42),empresa_cv2 char(52),data_entr_cv2 date,data_said_cv2 date,qualif_cv2 char(42),salario_cv2 double,motivo_cv2 char(42),empresa_cv3 char(52),data_entr_cv3 date,data_said_cv3 date,qualif_cv3 char(42),salario_c3 double,motivo_cv3 char(42),empresa_cv4 char(52),data_entr_cv4 date,data_said_cv4 date,qualif_cv4 char(42),salario_cv4 double,motivo_cv4 char(42),form_base char(42),diplomas char(82),form_org1 char(42),form1 date,duracao1 char(12),conteudo1 char(12),form_org2 char(42),form2 date,duracao2 char(12),conteudo2 char(12),form_org3 char(42),form3 date,duracao3 char(12),conteudo3 char(12),form_org4 char(42),form4 date,duracao4 char(12),conteudo4 char(12),lingua1 char(42),lingua2 char(42),lingua3 char(42),lingua4 char(42),nome_ref char(42),telef_ref char(22),morada_re char(82),aut_ref char(3),obs char(82),rsv char(101),PRIMARY KEY (IDX),UNIQUE INDEX fun_1 (numero) );
20160418 15:45 INSERT INTO fun (idx,numero,nome,nome2,nome_solt,prenome,nasc,local_nas,profissao1,profissao2,profissao3,qualif1,qualif2,qualif3,especial1,especial2,especial3,morada,localidade,cp,concelho,distrito,zona,pais,nacionalidade,contribuinte,telefone,candidatura,fax,num_ss,estado_civil,num_filhos,transporte,nome_acid,telef_aci,medica,desloca,des_conce,des_distr,des_odist,des_estrang,empresa_u,morada_ul,morada2_u,data_entr_u,data_said_u,qualif_ul,salario_u,des_posto_u1,des_posto_u2,des_posto_u3,motivo_saida_u,empresa_cv1,data_entr_cv1,data_said_cv1,qualif_cv1,salario_cv1,motivo_cv1,empresa_cv2,data_entr_cv2,data_said_cv2,qualif_cv2,salario_cv2,motivo_cv2,empresa_cv3,data_entr_cv3,data_said_cv3,qualif_cv3,salario_c3,motivo_cv3,empresa_cv4,data_entr_cv4,data_said_cv4,qualif_cv4,salario_cv4,motivo_cv4,form_base,diplomas,form_org1,form1,duracao1,conteudo1,form_org2,form2,duracao2,conteudo2,form_org3,form3,duracao3,conteudo3,form_org4,form4,duracao4,conteudo4,lingua1,lingua2,lingua3,lingua4,nome_ref,telef_ref,morada_re,aut_ref,obs,rsv) VALUES(NULL,1,'','','','',00000000000000,'','','','','','','','','','','','','','','','','','','','',00000000000000,'','','','','','','',00000000000000,'','','','','','','','',00000000000000,00000000000000,'',0.000,'','','','','',00000000000000,00000000000000,'',0.000,'','',00000000000000,00000000000000,'',0.000,'','',00000000000000,00000000000000,'',0.000,'','',00000000000000,00000000000000,'',0.000,'','','','',00000000000000,'','','',00000000000000,'','','',00000000000000,'','','',00000000000000,'','','','','','','','','','','','');
20160418 15:45 UPDATE fun SET numero=1,nome='',nome2='',nome_solt='',prenome='',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:45 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='',prenome='APELIDO 1',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:45 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='',prenome='APELIDO 1',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:45 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='',prenome='APELIDO 1',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:45 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='',prenome='APELIDO 1',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:45 INSERT INTO fun (idx,numero,nome,nome2,nome_solt,prenome,nasc,local_nas,profissao1,profissao2,profissao3,qualif1,qualif2,qualif3,especial1,especial2,especial3,morada,localidade,cp,concelho,distrito,zona,pais,nacionalidade,contribuinte,telefone,candidatura,fax,num_ss,estado_civil,num_filhos,transporte,nome_acid,telef_aci,medica,desloca,des_conce,des_distr,des_odist,des_estrang,empresa_u,morada_ul,morada2_u,data_entr_u,data_said_u,qualif_ul,salario_u,des_posto_u1,des_posto_u2,des_posto_u3,motivo_saida_u,empresa_cv1,data_entr_cv1,data_said_cv1,qualif_cv1,salario_cv1,motivo_cv1,empresa_cv2,data_entr_cv2,data_said_cv2,qualif_cv2,salario_cv2,motivo_cv2,empresa_cv3,data_entr_cv3,data_said_cv3,qualif_cv3,salario_c3,motivo_cv3,empresa_cv4,data_entr_cv4,data_said_cv4,qualif_cv4,salario_cv4,motivo_cv4,form_base,diplomas,form_org1,form1,duracao1,conteudo1,form_org2,form2,duracao2,conteudo2,form_org3,form3,duracao3,conteudo3,form_org4,form4,duracao4,conteudo4,lingua1,lingua2,lingua3,lingua4,nome_ref,telef_ref,morada_re,aut_ref,obs,rsv) VALUES(NULL,2,'','','','',00000000000000,'','','','','','','','','','','','','','','','','','','','',00000000000000,'','','','','','','',00000000000000,'','','','','','','','',00000000000000,00000000000000,'',0.000,'','','','','',00000000000000,00000000000000,'',0.000,'','',00000000000000,00000000000000,'',0.000,'','',00000000000000,00000000000000,'',0.000,'','',00000000000000,00000000000000,'',0.000,'','','','',00000000000000,'','','',00000000000000,'','','',00000000000000,'','','',00000000000000,'','','','','','','','','','','','');
20160418 15:45 UPDATE fun SET numero=2,nome='',nome2='',nome_solt='',prenome='',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=2 LIMIT 1;
20160418 15:45 UPDATE fun SET numero=2,nome='FUNCIONARIO 2',nome2='',nome_solt='',prenome='APELIDO 2',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=2 LIMIT 1;
20160418 15:45 UPDATE fun SET numero=2,nome='FUNCIONARIO 2',nome2='',nome_solt='',prenome='APELIDO 2',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=2 LIMIT 1;
20160418 15:47 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:49 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:49 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:49 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:50 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:50 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:50 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101154700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 15:50 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:50 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:50 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:51 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:51 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:51 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:51 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:53 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 15:53 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),tipo int(5),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (lnh_f) );
20160418 17:49 UPDATE documento_d3 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
20160418 17:49 UPDATE documento_d3 SET linhas=4,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20131007000000,d_venc=20131007000000,h_doc=20000101173300,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=12300.00,val_pend=0.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=5 LIMIT 1;
20160418 17:50 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=108 LIMIT 1;
20160418 17:50 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20160418 17:50 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20160418 18:38 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='',prenome='APELIDO 1',nasc=00000000000000,local_nas='',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='',localidade='',cp='',concelho='',distrito='',zona='',pais='',nacionalidade='',contribuinte='',telefone='',candidatura=00000000000000,fax='',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='',rsv='' WHERE IDX=1 LIMIT 1;
20160418 18:48 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='~BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 18:48 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 18:48 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 18:48 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 18:49 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:00 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:00 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:00 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:01 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:02 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:02 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:03 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:04 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:04 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:05 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:06 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:06 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:07 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:09 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:11 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:12 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160418 19:12 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:19 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='',des_conce='',des_distr='',des_odist='',des_estrang='',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:22 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='',profissao3='',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='N',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:22 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='N',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:22 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='',qualif2='',qualif3='',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='N',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:22 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='N',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:22 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='',especial2='',especial3='',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=00000000000000,fax='253321123',num_ss='',estado_civil='',num_filhos='',transporte='',nome_acid='',telef_aci='',medica=00000000000000,desloca='N',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:23 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:23 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:23 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:23 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:30 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:31 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:32 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:34 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:35 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:35 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='N',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:36 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:36 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:36 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='S',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:39 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:40 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='N',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:40 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:40 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:40 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:40 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:41 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:42 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:44 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:45 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:46 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 09:47 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160419 12:16 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,16,0,'',0,0,'',20160419000000,20160419000000,20000101121600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160419 12:16 UPDATE documento_d10 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:16 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160419 12:16 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,16,'123','srtigo 123','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160419 12:16 UPDATE documento_d10 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:16 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,16,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160419 12:16 UPDATE documento_d10 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:16 UPDATE documento_d10 SET linhas=2,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='212',codigo2='212',designacao_1='CAL&#128;A 100&#37; ALGODAO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=00000000000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=753 LIMIT 1;
20160419 12:17 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=16,codigo='212',designacao='CAL&#128;A 100&#37; ALGODAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=39 LIMIT 1;
20160419 12:17 INSERT IGNORE INTO conversao_artigos_fornecedor ( linha,cor,no,cod_forn,cod_int,desig,preco)
 VALUES( '10','0','2','1234','ZAZA','','0.000000');
 
20160419 12:17 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'ZAZA','ZAZA','TESTE ZAZAZA','','TESTE ZAZAZA',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,8.1300000,0.0000000,10.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ZAZA',codigo2='ZAZA',designacao_1='TESTE ZAZAZA',designacao_2='',abvr='TESTE ZAZAZA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8792 LIMIT 1;
20160419 12:17 INSERT IGNORE INTO conversao_artigos_fornecedor ( linha,cor,no,cod_forn,cod_int,desig,preco,data)
 VALUES( '20','0','2','1234','ZAZA','TESTE ZAZAZA','0.000000','20160419');
 
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ZAZA',codigo2='ZAZA',designacao_1='TESTE ZAZAZA',designacao_2='',abvr='TESTE ZAZAZA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=9.9999000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8792 LIMIT 1;
20160419 12:17 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,16,'ZAZA','TESTE ZAZAZA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160419 12:17 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'ZAZA',2,'kaehjfl‡v',21.00,0.00,0.00,20160419000000,'');
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ZAZA',codigo2='ZAZA',designacao_1='TESTE ZAZAZA',designacao_2='',abvr='TESTE ZAZAZA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=21.0000000,custo_medio=21.0000000,valor_medio=21.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=21.0000000,prc_s_iva_2=21.0000000,prc_c_iva_1=25.8300000,prc_c_iva_2=25.8300000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8792 LIMIT 1;
20160419 12:17 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=16,codigo='ZAZA',designacao='TESTE ZAZAZA',unidade='',com_iva='',quantidade=1.000000,preco_unit=21.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=21.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=40 LIMIT 1;
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ZAZA',codigo2='ZAZA',designacao_1='TESTE ZAZAZA',designacao_2='',abvr='TESTE ZAZAZA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=21.0000000,custo_medio=21.0000000,valor_medio=42.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=21.0000000,prc_s_iva_2=21.0000000,prc_c_iva_1=25.8300000,prc_c_iva_2=25.8300000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8792 LIMIT 1;
20160419 12:17 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,16,'ZAZA','TESTE ZAZAZA','','',1.000000,21.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,21.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160419 12:17 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Fatura',16,20160419000000,20160419000000,'','',51.66,51.66,'C',0.00,51.66,0.00,9.66,0.00,1.000000,0,0,'A','');
20160419 12:17 UPDATE documento_d10 SET linhas=2,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:17 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160419 12:17 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160419 12:17 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160419 12:17 UPDATE documento_d10 SET linhas=4,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:17 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160419 12:17 UPDATE documento_d10 SET linhas=4,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160419 12:17 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,17,0,'',0,0,'',20160419000000,20160419000000,20000101121700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160419 12:17 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ZAZA',codigo2='ZAZA',designacao_1='TESTE ZAZAZA',designacao_2='',abvr='TESTE ZAZAZA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=21.0000000,custo_medio=21.0000000,valor_medio=63.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=21.0000000,prc_s_iva_2=21.0000000,prc_c_iva_1=25.8300000,prc_c_iva_2=25.8300000,stock_minimo=0.000,stock=3.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8792 LIMIT 1;
20160419 12:17 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,17,'ZAZA','TESTE ZAZAZA','','',1.000000,21.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,21.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160419 12:17 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Fatura',17,20160419000000,20160419000000,'','',25.83,25.83,'C',0.00,25.83,0.00,4.83,0.00,1.000000,0,0,'A','');
20160419 12:17 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=21.00,tot_desconto=0.00,tot_liquido=21.00,tot_iva=4.83,tot_valor=25.83,val_pago=0.00,val_pend=25.83,suj_valor0=21.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160419 12:17 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160419 12:17 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=25.83,pendente=25.83,deb_cred='C',debito=0.00,credito=25.83,acumulado=0.00,val_iva=4.83,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20160419 12:17 UPDATE documento_d10 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=21.00,tot_desconto=0.00,tot_liquido=21.00,tot_iva=4.83,tot_valor=25.83,val_pago=0.00,val_pend=25.83,suj_valor0=21.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160419 12:17 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=25.83,pendente=25.83,deb_cred='C',debito=0.00,credito=25.83,acumulado=0.00,val_iva=4.83,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20160419 12:17 UPDATE documento_d10 SET linhas=1,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=21.00,tot_desconto=0.00,tot_liquido=21.00,tot_iva=4.83,tot_valor=25.83,val_pago=0.00,val_pend=25.83,suj_valor0=21.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160419 12:17 UPDATE documento_d10 SET linhas=1,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=21.00,tot_desconto=0.00,tot_liquido=21.00,tot_iva=4.83,tot_valor=25.83,val_pago=0.00,val_pend=25.83,suj_valor0=21.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=4.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160419 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='ZAZA',codigo2='ZAZA',designacao_1='TESTE ZAZAZA',designacao_2='',abvr='TESTE ZAZAZA',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=21.0000000,custo_medio=21.0000000,valor_medio=42.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=21.0000000,prc_s_iva_2=21.0000000,prc_c_iva_1=25.8300000,prc_c_iva_2=25.8300000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8792 LIMIT 1;
20160419 12:18 DELETE FROM documento_linhas_d10 WHERE  num_doc=17  AND  serdoc='a' 
20160419 12:18 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160419 12:18 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160420 16:50 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160420 16:50 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160420 16:50 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160420 16:50 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160420 16:52 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160420 16:52 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160420 16:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160420 16:53 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160421 09:07 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,97,0,'',0,0,'',20160421000000,20160421000000,20000101090700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160421 09:07 UPDATE documento_d2 SET linhas=0,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160421000000,d_venc=20160421000000,h_doc=20000101090700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=119 LIMIT 1;
20160421 09:07 UPDATE documento_d2 SET linhas=0,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160421000000,d_venc=20160421000000,h_doc=20000101090700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=119 LIMIT 1;
20160421 09:21 UPDATE documento_d2 SET linhas=0,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160421000000,d_venc=20160421000000,h_doc=20000101090700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=119 LIMIT 1;
20160421 09:22 UPDATE documento_d2 SET linhas=0,no_doc=97,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160421000000,d_venc=20160421000000,h_doc=20000101090700,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=119 LIMIT 1;
20160421 09:22 DELETE FROM documento_linhas_d2 WHERE  num_doc=97  AND  serdoc='a' 
20160421 09:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160421 09:22 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160421 09:22 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,20,0,6,'&#35;&#35;','CAMISA',100.00,0.00,'',96,20160411000000,0.00,'');
20160421 09:22 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,25,0,6,'0002','SAIA / MINI SAIA',1320.00,0.00,'',96,20160411000000,0.00,'');
20160422 12:19 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=108 LIMIT 1;
20160422 12:19 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20160422 12:19 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20160422 12:20 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20140322000000,d_venc=20140322000000,ref='',obs='',valor=120.05,pendente=120.05,deb_cred='C',debito=0.00,credito=120.05,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=108 LIMIT 1;
20160422 12:20 UPDATE documento_r1 SET linhas=1,no_doc=10,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20140322000000,d_venc=20140322000000,h_doc=20000101113800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.05,tot_desconto=0.00,tot_liquido=120.05,tot_iva=0.00,tot_valor=120.05,val_pago=0.00,val_pend=120.05,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20140322000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=15 LIMIT 1;
20160502 16:27 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160502 16:27 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101180100,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160502 16:27 DELETE FROM documento_linhas_d1 WHERE  num_doc=22  AND  serdoc='a' 
20160502 16:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160502 16:27 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160502 16:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160502 16:27 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160502 16:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160502 16:27 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160502 16:27 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160502 16:28 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160502 16:28 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160502 16:28 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160502 16:29 UPDATE documento_d1 SET convertido='0' WHERE no_doc='21' and serdoc='A' 
20160502 16:29 UPDATE documento_d1 SET linhas=1,no_doc=21,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160511000000,h_doc=20000101175500,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.39,tot_desconto=0.00,tot_liquido=24.39,tot_iva=5.61,tot_valor=30.00,val_pago=30.00,val_pend=0.00,suj_valor0=24.39,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5.61,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=25 LIMIT 1;
20160502 17:28 INSERT INTO documento_d5 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160502000000,20160502000000,20000101172800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160502 17:28 UPDATE documento_d5 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'&#35;&#35;','CAMISA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160502 17:28 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=1,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=1,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160502 17:28 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=1,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=0,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160502 17:28 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160509 12:00 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160509 12:00 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160509 12:02 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,7,'&#35;&#35;','CAMISA',10.00,0.00,'',1,20160502000000,0.00,'');
20160509 12:02 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160509 12:02 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160509 12:47 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160509 12:47 UPDATE documento_d5 SET linhas=1,no_doc=1,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160502000000,d_venc=20160502000000,h_doc=20000101172800,no_cf=7,nome_cf='CIENTE 7',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=12.30,val_pend=0.00,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160512 16:13 INSERT INTO documento_d5 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20160512000000,20160512000000,20000101161300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160512 16:13 UPDATE documento_d5 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'&#35;&#35;','CAMISA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160512 16:13 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=2,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=2,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=2,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=2,codigo='&#35;&#35;',designacao='CAMISA',unidade='',com_iva='',quantidade=45.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20160512 16:13 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,2,'','hdwgchsdbckjsfd','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160512 16:13 UPDATE documento_d5 SET linhas=1,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=2,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=2,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=2,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160512 16:13 UPDATE documento_d5 SET linhas=2,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160512000000,d_venc=20160512000000,h_doc=20000101161300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160530 18:41 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160530 18:41 UPDATE fun SET numero=1,nome='FUNCIONARIO 1',nome2='',nome_solt='seu nome de solteiro',prenome='APELIDO 1',nasc=19810101000000,local_nas='barcelos',profissao1='profissao 1',profissao2='profissao 2',profissao3='profissao 3',qualif1='qualificacao 1',qualif2='qualificacao 2',qualif3='qualificacao 3',especial1='especialidade 1',especial2='especialidade 2',especial3='especialidade 3',morada='rua xpro',localidade='Barcelos',cp='4750-169',concelho='BARCELOS',distrito='BRAGA',zona='',pais='PT',nacionalidade='PORTUGUESA',contribuinte='123456789',telefone='253123456',candidatura=20160101000000,fax='253321123',num_ss='123456789',estado_civil='solteiro',num_filhos='2',transporte='a pe',nome_acid='mulher',telef_aci='253235456',medica=20150101000000,desloca='S',des_conce='S',des_distr='N',des_odist='S',des_estrang='N',empresa_u='',morada_ul='',morada2_u='',data_entr_u=00000000000000,data_said_u=00000000000000,qualif_ul='',salario_u=0.000,des_posto_u1='',des_posto_u2='',des_posto_u3='',motivo_saida_u='',empresa_cv1='',data_entr_cv1=00000000000000,data_said_cv1=00000000000000,qualif_cv1='',salario_cv1=0.000,motivo_cv1='',empresa_cv2='',data_entr_cv2=00000000000000,data_said_cv2=00000000000000,qualif_cv2='',salario_cv2=0.000,motivo_cv2='',empresa_cv3='',data_entr_cv3=00000000000000,data_said_cv3=00000000000000,qualif_cv3='',salario_c3=0.000,motivo_cv3='',empresa_cv4='',data_entr_cv4=00000000000000,data_said_cv4=00000000000000,qualif_cv4='',salario_cv4=0.000,motivo_cv4='',form_base='',diplomas='',form_org1='',form1=00000000000000,duracao1='',conteudo1='',form_org2='',form2=00000000000000,duracao2='',conteudo2='',form_org3='',form3=00000000000000,duracao3='',conteudo3='',form_org4='',form4=00000000000000,duracao4='',conteudo4='',lingua1='',lingua2='',lingua3='',lingua4='',nome_ref='',telef_ref='',morada_re='',aut_ref='',obs='BANANA',rsv='' WHERE IDX=1 LIMIT 1;
20160613 18:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&',codigo2='&',designacao_1='CAL&#128;OES',designacao_2='',abvr='CAL&#128;OES',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='1234' WHERE IDX=12 LIMIT 1;
20160613 18:49 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160613 18:50 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&',codigo2='&',designacao_1='CAL&#128;OES',designacao_2='',abvr='CAL&#128;OES',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='1234' WHERE IDX=12 LIMIT 1;
20160613 18:50 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160613 18:50 INSERT IGNORE INTO conversao_artigos_fornecedor ( linha,cor,no,cod_forn,cod_int,desig,preco)
 VALUES( '30','0','2','12','12','','0.000000');
 
20160613 18:50 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,16,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160613 18:50 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,30,0,16,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160613 18:50 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160613 18:50 UPDATE documento_d10 SET linhas=4,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160613 18:51 UPDATE documento_d10 SET linhas=6,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160613 18:51 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160613 18:51 UPDATE documento_d10 SET linhas=6,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 INSERT IGNORE INTO conversao_artigos_fornecedor ( linha,cor,no,cod_forn,cod_int,desig,preco)
 VALUES( '40','0','2','123.','123.','','0.000000');
 
20160613 18:51 UPDATE documento_linhas_d10 SET lnh_f=25,cor=0,num_doc=16,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=43 LIMIT 1;
20160613 18:51 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160613 18:51 UPDATE documento_d10 SET linhas=6,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160613 18:51 UPDATE documento_d10 SET linhas=6,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160613 18:51 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=16,d_doc=20160419000000,d_venc=20160419000000,ref='',obs='',valor=51.66,pendente=51.66,deb_cred='C',debito=0.00,credito=51.66,acumulado=0.00,val_iva=9.66,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20160613 18:51 UPDATE documento_d10 SET linhas=6,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160419000000,d_venc=20160419000000,h_doc=20000101121600,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=42.00,tot_desconto=0.00,tot_liquido=42.00,tot_iva=9.66,tot_valor=51.66,val_pago=0.00,val_pend=51.66,suj_valor0=42.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=9.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=24 LIMIT 1;
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:51 UPDATE conversao_artigos_fornecedor SET desig='TESTE ZAZAZA', preco='21.000000', data=20160419 where no=2 AND cod_int='ZAZA';
20160613 18:52 UPDATE documento_linhas_d10 SET lnh_f=25,cor=0,num_doc=16,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=43 LIMIT 1;
20160615 15:01 UPDATE etiquetas_de_artigos SET linhas=2,no=1,data=20160101000000,no_cli=0,cliente='',obs='ETIQUETAS MONTRA',lp='1',iv='S',rsv='' WHERE IDX=1 LIMIT 1;
20160615 15:01 INSERT INTO etiquetas__gerais_ (idx,no_,descricao,dad_1,dad_2,dad_3,dad_4,dad_5,dad_6,dad_7,dad_8,rsv) VALUES(NULL,0,'','','','','','','','','','');
20160615 15:10 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20160615 15:12 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160615 15:12 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160617 16:52 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160617 16:52 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160617 16:52 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160617 16:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160617 16:53 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160617 16:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160617 16:53 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160617 16:54 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160617 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;&#35;',codigo2='&#35;&#35;',designacao_1='CAMISA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=15 LIMIT 1;
20160617 16:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0002',codigo2='0002',designacao_1='SAIA / MINI SAIA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=29 LIMIT 1;
20160617 16:54 UPDATE documento_d2 SET convertido='0' WHERE no_doc='96' and serdoc='A' 
20160617 16:54 UPDATE documento_d2 SET linhas=4,no_doc=96,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101183100,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1420.00,tot_desconto=0.00,tot_liquido=1420.00,tot_iva=0.00,tot_valor=1420.00,val_pago=0.00,val_pend=1420.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1420.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=118 LIMIT 1;
20160617 16:54 UPDATE documento_d7 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20160617 16:54 SELECT atdoccodeid from guiaat where numero='D7 A/14'
20160617 16:54 UPDATE documento_d7 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20131213000000,d_venc=20131213000000,h_doc=20000101151800,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=16 LIMIT 1;
20160629 12:32 UPDATE documento_d2 SET convertido='0' WHERE no_doc='95' and serdoc='A' 
20160629 12:32 UPDATE documento_d2 SET linhas=3,no_doc=95,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160411000000,d_venc=20160411000000,h_doc=20000101182600,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10011.00,tot_desconto=500.20,tot_liquido=9510.80,tot_iva=2187.48,tot_valor=11698.28,val_pago=0.00,val_pend=11698.28,suj_valor0=9510.80,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2187.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=117 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;&#35;',codigo2='&#35;&#35;',designacao_1='CAMISA',designacao_2='',abvr='CAMISA',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.8500000,prc_s_iva_2=0.0000000,prc_c_iva_1=3.5000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=15 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.8500000,prc_s_iva_2=0.0000000,prc_c_iva_1=3.5000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.8500000,prc_s_iva_2=0.0000000,prc_c_iva_1=3.5000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.8500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.8500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.8500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.8500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:56 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,97,0,'',0,0,'',20160705000000,20160705000000,20000101145600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160705 14:56 UPDATE documento_d2 SET linhas=0,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.8500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:56 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,97,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,1.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.50,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:56 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,124,'D',2,'N/ Fatura',97,20160705000000,20160705000000,'','',1.85,1.85,'D',1.85,0.00,0.00,0.35,0.00,1.000000,0,0,'A','');
20160705 14:56 UPDATE documento_d2 SET linhas=0,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160705 14:56 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=124,doc_mov='D',tp=2,document='N/ Fatura',no_doc=97,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=1.85,pendente=1.85,deb_cred='D',debito=1.85,credito=0.00,acumulado=0.00,val_iva=0.35,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=81 LIMIT 1;
20160705 14:56 UPDATE documento_d2 SET linhas=1,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160705 14:56 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=124,doc_mov='D',tp=2,document='N/ Fatura',no_doc=97,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=1.85,pendente=1.85,deb_cred='D',debito=1.85,credito=0.00,acumulado=0.00,val_iva=0.35,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=81 LIMIT 1;
20160705 14:56 UPDATE documento_d2 SET linhas=1,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160705 14:56 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,22,0,'',0,0,'',20160705000000,20160705000000,20000101145600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160705 14:56 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.8500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:56 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,22,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,1.8500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.85,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.8500000,prc_s_iva_2=0.0000000,prc_c_iva_1=3.5000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160419000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:57 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,22,'123','srtigo 123','','',1.000000,3.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,3.50,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:57 UPDATE documento_d1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:57 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,55,0,1,'321','CAL&#128;A 100&#37; ALGOD&#142;O',1.85,0.00,'',22,20160705000000,0.00,'');
20160705 14:57 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,60,0,1,'123','srtigo 123',3.50,0.00,'',22,20160705000000,0.00,'');
20160705 14:57 UPDATE documento_d1 SET linhas=2,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:57 UPDATE documento_d1 SET linhas=2,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:57 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,17,0,'',0,0,'',20160705000000,20160705000000,20000101145700,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160705 14:57 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 14:57 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,17,'123','srtigo 123','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:57 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,12,0,'123',2,'kaehjfl‡v',1.25,0.00,0.00,20160705000000,'');
20160705 14:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=1.2500000,prc_c_iva_1=1.5375000,prc_c_iva_2=1.5375000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:57 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=17,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=45 LIMIT 1;
20160705 14:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=1.2500000,prc_c_iva_1=1.5375000,prc_c_iva_2=1.5375000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:57 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,17,'123','srtigo 123','','',1.000000,1.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.25,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:57 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',10,'V/ Fatura',17,20160705000000,20160705000000,'','',3.08,3.08,'C',0.00,3.08,0.00,0.58,0.00,1.000000,0,0,'A','');
20160705 14:57 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.50,tot_desconto=0.00,tot_liquido=2.50,tot_iva=0.58,tot_valor=3.08,val_pago=0.00,val_pend=3.08,suj_valor0=2.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.58,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 14:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=1.2500000,prc_c_iva_1=1.5375000,prc_c_iva_2=1.5375000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:57 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=1.54,pendente=1.54,deb_cred='C',debito=0.00,credito=1.54,acumulado=0.00,val_iva=0.29,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160705 14:57 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.25,tot_desconto=0.00,tot_liquido=1.25,tot_iva=0.29,tot_valor=1.54,val_pago=0.00,val_pend=1.54,suj_valor0=1.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.29,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 14:57 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,17,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:58 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'321',2,'kaehjfl‡v',0.85,0.00,0.00,20160705000000,'');
20160705 14:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.8500000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.0455000,prc_c_iva_2=1.0455000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:58 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=17,codigo='321',designacao='CAL&#128;A 100&#37; ALGOD&#142;O',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.8500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.85,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=47 LIMIT 1;
20160705 14:58 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=2.58,pendente=2.58,deb_cred='C',debito=0.00,credito=2.58,acumulado=0.00,val_iva=0.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160705 14:58 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.10,tot_desconto=0.00,tot_liquido=2.10,tot_iva=0.48,tot_valor=2.58,val_pago=0.00,val_pend=2.58,suj_valor0=2.10,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 14:58 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=2.58,pendente=2.58,deb_cred='C',debito=0.00,credito=2.58,acumulado=0.00,val_iva=0.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160705 14:58 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.10,tot_desconto=0.00,tot_liquido=2.10,tot_iva=0.48,tot_valor=2.58,val_pago=0.00,val_pend=2.58,suj_valor0=2.10,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=2.8500000,prc_s_iva_2=1.2500000,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=2.8500000,prc_s_iva_2=1.2500000,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=2.8500000,prc_s_iva_2=1.2500000,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5000000,prc_s_iva_2=0.8500000,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,22,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,1.8500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.85,0.8500000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=2.8500000,prc_s_iva_2=1.2500000,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:59 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,22,'123','srtigo 123','','',1.000000,3.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,3.50,1.2500000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:59 UPDATE documento_d1 SET linhas=2,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.70,tot_desconto=0.00,tot_liquido=8.70,tot_iva=2.00,tot_valor=10.70,val_pago=10.70,val_pend=0.00,suj_valor0=8.70,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:59 UPDATE documento_d1 SET linhas=4,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.70,tot_desconto=0.00,tot_liquido=8.70,tot_iva=2.00,tot_valor=10.70,val_pago=10.70,val_pend=0.00,suj_valor0=8.70,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:59 UPDATE documento_d1 SET linhas=4,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.70,tot_desconto=0.00,tot_liquido=8.70,tot_iva=2.00,tot_valor=10.70,val_pago=10.70,val_pend=0.00,suj_valor0=8.70,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=2.8455285,prc_s_iva_2=1.2520325,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:59 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,17,'123','srtigo 123','','',1.000000,1.2500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.25,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.5200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=1.1837398,prc_s_iva_2=0.5208455,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 14:59 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=17,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.5200000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.52,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=48 LIMIT 1;
20160705 14:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.8500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=1.5040750,prc_s_iva_2=0.8536550,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 14:59 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,17,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,0.8500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.85,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 15:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.5600000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=0.9909200,prc_s_iva_2=0.5624080,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 15:00 UPDATE documento_linhas_d10 SET lnh_f=20,cor=0,num_doc=17,codigo='321',designacao='CAL&#128;A 100&#37; ALGOD&#142;O',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.5600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.56,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=49 LIMIT 1;
20160705 15:00 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160705 15:00 UPDATE documento_d10 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 15:00 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160705 15:00 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 15:00 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160705 15:00 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160705 15:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.5600000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=0.9909200,prc_s_iva_2=0.5624080,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 15:00 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,22,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,1.8500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.85,0.5600000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 15:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.5200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=1.1837398,prc_s_iva_2=0.5208455,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 15:00 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,30,0,22,'123','srtigo 123','','',1.000000,3.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,3.50,0.5200000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 15:00 UPDATE documento_d1 SET linhas=4,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=13.05,tot_desconto=0.00,tot_liquido=13.05,tot_iva=3.00,tot_valor=16.05,val_pago=16.05,val_pend=0.00,suj_valor0=13.05,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 15:00 UPDATE documento_d1 SET linhas=6,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=13.05,tot_desconto=0.00,tot_liquido=13.05,tot_iva=3.00,tot_valor=16.05,val_pago=16.05,val_pend=0.00,suj_valor0=13.05,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 15:00 UPDATE documento_d1 SET linhas=6,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=13.05,tot_desconto=0.00,tot_liquido=13.05,tot_iva=3.00,tot_valor=16.05,val_pago=16.05,val_pend=0.00,suj_valor0=13.05,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 15:00 UPDATE documento_d1 SET linhas=6,no_doc=22,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101145600,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=13.05,tot_desconto=0.00,tot_liquido=13.05,tot_iva=3.00,tot_valor=16.05,val_pago=16.05,val_pend=0.00,suj_valor0=13.05,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=3.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160705 15:00 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,23,0,'',0,0,'',20160705000000,20160705000000,20000101150000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160705 15:00 UPDATE documento_d1 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101150000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=28 LIMIT 1;
20160705 15:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='321',codigo2='321',designacao_1='CAL&#128;A 100&#37; ALGOD&#142;O',designacao_2='',abvr='CAL&#128;A',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.5600000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=76.9500000,marg_2=0.4300000,prc_s_iva_1=0.9909200,prc_s_iva_2=0.5624080,prc_c_iva_1=1.8500000,prc_c_iva_2=1.0500000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1218 LIMIT 1;
20160705 15:00 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,23,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,1.8500000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.85,0.5600000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 15:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='srtigo 123',designacao_2='',abvr='srtigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.5200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=127.6422764,marg_2=0.1626016,prc_s_iva_1=1.1837398,prc_s_iva_2=0.5208455,prc_c_iva_1=3.5000000,prc_c_iva_2=1.5400000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160705000000,d_saida=20160411000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8791 LIMIT 1;
20160705 15:00 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,23,'123','srtigo 123','','',1.000000,3.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,3.50,0.5200000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160705 15:00 UPDATE documento_d1 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101150000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=28 LIMIT 1;
20160705 15:00 UPDATE documento_d1 SET linhas=2,no_doc=23,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101150000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=28 LIMIT 1;
20160705 15:00 UPDATE documento_d1 SET linhas=2,no_doc=23,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101150000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=28 LIMIT 1;
20160706 15:27 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1456,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20160706 18:32 INSERT INTO classes_de_clientes (idx,no,descricao,rsv) VALUES(NULL,1,'classe 1','');
20160706 18:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=1,des_classe='classe 1',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20160706 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=1,des_classe='classe 1',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20160706 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=1,des_classe='classe 1',lim_cred=78,data=00000000000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20160713 18:05 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,124,'321','CAL&#128;A 100&#37; ALGOD&#142;O',1.50,0.00,'',97,20160705000000,0.00,'');
20160713 18:06 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20160713 18:06 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160713 18:06 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160713 18:06 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docsi3',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:06 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docsi3',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docsi3',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:07 UPDATE tipos_de_documentosd SET numero=3,designacao='NOTA DE CREDITO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='C',ctrl_seq='C',mov_stock='E',ecr='docsi3',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Nota de Credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,2',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:07 UPDATE documento_d1 SET linhas=2,no_doc=23,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160804000000,h_doc=20000101150000,no_cf=1,nome_cf='nome do clienmtetet',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.35,tot_desconto=0.00,tot_liquido=4.35,tot_iva=1.00,tot_valor=5.35,val_pago=5.35,val_pend=0.00,suj_valor0=4.35,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=28 LIMIT 1;
20160713 18:08 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160713000000,20160713000000,20000101180800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160713 18:08 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160713000000,20160713000000,20000101180800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160713 18:08 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160713000000,d_venc=20160713000000,h_doc=20000101180800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160713 18:08 DELETE FROM documento_linhas_d2 WHERE  num_doc=1  AND  serdoc='a' 
20160713 18:08 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160713000000,d_venc=20160713000000,h_doc=20000101180800,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:08 DELETE FROM documento_linhas_d1 WHERE  num_doc=1  AND  serdoc='a' 
20160713 18:09 TRUNCATE TABLE documento_D1
20160713 18:09 TRUNCATE TABLE documento_linhas_D1
20160713 18:09 TRUNCATE TABLE documento_D1_a_hash
20160713 18:09 TRUNCATE TABLE documento_D2
20160713 18:09 TRUNCATE TABLE documento_linhas_D2
20160713 18:09 TRUNCATE TABLE documento_D2_a_hash
20160713 18:09 TRUNCATE TABLE documento_D3
20160713 18:09 TRUNCATE TABLE documento_linhas_D3
20160713 18:09 TRUNCATE TABLE documento_D3_a_hash
20160713 18:09 TRUNCATE TABLE documento_D5
20160713 18:09 TRUNCATE TABLE documento_linhas_D5
20160713 18:09 TRUNCATE TABLE documento_D5_a_hash
20160713 18:09 TRUNCATE TABLE documento_D6
20160713 18:09 TRUNCATE TABLE documento_linhas_D6
20160713 18:09 TRUNCATE TABLE documento_D6_a_hash
20160713 18:09 TRUNCATE TABLE documento_D7
20160713 18:09 TRUNCATE TABLE documento_linhas_D7
20160713 18:09 TRUNCATE TABLE documento_D7_a_hash
20160713 18:09 TRUNCATE TABLE documento_D8
20160713 18:09 TRUNCATE TABLE documento_linhas_D8
20160713 18:09 TRUNCATE TABLE documento_D8_a_hash
20160713 18:09 TRUNCATE TABLE documento_D9
20160713 18:09 TRUNCATE TABLE documento_linhas_D9
20160713 18:09 TRUNCATE TABLE documento_D9_a_hash
20160713 18:09 TRUNCATE TABLE documento_D10
20160713 18:09 TRUNCATE TABLE documento_linhas_D10
20160713 18:09 TRUNCATE TABLE documento_D10_a_hash
20160713 18:09 TRUNCATE TABLE documento_D11
20160713 18:09 TRUNCATE TABLE documento_linhas_D11
20160713 18:09 TRUNCATE TABLE documento_D11_a_hash
20160713 18:09 TRUNCATE TABLE documento_D13
20160713 18:09 TRUNCATE TABLE documento_linhas_D13
20160713 18:09 TRUNCATE TABLE documento_D13_a_hash
20160713 18:09 TRUNCATE TABLE documento_D14
20160713 18:09 TRUNCATE TABLE documento_linhas_D14
20160713 18:09 TRUNCATE TABLE documento_D14_a_hash
20160713 18:09 TRUNCATE TABLE documento_D15
20160713 18:09 TRUNCATE TABLE documento_linhas_D15
20160713 18:09 TRUNCATE TABLE documento_D15_a_hash
20160713 18:09 Tabla 'emp0001.documento_d15_a_hash' no existe
20160713 18:09 TRUNCATE TABLE documento_D15_a_hash
20160713 18:09 TRUNCATE TABLE documento_D16
20160713 18:09 TRUNCATE TABLE documento_linhas_D16
20160713 18:09 TRUNCATE TABLE documento_D16_a_hash
20160713 18:09 TRUNCATE TABLE documento_D17
20160713 18:09 TRUNCATE TABLE documento_linhas_D17
20160713 18:09 TRUNCATE TABLE documento_D17_a_hash
20160713 18:09 Tabla 'emp0001.documento_d17_a_hash' no existe
20160713 18:09 TRUNCATE TABLE documento_D17_a_hash
20160713 18:09 TRUNCATE TABLE documento_D18
20160713 18:09 TRUNCATE TABLE documento_linhas_D18
20160713 18:09 TRUNCATE TABLE documento_D18_a_hash
20160713 18:09 Tabla 'emp0001.documento_d18_a_hash' no existe
20160713 18:09 TRUNCATE TABLE documento_D18_a_hash
20160713 18:09 TRUNCATE TABLE documento_D20
20160713 18:09 TRUNCATE TABLE documento_linhas_D20
20160713 18:09 TRUNCATE TABLE documento_D20_a_hash
20160713 18:09 TRUNCATE TABLE documento_R1
20160713 18:09 TRUNCATE TABLE reciboslinhas01
20160713 18:09 TRUNCATE TABLE documento_R2
20160713 18:09 TRUNCATE TABLE reciboslinhas02
20160713 18:10 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160713 18:10 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160713000000,20160713000000,20000101181000,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160713 18:10 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160713000000,d_venc=20160713000000,h_doc=20000101181000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:10 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160713000000,d_venc=20160713000000,h_doc=20000101181000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:11 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160713 18:11 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160713000000,20160713000000,20000101181100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',1.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160713 18:12 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160713000000,d_venc=20160713000000,h_doc=20000101181100,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:12 DELETE FROM documento_linhas_d1 WHERE  num_doc=1  AND  serdoc='a' 
20160713 18:12 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160713000000,d_venc=20160713000000,h_doc=20000101181000,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160713 18:12 DELETE FROM documento_linhas_d2 WHERE  num_doc=1  AND  serdoc='a' 
20160714 17:52 SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
20160714 17:53 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20160714 17:53 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=17,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='I',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=45 LIMIT 1;
20160714 17:53 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=17,codigo='321',designacao='CAL&#128;A 100&#37; ALGOD&#142;O',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.8500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.85,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='I',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=47 LIMIT 1;
20160714 17:53 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=17,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.5200000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.52,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='I',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=48 LIMIT 1;
20160714 17:53 UPDATE documento_linhas_d10 SET lnh_f=20,cor=0,num_doc=17,codigo='321',designacao='CAL&#128;A 100&#37; ALGOD&#142;O',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.5600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.56,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='I',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=49 LIMIT 1;
20160714 17:54 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160714 17:54 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.64,irs=20.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160714 17:54 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160714 17:54 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.64,irs=20.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160714 17:54 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20160714 17:54 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.64,irs=20.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20160714 17:54 SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
20160714 17:55 SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
20160714 17:56 SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
20160715 19:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=7,lnhcmp=0,numero=1,nome_1='nome do clienmtetet',nome_2='',morada='MORADA X',localidade='LOCALIDADE X',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='1',n_pais=1,pais='Portugal',contribuinte='123456788',telefone='253826860',fax='miguel@sapo.pt',n_cp=2,c_pagamento='A 30 DIAS',prazo=30,desconto=0.00,linha_precos=3,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25345.51,saldo1=-25345.51,obs='',dsc_linha=0.00,plafont=0.00,no_classe=1,des_classe='classe 1',lim_cred=78,data=20150101000000,miva=0,venc=1,rsv='' WHERE IDX=2 LIMIT 1;
20160728 14:23 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,18,0,'',0,0,'',20160728000000,20160728000000,20000101142300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160728 14:23 UPDATE documento_d10 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160728000000,d_venc=20160728000000,h_doc=20000101142300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160728 14:23 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,18,'','hgugy','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160728 14:23 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=18,codigo='',designacao='hgugy',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=50 LIMIT 1;
20160728 14:23 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=18,codigo='',designacao='hgugy',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=50 LIMIT 1;
20160728 14:23 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=18,codigo='',designacao='hgugy',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=50 LIMIT 1;
20160728 14:24 UPDATE documento_d10 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160728000000,d_venc=20160728000000,h_doc=20000101142300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160728 14:24 UPDATE documento_d10 SET linhas=0,no_doc=18,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160728000000,d_venc=20160728000000,h_doc=20000101142300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=27 LIMIT 1;
20160728 14:24 DELETE FROM documento_linhas_d10 WHERE  num_doc=18  AND  serdoc='a' 
20160801 09:28 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160801 09:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20160801 09:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20160801 09:29 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101092900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 09:29 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20160801 09:31 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,2,'nome do cliente 2','','morada','localidade','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20160801 09:31 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'123','123','aertigo 123','','aertigo 123',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','0','0.00','0.00','0','0.00','0.00','');
20160801 09:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='aertigo 123',designacao_2='',abvr='aertigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160801000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20160801 09:31 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'123','aertigo 123','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160801 09:31 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101092900,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 09:31 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101092900,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 09:31 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101092900,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 09:31 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101092900,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 09:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='aertigo 123',designacao_2='',abvr='aertigo 123',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160801000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20160801 09:31 DELETE FROM documento_linhas_d1 WHERE  num_doc=1  AND  serdoc='a' 
20160801 09:31 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101093100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 09:32 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ert',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ert',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ert',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ert',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:32 UPDATE documento_d1 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20160801 09:32 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:33 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,00000000000000,20000101093300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20160801000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20160801 09:33 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=00000000000000,h_doc=20000101093300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160801000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:33 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,00000000000000,20000101093300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'H',20160801000000,'',0.0000000,'P',0,0.00,0.00,0.00,0,0.00,'',0,'');
20160801 09:33 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=00000000000000,h_doc=20000101093300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160801000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:33 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=00000000000000,h_doc=20000101093300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160801000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:33 UPDATE documento_r2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=00000000000000,h_doc=20000101093300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='H',d_lan=20160801000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:33 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:33 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:33 UPDATE documento_d1 SET linhas=1,no_doc=1,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093100,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 09:33 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20160801000000,20160801000000,20000101093300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 09:33 UPDATE documento_d1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093300,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 09:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160801000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 09:33 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'1','ARTIGO 1','','',1.000000,8.1300000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,8.13,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160801 09:33 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='ARTIGO 1',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.1300000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.13,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 09:34 UPDATE documento_d1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093300,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 09:34 UPDATE documento_d1 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093300,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 09:34 UPDATE documento_d1 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093300,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 09:34 UPDATE documento_d1 SET linhas=1,no_doc=2,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093300,no_cf=2,nome_cf='nome do cliente 2',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.13,tot_desconto=0.00,tot_liquido=8.13,tot_iva=1.87,tot_valor=10.00,val_pago=10.00,val_pend=0.00,suj_valor0=8.13,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=1.87,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 09:34 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160801000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 09:34 DELETE FROM documento_linhas_d1 WHERE  num_doc=2  AND  serdoc='a' 
20160801 09:34 TRUNCATE TABLE documento_D1
20160801 09:34 TRUNCATE TABLE documento_linhas_D1
20160801 09:34 TRUNCATE TABLE documento_D1_a_hash
20160801 09:34 TRUNCATE TABLE documento_D2
20160801 09:34 TRUNCATE TABLE documento_linhas_D2
20160801 09:34 TRUNCATE TABLE documento_D2_a_hash
20160801 09:34 TRUNCATE TABLE documento_D3
20160801 09:34 TRUNCATE TABLE documento_linhas_D3
20160801 09:34 TRUNCATE TABLE documento_D3_a_hash
20160801 09:34 TRUNCATE TABLE documento_D5
20160801 09:34 TRUNCATE TABLE documento_linhas_D5
20160801 09:34 TRUNCATE TABLE documento_D5_a_hash
20160801 09:34 TRUNCATE TABLE documento_D6
20160801 09:34 TRUNCATE TABLE documento_linhas_D6
20160801 09:34 TRUNCATE TABLE documento_D6_a_hash
20160801 09:34 TRUNCATE TABLE documento_D7
20160801 09:34 TRUNCATE TABLE documento_linhas_D7
20160801 09:34 TRUNCATE TABLE documento_D7_a_hash
20160801 09:34 TRUNCATE TABLE documento_D8
20160801 09:34 TRUNCATE TABLE documento_linhas_D8
20160801 09:34 TRUNCATE TABLE documento_D8_a_hash
20160801 09:34 TRUNCATE TABLE documento_D9
20160801 09:34 TRUNCATE TABLE documento_linhas_D9
20160801 09:34 TRUNCATE TABLE documento_D9_a_hash
20160801 09:34 TRUNCATE TABLE documento_D10
20160801 09:34 TRUNCATE TABLE documento_linhas_D10
20160801 09:34 TRUNCATE TABLE documento_D10_a_hash
20160801 09:34 TRUNCATE TABLE documento_D11
20160801 09:34 TRUNCATE TABLE documento_linhas_D11
20160801 09:34 TRUNCATE TABLE documento_D11_a_hash
20160801 09:34 TRUNCATE TABLE documento_D13
20160801 09:34 TRUNCATE TABLE documento_linhas_D13
20160801 09:34 TRUNCATE TABLE documento_D13_a_hash
20160801 09:34 TRUNCATE TABLE documento_D14
20160801 09:34 TRUNCATE TABLE documento_linhas_D14
20160801 09:34 TRUNCATE TABLE documento_D14_a_hash
20160801 09:34 TRUNCATE TABLE documento_D15
20160801 09:34 TRUNCATE TABLE documento_linhas_D15
20160801 09:34 TRUNCATE TABLE documento_D15_a_hash
20160801 09:34 Tabla 'emp0001.documento_d15_a_hash' no existe
20160801 09:34 TRUNCATE TABLE documento_D15_a_hash
20160801 09:34 TRUNCATE TABLE documento_D16
20160801 09:34 TRUNCATE TABLE documento_linhas_D16
20160801 09:34 TRUNCATE TABLE documento_D16_a_hash
20160801 09:34 TRUNCATE TABLE documento_D17
20160801 09:34 TRUNCATE TABLE documento_linhas_D17
20160801 09:34 TRUNCATE TABLE documento_D17_a_hash
20160801 09:34 Tabla 'emp0001.documento_d17_a_hash' no existe
20160801 09:34 TRUNCATE TABLE documento_D17_a_hash
20160801 09:34 TRUNCATE TABLE documento_D18
20160801 09:34 TRUNCATE TABLE documento_linhas_D18
20160801 09:34 TRUNCATE TABLE documento_D18_a_hash
20160801 09:34 Tabla 'emp0001.documento_d18_a_hash' no existe
20160801 09:34 TRUNCATE TABLE documento_D18_a_hash
20160801 09:34 TRUNCATE TABLE documento_D20
20160801 09:34 TRUNCATE TABLE documento_linhas_D20
20160801 09:34 TRUNCATE TABLE documento_D20_a_hash
20160801 09:34 TRUNCATE TABLE documento_R1
20160801 09:34 TRUNCATE TABLE reciboslinhas01
20160801 09:34 TRUNCATE TABLE documento_R2
20160801 09:34 TRUNCATE TABLE reciboslinhas02
20160801 09:34 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101093400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 09:34 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:34 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101093400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 09:34 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:34 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:34 DELETE FROM documento_linhas_d1 WHERE  num_doc=1  AND  serdoc='a' 
20160801 09:34 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101093400,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 09:34 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 09:34 DELETE FROM documento_linhas_d1 WHERE  num_doc=1  AND  serdoc='a' 
20160801 09:39 INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,venc,rsv) VALUES(NULL,0,0,0,0,1,'FORN 1','','','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
20160801 09:39 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'','ERER','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160801 09:40 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ERER',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ERER',unidade='',com_iva='',quantidade=100.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='ERER',unidade='',com_iva='',quantidade=100.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',1,20160801000000,20160801000000,'','',1000.00,1000.00,'C',0.00,1000.00,0.00,0.00,0.00,1.000000,0,0,'A','');
20160801 09:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='C',debito=0.00,credito=1000.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=1000.00,pendente=1000.00,deb_cred='C',debito=0.00,credito=1000.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101093400,no_cf=1,nome_cf='FORN 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=0.00,tot_valor=1000.00,val_pago=0.00,val_pend=1000.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=1000.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:40 DELETE FROM documento_linhas_d10 WHERE  num_doc=1  AND  serdoc='a' 
20160801 09:47 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101164300,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20160801 09:49 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,pda,ivac,rsv) VALUES(NULL,21,'EXIST‰NCIAS INICIAS','F','',1,'DOC-F.rpt',1,'N','C','E','DOCSF2','EI','S','','N','Existencias inicias','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N',0,0,'');
20160801 09:49 UPDATE tipos_de_documentosd SET numero=21,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='ES',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias entradas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20160801 09:49 INSERT INTO tipos_de_documentosd (idx,numero,designacao,cli_forn,tipo_desc,no_vias,ficheiro,porta,flg_cco,ctrl_seq,mov_stock,ecr,abvr,mov_finan,carta_anexo,extras,des_cco,cco_banco,mov_caixa,act_preco,edt_temp,doc_org,ficheiro2,porta2,armazem,mov_res,com_cli,inc_vias,no,sem_iva,com_obs,res_bal,des_base,des_altern,tipo_imp,bx_encs,cria_resc,tipo_vcd,linha_preco,saft,irs,hash,pda,ivac,rsv) VALUES(NULL,22,'ENTRADA DE STOCKS','F','',1,'DOC-F.rpt',1,'N','C','E','DOCSF2','ES','S','','N','Existencias entradas','','N','S','S','','',0,0,'','N','S',0,'','','','','','','','','',0,'N','','N',0,0,'');
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF2',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 09:50 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF2',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20160801 09:51 CREATE TABLE IF NOT EXISTS documento_d22 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d22_1 (no_doc) ,INDEX documento_d22_2 (no_cf,no_doc) ,INDEX documento_d22_3 (d_doc,no_doc) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documento_linhas_d22 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(31),PRIMARY KEY (IDX),UNIQUE INDEX documento_linhas_d22_1 (num_doc,lnh_f) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documento_pagamento_d21 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d21_1 (no_doc,lnh_f) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documento_pagamento_d22 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d22_1 (no_doc,lnh_f) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documentosextras21 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras21_1 (no_doc) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documentosextras22 (IDX INT NOT NULL AUTO_INCREMENT,no_doc int,loc_carga char(42),data_carga date,hora_carga datetime,motorista char(42),matricula char(22),loc_desc char(42),embalagem char(42),transporte char(42),i0 char(42),i1 char(42),i2 char(42),i3 char(42),i4 char(42),i5 char(42),i6 char(42),i7 char(42),i8 char(42),i9 char(42),serdoc char(7),tpdoc char(7),rsv char(201),rsv2 char(176),PRIMARY KEY (IDX),UNIQUE INDEX documentosextras22_1 (no_doc) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documentoresd21 (IDX INT NOT NULL AUTO_INCREMENT,no int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),contribuinte char(17),serdoc char(7),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX documentoresd21_1 (no) );
20160801 09:51 CREATE TABLE IF NOT EXISTS documentoresd22 (IDX INT NOT NULL AUTO_INCREMENT,no int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),contribuinte char(17),serdoc char(7),rsv char(29),PRIMARY KEY (IDX),UNIQUE INDEX documentoresd22_1 (no) );
20160801 09:53 UPDATE tipos_de_documentosd SET numero=14,designacao='NOTA DE ENCOMENDA',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='DOCSF3',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='N/ Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20160801 09:53 UPDATE tipos_de_documentosd SET numero=20,designacao='EXIST‰NCIAS INICIAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF3',abvr='EI',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias inicias',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20160801 09:54 UPDATE tipos_de_documentosd SET numero=21,designacao='ENTRADA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='DOCSF3',abvr='ES',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias entradas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20160801 09:54 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF3',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 10:01 INSERT INTO documento_d15 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101100100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 10:01 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20160801 10:01 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20160801 10:01 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgt',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20160801 10:01 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgf',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20160801 10:01 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiac.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgf',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20160801 10:02 UPDATE tipos_de_documentosd SET numero=8,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='E',ecr='docsgf',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='Guia de devolucao',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20160801 10:03 UPDATE tipos_de_documentosd SET numero=13,designacao='GUIA DE TRANSPORTE',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsgf',abvr='GT',mov_finan='N',carta_anexo='',extras='N',des_cco='G Transporte p/ forn',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20160801 10:03 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsgf',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='G. Devolucao Forn.',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20160801 10:03 UPDATE tipos_de_documentosd SET numero=15,designacao='GUIA DE DEVOLU€ŽO',cli_forn='F',tipo_desc='',no_vias=3,ficheiro='guiaf.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsgf',abvr='GD',mov_finan='N',carta_anexo='',extras='N',des_cco='G. Devolucao Forn.',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20160801 10:03 UPDATE tipos_de_documentosd SET numero=22,designacao='SAIDA DE STOCKS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='DOCSF3',abvr='SS',mov_finan='S',carta_anexo='',extras='N',des_cco='Existencias saidas',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20160801 10:09 UPDATE tipos_de_documentosd SET numero=17,designacao='NOTA DE ENCOMENDA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='NE',mov_finan='N',carta_anexo='',extras='N',des_cco='Nota de encomenda',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20160801 10:09 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='proposta.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160801 10:10 UPDATE tipos_de_documentosd SET numero=16,designacao='ORCAMENTO',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='OR',mov_finan='N',carta_anexo='',extras='N',des_cco='Orcamento',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20160801 10:10 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 10:10 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 10:10 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docsi3',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 10:18 DELETE FROM fornecedores_contactos WHERE  no=1 
20160801 10:18 DELETE FROM conversao_artigos_fornecedor WHERE  no=1 
20160801 10:39 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20160801000000,20160801000000,20000101103900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160801 10:39 INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,venc,rsv) VALUES(NULL,0,0,0,0,1,'2121','','','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,'');
20160801 10:39 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:39 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1','1','1212','','1212',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160801 10:39 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='1212',designacao_2='',abvr='1212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=1.000,stock_maximo=0.000,no_forn=0,d_entrada=20160801000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 10:39 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'1','1212','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160801 10:39 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:39 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='1212',designacao_2='',abvr='1212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=2.000,stock_maximo=0.000,no_forn=0,d_entrada=20160801000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 10:40 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'1','1212','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160801 10:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='1212',designacao_2='',abvr='1212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=121.000,stock_maximo=0.000,no_forn=0,d_entrada=20160801000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='1',designacao='1212',unidade='',com_iva='',quantidade=120.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 10:40 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,6,0,'1',1,'2121',212.00,0.00,0.00,20160801000000,'');
20160801 10:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='1212',designacao_2='',abvr='1212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=212.0000000,custo_medio=210.2479339,valor_medio=25440.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=212.0000000,prc_s_iva_2=212.0000000,prc_c_iva_1=260.7600000,prc_c_iva_2=260.7600000,stock_minimo=0.000,stock=121.000,stock_maximo=0.000,no_forn=0,d_entrada=20160801000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='1',designacao='1212',unidade='',com_iva='',quantidade=120.000000,preco_unit=212.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=25440.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 10:40 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',1,20160801000000,20160801000000,'','',31291.20,31291.20,'C',0.00,31291.20,0.00,5851.20,0.00,1.000000,0,0,'A','');
20160801 10:40 UPDATE documento_d10 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25440.00,tot_desconto=0.00,tot_liquido=25440.00,tot_iva=5851.20,tot_valor=31291.20,val_pago=0.00,val_pend=31291.20,suj_valor0=25440.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5851.20,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=31291.20,pendente=31291.20,deb_cred='C',debito=0.00,credito=31291.20,acumulado=0.00,val_iva=5851.20,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_d10 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25440.00,tot_desconto=0.00,tot_liquido=25440.00,tot_iva=5851.20,tot_valor=31291.20,val_pago=0.00,val_pend=31291.20,suj_valor0=25440.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5851.20,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=31291.20,pendente=31291.20,deb_cred='C',debito=0.00,credito=31291.20,acumulado=0.00,val_iva=5851.20,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_d10 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25440.00,tot_desconto=0.00,tot_liquido=25440.00,tot_iva=5851.20,tot_valor=31291.20,val_pago=0.00,val_pend=31291.20,suj_valor0=25440.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5851.20,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='1212',designacao_2='',abvr='1212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=212.0000000,custo_medio=210.2622951,valor_medio=25652.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=212.0000000,prc_s_iva_2=212.0000000,prc_c_iva_1=260.7600000,prc_c_iva_2=260.7600000,stock_minimo=0.000,stock=122.000,stock_maximo=0.000,no_forn=0,d_entrada=20160801000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20160801 10:40 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,1,'1','1212','','',1.000000,212.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,212.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160801 10:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=31551.96,pendente=31551.96,deb_cred='C',debito=0.00,credito=31551.96,acumulado=0.00,val_iva=5899.96,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_d10 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25652.00,tot_desconto=0.00,tot_liquido=25652.00,tot_iva=5899.96,tot_valor=31551.96,val_pago=0.00,val_pend=31551.96,suj_valor0=25652.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5899.96,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=31551.96,pendente=31551.96,deb_cred='C',debito=0.00,credito=31551.96,acumulado=0.00,val_iva=5899.96,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_d10 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25652.00,tot_desconto=0.00,tot_liquido=25652.00,tot_iva=5899.96,tot_valor=31551.96,val_pago=0.00,val_pend=31551.96,suj_valor0=25652.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5899.96,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 10:40 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20160801000000,d_venc=20160801000000,ref='',obs='',valor=31551.96,pendente=31551.96,deb_cred='C',debito=0.00,credito=31551.96,acumulado=0.00,val_iva=5899.96,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20160801 10:40 UPDATE documento_d10 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160801000000,d_venc=20160801000000,h_doc=20000101103900,no_cf=1,nome_cf='2121',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25652.00,tot_desconto=0.00,tot_liquido=25652.00,tot_iva=5899.96,tot_valor=31551.96,val_pago=0.00,val_pend=31551.96,suj_valor0=25652.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=5899.96,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 12:33 UPDATE armazems SET numero=1,descricao='ARM1',obs='',cli=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 12:35 INSERT INTO encest (idx,no,desi,abrv,rsv) VALUES(NULL,1,'','','');
20160801 12:35 UPDATE encest SET no=1,desi='',abrv='',rsv='' WHERE IDX=1 LIMIT 1;
20160801 12:35 UPDATE encest SET no=1,desi='EM PROCESSAMENTO',abrv='EP',rsv='' WHERE IDX=1 LIMIT 1;
20160801 12:35 INSERT INTO encest (idx,no,desi,abrv,rsv) VALUES(NULL,2,'','','');
20160801 12:35 UPDATE encest SET no=2,desi='',abrv='',rsv='' WHERE IDX=2 LIMIT 1;
20160801 12:35 UPDATE encest SET no=2,desi='CONCLUIDO',abrv='CO',rsv='' WHERE IDX=2 LIMIT 1;
20160801 12:36 INSERT INTO encest (idx,no,desi,abrv,rsv) VALUES(NULL,3,'','','');
20160801 12:36 UPDATE encest SET no=3,desi='',abrv='',rsv='' WHERE IDX=3 LIMIT 1;
20160801 12:36 UPDATE encest SET no=3,desi='AGUARDA MATERIAL',abrv='AM',rsv='' WHERE IDX=3 LIMIT 1;
20160801 12:36 UPDATE zonas SET codigo='1',descricao='ZONA 1',num_cf=0,rsv='' WHERE IDX=1 LIMIT 1;
20160801 12:36 INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'2','',0,'');
20160801 12:36 UPDATE zonas SET codigo='2',descricao='',num_cf=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 12:36 UPDATE zonas SET codigo='2',descricao='ZONA 2',num_cf=0,rsv='' WHERE IDX=2 LIMIT 1;
20160801 12:37 INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'3','',0,'');
20160801 12:37 UPDATE zonas SET codigo='3',descricao='',num_cf=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 12:37 UPDATE zonas SET codigo='3',descricao='ZONA 3',num_cf=0,rsv='' WHERE IDX=3 LIMIT 1;
20160801 12:37 INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'4','',0,'');
20160801 12:37 UPDATE zonas SET codigo='4',descricao='',num_cf=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 12:37 UPDATE zonas SET codigo='4',descricao='ZONA 4',num_cf=0,rsv='' WHERE IDX=4 LIMIT 1;
20160801 12:37 INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'5','',0,'');
20160801 12:37 UPDATE zonas SET codigo='5',descricao='',num_cf=0,rsv='' WHERE IDX=5 LIMIT 1;
20160801 12:37 UPDATE zonas SET codigo='5',descricao='ZONA 5',num_cf=0,rsv='' WHERE IDX=5 LIMIT 1;
20160801 12:40 TRUNCATE TABLE documento_D1
20160801 12:40 TRUNCATE TABLE documento_linhas_D1
20160801 12:40 TRUNCATE TABLE documento_D1_a_hash
20160801 12:40 TRUNCATE TABLE documento_D2
20160801 12:40 TRUNCATE TABLE documento_linhas_D2
20160801 12:40 TRUNCATE TABLE documento_D2_a_hash
20160801 12:40 TRUNCATE TABLE documento_D3
20160801 12:40 TRUNCATE TABLE documento_linhas_D3
20160801 12:40 TRUNCATE TABLE documento_D3_a_hash
20160801 12:40 TRUNCATE TABLE documento_D5
20160801 12:40 TRUNCATE TABLE documento_linhas_D5
20160801 12:40 TRUNCATE TABLE documento_D5_a_hash
20160801 12:40 TRUNCATE TABLE documento_D6
20160801 12:40 TRUNCATE TABLE documento_linhas_D6
20160801 12:40 TRUNCATE TABLE documento_D6_a_hash
20160801 12:40 TRUNCATE TABLE documento_D7
20160801 12:40 TRUNCATE TABLE documento_linhas_D7
20160801 12:40 TRUNCATE TABLE documento_D7_a_hash
20160801 12:40 TRUNCATE TABLE documento_D10
20160801 12:40 TRUNCATE TABLE documento_linhas_D10
20160801 12:40 TRUNCATE TABLE documento_D10_a_hash
20160801 12:40 TRUNCATE TABLE documento_D11
20160801 12:40 TRUNCATE TABLE documento_linhas_D11
20160801 12:40 TRUNCATE TABLE documento_D11_a_hash
20160801 12:40 TRUNCATE TABLE documento_D13
20160801 12:40 TRUNCATE TABLE documento_linhas_D13
20160801 12:40 TRUNCATE TABLE documento_D13_a_hash
20160801 12:40 TRUNCATE TABLE documento_D14
20160801 12:40 TRUNCATE TABLE documento_linhas_D14
20160801 12:40 TRUNCATE TABLE documento_D14_a_hash
20160801 12:40 TRUNCATE TABLE documento_D15
20160801 12:40 TRUNCATE TABLE documento_linhas_D15
20160801 12:40 TRUNCATE TABLE documento_D15_a_hash
20160801 12:40 TRUNCATE TABLE documento_D16
20160801 12:40 TRUNCATE TABLE documento_linhas_D16
20160801 12:40 TRUNCATE TABLE documento_D16_a_hash
20160801 12:40 TRUNCATE TABLE documento_D17
20160801 12:40 TRUNCATE TABLE documento_linhas_D17
20160801 12:40 TRUNCATE TABLE documento_D17_a_hash
20160801 12:40 Tabla 'emp0001.documento_d17_a_hash' no existe
20160801 12:40 TRUNCATE TABLE documento_D17_a_hash
20160801 12:40 TRUNCATE TABLE documento_D18
20160801 12:40 TRUNCATE TABLE documento_linhas_D18
20160801 12:40 TRUNCATE TABLE documento_D18_a_hash
20160801 12:40 Tabla 'emp0001.documento_d18_a_hash' no existe
20160801 12:40 TRUNCATE TABLE documento_D18_a_hash
20160801 12:40 TRUNCATE TABLE documento_D20
20160801 12:40 TRUNCATE TABLE documento_linhas_D20
20160801 12:40 TRUNCATE TABLE documento_D20_a_hash
20160801 12:40 TRUNCATE TABLE documento_D21
20160801 12:40 TRUNCATE TABLE documento_linhas_D21
20160801 12:40 TRUNCATE TABLE documento_D21_a_hash
20160801 12:40 Tabla 'emp0001.documento_d21_a_hash' no existe
20160801 12:40 TRUNCATE TABLE documento_D21_a_hash
20160801 12:40 TRUNCATE TABLE documento_D22
20160801 12:40 TRUNCATE TABLE documento_linhas_D22
20160801 12:40 TRUNCATE TABLE documento_D22_a_hash
20160801 12:40 Tabla 'emp0001.documento_d22_a_hash' no existe
20160801 12:40 TRUNCATE TABLE documento_D22_a_hash
20160801 12:40 TRUNCATE TABLE documento_R1
20160801 12:40 TRUNCATE TABLE reciboslinhas01
20160801 12:40 TRUNCATE TABLE documento_R2
20160801 12:40 TRUNCATE TABLE reciboslinhas02
20160909 12:16 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,24,0,'',0,0,'',20160909000000,20160909000000,20000101121600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160909 12:17 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20160909 12:17 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,24,'1','ARTIGO 1','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160909 12:17 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,24,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160909 12:17 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,24,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20160909 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=2.3000000,prc_c_iva_1=1.5400000,prc_c_iva_2=2.8300000,stock_minimo=0.000,stock=-11254.450,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20160909 12:17 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=24,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=1.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=78 LIMIT 1;
20160909 12:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=2.3000000,prc_c_iva_1=1.5400000,prc_c_iva_2=2.8300000,stock_minimo=0.000,stock=-11254.450,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20160909 12:17 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=24,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=2.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=78 LIMIT 1;
20160909 12:17 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20160909 12:17 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20160909 12:17 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,99,'1','ARTIGO 1',2.00,0.00,'',24,20170101000000,0.00,'');
20160924 11:38 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'A.M.A','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160924 11:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:38 INSERT INTO familias__artigos_ (idx,codigo,descricao,grupo,categ,rsv) VALUES(NULL,'VERDE','',0,'','');
20160924 11:38 UPDATE familias__artigos_ SET codigo='VERDE',descricao='VINHOS VERDES',grupo=0,categ='',rsv='' WHERE IDX=1 LIMIT 1;
20160924 11:38 UPDATE familias__artigos_ SET codigo='VERDE',descricao='VINHOS VERDES',grupo=0,categ='',rsv='' WHERE IDX=1 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=2.8200000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=2.8200000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.5000000,prc_s_iva_2=0.0000000,prc_c_iva_1=2.8200000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=2.2600000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=2.2600000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=2.0000000,prc_s_iva_2=2.0000000,prc_c_iva_1=2.2600000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=25.0000000,marg_2=0.0000000,prc_s_iva_1=2.5000000,prc_s_iva_2=2.0000000,prc_c_iva_1=2.8200000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=25.0000000,marg_2=0.0000000,prc_s_iva_1=2.5000000,prc_s_iva_2=2.0000000,prc_c_iva_1=2.8200000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=25.0000000,marg_2=0.0000000,prc_s_iva_1=2.5000000,prc_s_iva_2=2.0000000,prc_c_iva_1=2.8200000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=2.7000000,prc_s_iva_2=2.0000000,prc_c_iva_1=3.0500000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=2.7000000,prc_s_iva_2=2.0000000,prc_c_iva_1=3.0500000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=2.7000000,prc_s_iva_2=2.0000000,prc_c_iva_1=3.0500000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=2.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=2.7000000,prc_s_iva_2=2.0000000,prc_c_iva_1=3.0500000,prc_c_iva_2=2.2600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:50 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=4.1200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=5.5600000,prc_s_iva_2=4.1200000,prc_c_iva_1=6.2900000,prc_c_iva_2=4.6600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:50 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=4.1200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=5.5600000,prc_s_iva_2=4.1200000,prc_c_iva_1=6.2900000,prc_c_iva_2=4.6600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 11:50 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=4.1200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=5.5600000,prc_s_iva_2=4.1200000,prc_c_iva_1=6.2900000,prc_c_iva_2=4.6600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8793 LIMIT 1;
20160924 12:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='A.M.A',codigo2='A.M.A',designacao_1='VINHO ALVARINHO MUROS ANTIGO',designacao_2='',abvr='VINHO',no_un_=1,unidade='UN',armazem='',familia='VERDE',ultimo_custo=4.1200000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=2,iva=13.00,marg_1=35.0000000,marg_2=0.0000000,prc_s_iva_1=5.5600000,prc_s_iva_2=4.1200000,prc_c_iva_1=6.2900000,prc_c_iva_2=4.6600000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0.00',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0.00',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='12.25' WHERE IDX=8793 LIMIT 1;
20160926 16:54 UPDATE contas_correntes_clientes SET linha_f=120,cor=0,no=124,doc_mov='D',tp=2,document='N/ Fatura',no_doc=97,d_doc=20160705000000,d_venc=20160705000000,ref='',obs='',valor=1.85,pendente=1.85,deb_cred='D',debito=1.85,credito=0.00,acumulado=0.00,val_iva=0.35,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=78 LIMIT 1;
20160926 16:54 UPDATE documento_d2 SET linhas=1,no_doc=97,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160926 16:54 UPDATE documento_d2 SET linhas=1,no_doc=97,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160926 16:56 UPDATE documento_d2 SET convertido='0' WHERE no_doc='97' and serdoc='A' 
20160926 16:56 UPDATE documento_d2 SET linhas=1,no_doc=97,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20160927 15:54 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1457,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20160927 15:57 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1457,nome_1='Micael Dias',nome_2='',morada='rua irmaos s joao de deus',localidade='4750-117',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160927 15:57 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1457,nome_1='Micael Dias',nome_2='',morada='rua irmaos s joao de deus',localidade='Barcelos',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160927 16:00 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1457,nome_1='Micael Dias',nome_2='',morada='rua irmaos s joao de deus',localidade='Barcelos',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20160927 16:00 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'777','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20160927 16:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='777',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8794 LIMIT 1;
20160927 16:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='777',codigo2='777',designacao_1='calcas',designacao_2='',abvr='calcas',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8794 LIMIT 1;
20160927 16:02 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,98,0,'',0,0,'',20160927000000,20160927000000,20000101160200,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20160927 16:03 UPDATE documento_d2 SET linhas=0,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='777',codigo2='777',designacao_1='calcas',designacao_2='',abvr='calcas',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160927000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8794 LIMIT 1;
20160927 16:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,98,'777','calcas','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160927 16:03 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1457,'D',2,'N/ Fatura',98,20160927000000,20160927000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20160927 16:03 UPDATE documento_d2 SET linhas=0,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-6.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160927000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160927 16:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,98,'&#35;','CASACO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160927 16:03 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=98,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=225 LIMIT 1;
20160927 16:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1457,doc_mov='D',tp=2,document='N/ Fatura',no_doc=98,d_doc=20160927000000,d_venc=20160927000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=82 LIMIT 1;
20160927 16:03 UPDATE documento_d2 SET linhas=0,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1457,doc_mov='D',tp=2,document='N/ Fatura',no_doc=98,d_doc=20160927000000,d_venc=20160927000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=82 LIMIT 1;
20160927 16:04 UPDATE documento_d2 SET linhas=0,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.00,tot_desconto=0.00,tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,val_pago=0.00,val_pend=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;/',codigo2='&#35;/',designacao_1='COLETE',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160927000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=17 LIMIT 1;
20160927 16:04 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,98,'&#35;/','COLETE','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20160927 16:04 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=98,codigo='&#35;/',designacao='COLETE',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=226 LIMIT 1;
20160927 16:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;',codigo2='&#35;',designacao_1='CASACO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-6.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160927000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20160927 16:04 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=98,codigo='&#35;',designacao='CASACO',unidade='',com_iva='',quantidade=1.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=225 LIMIT 1;
20160927 16:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;/',codigo2='&#35;/',designacao_1='COLETE',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160927000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=17 LIMIT 1;
20160927 16:04 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=98,codigo='&#35;/',designacao='COLETE',unidade='',com_iva='',quantidade=1.000000,preco_unit=1158.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1158.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=226 LIMIT 1;
20160927 16:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='&#35;/',codigo2='&#35;/',designacao_1='COLETE',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20160927000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=17 LIMIT 1;
20160927 16:04 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=98,codigo='&#35;/',designacao='COLETE',unidade='',com_iva='',quantidade=1.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=226 LIMIT 1;
20160927 16:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1457,doc_mov='D',tp=2,document='N/ Fatura',no_doc=98,d_doc=20160927000000,d_venc=20160927000000,ref='',obs='',valor=41.82,pendente=41.82,deb_cred='D',debito=41.82,credito=0.00,acumulado=0.00,val_iva=7.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=82 LIMIT 1;
20160927 16:04 UPDATE documento_d2 SET linhas=0,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=34.00,tot_desconto=0.00,tot_liquido=34.00,tot_iva=7.82,tot_valor=41.82,val_pago=0.00,val_pend=41.82,suj_valor0=34.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=7.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:04 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1457,'&#35;','CASACO',12.00,0.00,'',98,20160927000000,0.00,'');
20160927 16:04 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,1457,'&#35;/','COLETE',12.00,0.00,'',98,20160927000000,0.00,'');
20160927 16:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1457,doc_mov='D',tp=2,document='N/ Fatura',no_doc=98,d_doc=20160927000000,d_venc=20160927000000,ref='',obs='',valor=41.82,pendente=41.82,deb_cred='D',debito=41.82,credito=0.00,acumulado=0.00,val_iva=7.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=82 LIMIT 1;
20160927 16:04 UPDATE documento_d2 SET linhas=3,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=34.00,tot_desconto=0.00,tot_liquido=34.00,tot_iva=7.82,tot_valor=41.82,val_pago=0.00,val_pend=41.82,suj_valor0=34.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=7.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1457,doc_mov='D',tp=2,document='N/ Fatura',no_doc=98,d_doc=20160927000000,d_venc=20160927000000,ref='',obs='',valor=41.82,pendente=41.82,deb_cred='D',debito=41.82,credito=0.00,acumulado=0.00,val_iva=7.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=82 LIMIT 1;
20160927 16:04 UPDATE documento_d2 SET linhas=3,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=34.00,tot_desconto=0.00,tot_liquido=34.00,tot_iva=7.82,tot_valor=41.82,val_pago=0.00,val_pend=41.82,suj_valor0=34.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=7.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1457,doc_mov='D',tp=2,document='N/ Fatura',no_doc=98,d_doc=20160927000000,d_venc=20160927000000,ref='',obs='',valor=41.82,pendente=41.82,deb_cred='D',debito=41.82,credito=0.00,acumulado=0.00,val_iva=7.82,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=82 LIMIT 1;
20160927 16:04 UPDATE documento_d2 SET linhas=3,no_doc=98,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=34.00,tot_desconto=0.00,tot_liquido=34.00,tot_iva=7.82,tot_valor=41.82,val_pago=0.00,val_pend=41.82,suj_valor0=34.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=7.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20160927 16:05 UPDATE documento_d2 SET linhas=3,no_doc=98,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160927000000,d_venc=20160927000000,h_doc=20000101160200,no_cf=1457,nome_cf='Micael Dias',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=34.00,tot_desconto=0.00,tot_liquido=34.00,tot_iva=7.82,tot_valor=41.82,val_pago=0.00,val_pend=41.82,suj_valor0=34.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=7.82,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=121 LIMIT 1;
20161003 14:28 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1700.18,saldo1=1700.18,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161003 14:28 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1700.18,saldo1=1700.18,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161003 14:28 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1700.18,saldo1=1700.18,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161003 14:29 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1700.18,saldo1=1700.18,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161003 14:29 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='FORNECWSOE N. 1',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-169',concelho='ARCOZELO BCL',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=1700.18,saldo1=1700.18,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161017 18:11 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,99,0,'',0,0,'',20161017000000,20161017000000,20000101181100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20161017 18:11 UPDATE documento_d2 SET linhas=0,no_doc=99,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161017000000,d_venc=20161116000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=122 LIMIT 1;
20161017 18:11 UPDATE documento_d2 SET linhas=0,no_doc=99,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161017000000,d_venc=20161116000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=122 LIMIT 1;
20161017 18:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,99,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161017 18:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=99,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=227 LIMIT 1;
20161017 18:11 UPDATE documento_d2 SET linhas=0,no_doc=99,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161017000000,d_venc=20161116000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=122 LIMIT 1;
20161017 18:11 UPDATE documento_d2 SET linhas=0,no_doc=99,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161017000000,d_venc=20161116000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=122 LIMIT 1;
20161017 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00T1142',codigo2='00T1142',designacao_1='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20161017000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=37 LIMIT 1;
20161017 18:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=99,codigo='00T1142',designacao='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=227 LIMIT 1;
20161017 18:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=99,codigo='00T1142',designacao='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=227 LIMIT 1;
20161017 18:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00T1142',codigo2='00T1142',designacao_1='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20161017000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=37 LIMIT 1;
20161017 18:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=99,codigo='00T1142',designacao='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=227 LIMIT 1;
20161017 18:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,99,'','ydgfudgfuidgd','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161017 18:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,99,'','dvdvdv','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161017 18:12 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,99,'','vcvvc','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161107 15:55 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20161107 15:56 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20161107 15:56 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20161107 15:56 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20161107 15:56 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20161107 15:56 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20161107 15:56 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20161107 15:56 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='24' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='2.4600' 
20161107 15:56 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20161107 15:56 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=24 
20161107 15:56 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='24' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='2.4600' 
20161107 15:56 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20161107 16:34 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND (c1.d_doc>=00000000 ) AND (c1.d_doc<=20161107 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20161107 16:34 SELECT l1.* FROM  documento_linhas_d11 as l1 LEFT JOIN documento_d11 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND (c1.d_doc>=00000000 ) AND (c1.d_doc<=20161107 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZZZZZZZZ' GROUP BY idx
20161107 16:35 UPDATE documento_d1 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20161107 16:35 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='24' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='2.4600' 
20161107 16:35 UPDATE documento_d1 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20161107 16:35 DELETE from historicocaixa_00 where   docmov='D' and tpdoc=1  and numero=24 
20161107 16:35 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='24' , tm='D' , mp='0' , h=now() , opr='1' , tipo='Numerário' , descricao='Numerário           ' , valor='2.4600' 
20161107 16:35 UPDATE documento_d1 SET linhas=0,no_doc=24,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101121600,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.00,tot_desconto=0.00,tot_liquido=2.00,tot_iva=0.46,tot_valor=2.46,val_pago=2.46,val_pend=0.00,suj_valor0=2.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.46,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=29 LIMIT 1;
20161114 10:13 INSERT INTO documento_d16 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20161114000000,20161114000000,20000101101300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=0,nome_cf='',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 INSERT INTO documento_linhas_d16 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'','jponijp+hok','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161114 10:13 INSERT INTO documento_linhas_d16 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,2,'','jhgjhkm','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161114 10:13 INSERT INTO documento_linhas_d16 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,2,'','hjmjhj,','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='jponijp+hok',unidade='',com_iva='',quantidade=1000.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='jponijp+hok',unidade='',com_iva='',quantidade=1000.000000,preco_unit=25454.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=25454000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='jponijp+hok',unidade='',com_iva='',quantidade=1000.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_linhas_d16 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='jponijp+hok',unidade='',com_iva='',quantidade=1000.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=12300.00,val_pend=0.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=12300.00,val_pend=0.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161114 10:13 UPDATE documento_d16 SET linhas=0,no_doc=2,emitido=1,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161114000000,d_venc=20161114000000,h_doc=20000101101300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10000.00,tot_desconto=0.00,tot_liquido=10000.00,tot_iva=2300.00,tot_valor=12300.00,val_pago=12300.00,val_pend=0.00,suj_valor0=10000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2300.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20161116 14:48 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1245','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20161116 14:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1245',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8795 LIMIT 1;
20161116 14:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1245',codigo2='1245',designacao_1='com‚rcio de cora‡”es com lat”es e ban na',designacao_2='',abvr='com‚rcio de',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8795 LIMIT 1;
20161126 11:27 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,30,0,2,'00T1142','CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',1000.00,0.00,'',99,20161017000000,0.00,'');
20161126 11:28 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,25,0,'',0,0,'',20161126000000,20161126000000,20000101112800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20161126 11:28 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='14GEE',codigo2='14GEE',designacao_1='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=364 LIMIT 1;
20161126 11:28 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,25,'14GEE','CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20161126 11:28 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=25,codigo='14GEE',designacao='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=81 LIMIT 1;
20161126 11:28 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='14GEE',codigo2='14GEE',designacao_1='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=364 LIMIT 1;
20161126 11:28 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=25,codigo='14GEE',designacao='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=81 LIMIT 1;
20161126 11:28 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='08G0100',codigo2='08G0100',designacao_1='CAL&#128;AO 97&#37; ALGODAO 3&#37;ELASTA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=72 LIMIT 1;
20161126 11:28 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,25,'08G0100','CAL&#128;AO 97&#37; ALGODAO 3&#37;ELASTA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20161126 11:28 UPDATE documento_linhas_d1 SET lnh_f=10,cor=0,num_doc=25,codigo='08G0100',designacao='CAL&#128;AO 97&#37; ALGODAO 3&#37;ELASTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=82 LIMIT 1;
20161126 11:28 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='08G0100',codigo2='08G0100',designacao_1='CAL&#128;AO 97&#37; ALGODAO 3&#37;ELASTA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=72 LIMIT 1;
20161126 11:29 UPDATE documento_linhas_d1 SET lnh_f=10,cor=0,num_doc=25,codigo='08G0100',designacao='CAL&#128;AO 97&#37; ALGODAO 3&#37;ELASTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=82 LIMIT 1;
20161126 11:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1301J',codigo2='1301J',designacao_1='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=248 LIMIT 1;
20161126 11:29 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,25,'1301J','CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20161126 11:29 UPDATE documento_linhas_d1 SET lnh_f=15,cor=0,num_doc=25,codigo='1301J',designacao='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=83 LIMIT 1;
20161126 11:29 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=200.00,tot_desconto=0.00,tot_liquido=200.00,tot_iva=46.00,tot_valor=246.00,val_pago=246.00,val_pend=0.00,suj_valor0=200.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:29 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=200.00,tot_desconto=0.00,tot_liquido=200.00,tot_iva=46.00,tot_valor=246.00,val_pago=246.00,val_pend=0.00,suj_valor0=200.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1301J',codigo2='1301J',designacao_1='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=248 LIMIT 1;
20161126 11:29 UPDATE documento_linhas_d1 SET lnh_f=15,cor=0,num_doc=25,codigo='1301J',designacao='CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',unidade='',com_iva='',quantidade=1.000000,preco_unit=21.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=21.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=83 LIMIT 1;
20161126 11:31 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.00,tot_desconto=0.00,tot_liquido=221.00,tot_iva=50.83,tot_valor=271.83,val_pago=271.83,val_pend=0.00,suj_valor0=221.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=50.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161126 11:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='129C',codigo2='129C',designacao_1='CAMISA 100&#37;ALGODAO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='2',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170101000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=230 LIMIT 1;
20161126 11:31 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,25,'129C','CAMISA 100&#37;ALGODAO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,0,1.000,0,'','',0,'A',0,0,'');
20161126 11:31 UPDATE documento_linhas_d1 SET lnh_f=20,cor=0,num_doc=25,codigo='129C',designacao='CAMISA 100&#37;ALGODAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=84 LIMIT 1;
20161126 11:31 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.00,tot_desconto=0.00,tot_liquido=221.00,tot_iva=50.83,tot_valor=271.83,val_pago=271.83,val_pend=0.00,suj_valor0=221.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=50.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20161226 12:11 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,99,'14GEE','CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',100.00,0.00,'',25,20170101000000,0.00,'');
20161226 12:11 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,20,0,99,'08G0100','CAL&#128;AO 97&#37; ALGODAO 3&#37;ELASTA',100.00,0.00,'',25,20170101000000,0.00,'');
20161226 12:11 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,25,0,99,'1301J','CAL&#128;A 97&#37;ALGOD&#142;O 3&#37;ELA',21.00,0.00,'',25,20170101000000,0.00,'');
20170103 14:31 INSERT INTO documento_e1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170103000000,00000000000000,20000101143100,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170103 14:31 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:31 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,rsv) VALUES(NULL,1,1,3,20170103000000,2,'00T1142','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'');
20170103 14:31 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'00T1142','CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,3,1.000,0,'','',0,'A',0,0,'');
20170103 14:31 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,rsv) VALUES(NULL,1,1,3,20170103000000,2,'00T1142','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'');
20170103 14:31 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='00T1142',designacao='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:31 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:31 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,rsv) VALUES(NULL,1,1,3,20170103000000,2,'00T1142','',12.00,0.00,0.00,0.00,0.00,20170103000000,0,'');
20170103 14:31 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='00T1142',designacao='CAL&#128;A 97&#37; ALGODAO 3&#37; ELASTA',unidade='',com_iva='',quantidade=12.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:31 La columna 'pda' en field list es desconocida
20170103 14:31 UPDATE documento_linhas_e1 SET pda='' WHERE IDX=1 LIMIT 1;
20170103 14:31 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:31 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:32 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,2,'//','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:32 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'//','SAIAS','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,4,1.000,0,'','',0,'A',0,0,'');
20170103 14:32 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,2,'//','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:32 UPDATE documento_linhas_e1 SET lnh_f=10,cor=0,num_doc=1,codigo='//',designacao='SAIAS',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:32 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:32 UPDATE documento_e1 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:33 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,2,'00T9104','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:33 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,1,'00T9104','VESTIDO 100&#37; ALGODAO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,4,1.000,0,'','',0,'A',0,0,'');
20170103 14:33 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,2,'00T9104','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:33 UPDATE documento_linhas_e1 SET lnh_f=15,cor=0,num_doc=1,codigo='00T9104',designacao='VESTIDO 100&#37; ALGODAO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20170103 14:33 UPDATE documento_e1 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:33 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,2,'00T9104','',3.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:33 UPDATE documento_linhas_e1 SET lnh_f=15,cor=0,num_doc=1,codigo='00T9104',designacao='VESTIDO 100&#37; ALGODAO',unidade='',com_iva='',quantidade=3.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20170103 14:33 Algo está equivocado en su sintax cerca '>11</ndec><edit>1</edit><zero>1</zero></Edit><Edit><numero>11</n' en la linea 1
20170103 14:33 UPDATE documento_linhas_e1 SET ec>11</ndec><edit>1</edit><zero>1</zero></Edit><Edit><numero>11</numero><tipo>3</tipo><x>603</x><y>66</y><sx>108</sx><sy>16</sy><id>26</id><str>tot-mercadoria</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>12</numero><tipo>3</tipo><x>603</x><y>84</y><sx>108</sx><sy>16</sy><id>27</id><str>tot-desconto</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>13</numero><tipo>3</tipo><x>603</x><y>102</y><sx>108</sx><sy>16</sy><id>28</id><str>tot-lˇquido</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>14</numero><tipo>3</tipo><x>603</x><y>120</y><sx>108</sx><sy>16</sy><id>29</id><str>tot-iva</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>15</numero><tipo>3</tipo><x>603</x><y>138</y><sx>108</sx><sy>16</sy><id>30</id><str>tot-valor</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Static><numero>1</numero><tipo>-1</tipo><x>9</x><y>8</y><sx>246</sx><sy>19</sy><str>Encomenda</str></Static><Static><numero>2</numero><tipo>-1</tipo><x>261</x><y>8</y><sx>21</sx><sy>19</sy><str>Nş</str>='' WHERE IDX=3 LIMIT 1;
20170103 14:33 UPDATE documento_e1 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:33 UPDATE documento_e1 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:33 UPDATE encart_c SET td=1,no=1,lnh=1,d_enc=20170103000000,nocli=2,codigo='1',flg_iva='',qtd_enc=10.00,qtd_ent=0.00,preco=0.00,desc1=0.00,desc2=0.00,d_prev=20170103000000,estado=0,refer='',rsv='' WHERE IDX=1 LIMIT 1;
20170103 14:33 UPDATE encart_c SET td=1,no=1,lnh=4,d_enc=20170103000000,nocli=2,codigo='//',flg_iva='',qtd_enc=2.00,qtd_ent=0.00,preco=0.00,desc1=0.00,desc2=0.00,d_prev=20170103000000,estado=0,refer='',rsv='' WHERE IDX=8 LIMIT 1;
20170103 14:33 DELETE FROM documento_linhas_e1 WHERE  num_doc=1  AND  serdoc='a' 
20170103 14:33 INSERT INTO documento_e1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170103000000,00000000000000,20000101143300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170103 14:33 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:33 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,3,20170103000000,6,'/','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:33 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'/','CAL&#128;AS','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,3,1.000,0,'','',0,'A',0,0,'');
20170103 14:33 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,3,20170103000000,6,'/','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:33 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='/',designacao='CAL&#128;AS',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20170103 14:33 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:33 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,3,20170103000000,6,'/','',13.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:33 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='/',designacao='CAL&#128;AS',unidade='',com_iva='',quantidade=13.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20170103 14:33 Algo está equivocado en su sintax cerca '>11</ndec><edit>1</edit><zero>1</zero></Edit><Edit><numero>11</n' en la linea 1
20170103 14:33 UPDATE documento_linhas_e1 SET ec>11</ndec><edit>1</edit><zero>1</zero></Edit><Edit><numero>11</numero><tipo>3</tipo><x>603</x><y>66</y><sx>108</sx><sy>16</sy><id>26</id><str>tot-mercadoria</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>12</numero><tipo>3</tipo><x>603</x><y>84</y><sx>108</sx><sy>16</sy><id>27</id><str>tot-desconto</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>13</numero><tipo>3</tipo><x>603</x><y>102</y><sx>108</sx><sy>16</sy><id>28</id><str>tot-lˇquido</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>14</numero><tipo>3</tipo><x>603</x><y>120</y><sx>108</sx><sy>16</sy><id>29</id><str>tot-iva</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>15</numero><tipo>3</tipo><x>603</x><y>138</y><sx>108</sx><sy>16</sy><id>30</id><str>tot-valor</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Static><numero>1</numero><tipo>-1</tipo><x>9</x><y>8</y><sx>246</sx><sy>19</sy><str>Encomenda</str></Static><Static><numero>2</numero><tipo>-1</tipo><x>261</x><y>8</y><sx>21</sx><sy>19</sy><str>Nş</str>='' WHERE IDX=4 LIMIT 1;
20170103 14:33 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:33 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:35 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,6,'00T9029','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:35 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'00T9029','VESTIDO 97&#37; ALGODAO 3&#37;ELASTANO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,4,1.000,0,'','',0,'A',0,0,'');
20170103 14:35 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,6,'00T9029','',1.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:35 UPDATE documento_linhas_e1 SET lnh_f=10,cor=0,num_doc=1,codigo='00T9029',designacao='VESTIDO 97&#37; ALGODAO 3&#37;ELASTANO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20170103 14:35 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:35 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,6,'00T9029','',23.00,0.00,0.00,0.00,0.00,20170103000000,0,'','');
20170103 14:35 UPDATE documento_linhas_e1 SET lnh_f=10,cor=0,num_doc=1,codigo='00T9029',designacao='VESTIDO 97&#37; ALGODAO 3&#37;ELASTANO',unidade='',com_iva='',quantidade=23.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20170103 14:35 Algo está equivocado en su sintax cerca '='' WHERE IDX=5 LIMIT 1' en la linea 1
20170103 14:35 UPDATE documento_linhas_e1 SET ='' WHERE IDX=5 LIMIT 1;
20170103 14:35 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:35 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,4,20170103000000,6,'00T9029','',23.00,0.00,12.00,0.00,0.00,20170103000000,0,'','');
20170103 14:35 UPDATE documento_linhas_e1 SET lnh_f=10,cor=0,num_doc=1,codigo='00T9029',designacao='VESTIDO 97&#37; ALGODAO 3&#37;ELASTANO',unidade='',com_iva='',quantidade=23.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=276.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20170103 14:35 Algo está equivocado en su sintax cerca '='' WHERE IDX=5 LIMIT 1' en la linea 1
20170103 14:35 UPDATE documento_linhas_e1 SET ='' WHERE IDX=5 LIMIT 1;
20170103 14:35 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=276.00,tot_desconto=0.00,tot_liquido=276.00,tot_iva=63.48,tot_valor=339.48,val_pago=339.48,val_pend=0.00,suj_valor0=276.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=63.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170103 14:35 UPDATE documento_e1 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170103000000,d_venc=20170103000000,h_doc=20000101143300,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=276.00,tot_desconto=0.00,tot_liquido=276.00,tot_iva=63.48,tot_valor=339.48,val_pago=339.48,val_pend=0.00,suj_valor0=276.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=63.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170110 11:23 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1234,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20170110 11:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:23 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4750-123','BARCELOS','','');
20170110 11:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=4,c_pagamento='A 90 DIAS',prazo=90,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=4,c_pagamento='A 90 DIAS',prazo=90,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=4,c_pagamento='A 90 DIAS',prazo=90,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:24 INSERT INTO condicoes_de_pagamento (idx,no,descricao,prazo,rsv) VALUES(NULL,6,'',0,'');
20170110 11:24 UPDATE condicoes_de_pagamento SET no=6,descricao='',prazo=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:24 UPDATE condicoes_de_pagamento SET no=6,descricao='150 DIAS',prazo=150,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=6,c_pagamento='150 DIAS',prazo=150,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=6,c_pagamento='150 DIAS',prazo=150,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=6,c_pagamento='150 DIAS',prazo=150,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=6,c_pagamento='150 DIAS',prazo=150,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=11,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=6,c_pagamento='150 DIAS',prazo=150,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=11,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1234,nome_1='VETEDONIL, LDA',nome_2='',morada='MORADA',localidade='LOCALIDADE',cod_post='4750-123',concelho='BARCELOS',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456780',telefone='2538256221',fax='',n_cp=6,c_pagamento='150 DIAS',prazo=150,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=11,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20170110 11:26 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'TIJOLO1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20170110 11:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='TIJOLO1',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8796 LIMIT 1;
20170110 11:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='TIJOLO1',codigo2='TIJOLO1',designacao_1='TIJOLO 1',designacao_2='',abvr='TIJOLO 1',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=8796 LIMIT 1;
20170110 11:26 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Fatura',99,20161017000000,20161116000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,0,0,'A','');
20170110 11:26 UPDATE documento_d2 SET linhas=0,no_doc=99,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20161017000000,d_venc=20161116000000,h_doc=20000101181100,no_cf=2,nome_cf='JOAQUIM JOSE',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=122 LIMIT 1;
20170110 11:26 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,100,0,'',0,0,'',20170110000000,20170110000000,20000101112600,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,100,'','TRABALHOS REALLIZADOS','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=100,codigo='',designacao='TRABALHOS REALLIZADOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=231 LIMIT 1;
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=100,codigo='',designacao='TRABALHOS REALLIZADOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=231 LIMIT 1;
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=100,codigo='',designacao='TRABALHOS REALLIZADOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=231 LIMIT 1;
20170110 11:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,100,'*','CONFECIONAR A FEITIO','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
20170110 11:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,100,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='*',codigo2='*',designacao_1='CONFECIONAR A FEITIO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170110000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='',prc_s_iva_3='',prc_c_iva_3='',marg_4='',prc_s_iva_4='',prc_c_iva_4='',peso='' WHERE IDX=21 LIMIT 1;
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=100,codigo='*',designacao='CONFECIONAR A FEITIO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=11,rsv='' WHERE IDX=232 LIMIT 1;
20170110 11:27 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1234,'D',2,'N/ Fatura',100,20170110000000,20170609000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,1,0,'A','');
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.00,tot_desconto=0.00,tot_liquido=1000.00,tot_iva=230.00,tot_valor=1230.00,val_pago=0.00,val_pend=1230.00,suj_valor0=1000.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=230.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='*',codigo2='*',designacao_1='CONFECIONAR A FEITIO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170110000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=100,codigo='*',designacao='CONFECIONAR A FEITIO',unidade='',com_iva='',quantidade=1.000000,preco_unit=12500.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=12500.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=11,rsv='' WHERE IDX=232 LIMIT 1;
20170110 11:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=12500.00,pendente=12500.00,deb_cred='D',debito=12500.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=0.00,tot_valor=12500.00,val_pago=0.00,val_pend=12500.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12500.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=12500.00,pendente=12500.00,deb_cred='D',debito=12500.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=0.00,tot_valor=12500.00,val_pago=0.00,val_pend=12500.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=12500.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,100,'*','CONFECIONAR A FEITIO','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
20170110 11:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,100,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='*',codigo2='*',designacao_1='CONFECIONAR A FEITIO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170110000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=100,codigo='*',designacao='CONFECIONAR A FEITIO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=11,rsv='' WHERE IDX=234 LIMIT 1;
20170110 11:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='*',codigo2='*',designacao_1='CONFECIONAR A FEITIO',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170110000000,baixa='',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20170110 11:27 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=100,codigo='*',designacao='CONFECIONAR A FEITIO',unidade='',com_iva='',quantidade=1.000000,preco_unit=122121.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=122121.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=11,rsv='' WHERE IDX=234 LIMIT 1;
20170110 11:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:27 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,100,'','ALDFGIODFMBE, BELKJBOLEMBL€ETB','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,100,'','SVFDVFDVF','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:28 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:28 UPDATE documento_d2 SET linhas=0,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:28 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1234,'*','CONFECIONAR A FEITIO',12500.00,0.00,'',100,20170110000000,0.00,'');
20170110 11:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:28 UPDATE documento_d2 SET linhas=4,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:28 UPDATE documento_d2 SET linhas=4,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:29 INSERT INTO documento_d5 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,3,0,'',0,0,'',20170110000000,20170110000000,20000101112900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170110 11:29 UPDATE documento_d5 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,3,'','HGDHEGFEWVF','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=223.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=223.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=223.0000000,desc1=23.0000000,desc_1=51.2900000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=171.71,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=223.0000000,desc1=23.0000000,desc_1=51.2900000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=171.71,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=223.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=223.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=223.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=223.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,3,'','HGDSHJCGDHCGSDCGHHSJKD','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:29 UPDATE documento_d5 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=223.00,tot_desconto=0.00,tot_liquido=223.00,tot_iva=51.29,tot_valor=274.29,val_pago=274.29,val_pend=0.00,suj_valor0=223.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.29,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=223.00,tot_desconto=0.00,tot_liquido=223.00,tot_iva=51.29,tot_valor=274.29,val_pago=274.29,val_pend=0.00,suj_valor0=223.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.29,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=223.00,tot_desconto=0.00,tot_liquido=223.00,tot_iva=51.29,tot_valor=274.29,val_pago=274.29,val_pend=0.00,suj_valor0=223.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.29,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=223.00,tot_desconto=0.00,tot_liquido=223.00,tot_iva=51.29,tot_valor=274.29,val_pago=274.29,val_pend=0.00,suj_valor0=223.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.29,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=223.00,tot_desconto=0.00,tot_liquido=223.00,tot_iva=51.29,tot_valor=274.29,val_pago=274.29,val_pend=0.00,suj_valor0=223.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=51.29,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_linhas_d5 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='HGDHEGFEWVF',unidade='',com_iva='',quantidade=1.000000,preco_unit=385.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=385.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 INSERT INTO documento_linhas_d5 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,3,'','BANANA BANANA','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:29 UPDATE documento_d5 SET linhas=2,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=3,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:29 UPDATE documento_d5 SET linhas=3,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=100,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=134621.00,pendente=134621.00,deb_cred='D',debito=134621.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=84 LIMIT 1;
20170110 11:30 UPDATE documento_d2 SET linhas=4,no_doc=100,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112600,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=134621.00,tot_desconto=0.00,tot_liquido=134621.00,tot_iva=0.00,tot_valor=134621.00,val_pago=0.00,val_pend=134621.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=134621.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=123 LIMIT 1;
20170110 11:30 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,3,101,0,'',1,0,'',20170110000000,20170609000000,20000101113000,1234,'VETEDONIL, LDA',0.00,0,'',1,0,0.00,6,'150 DIAS',150,0,'','',0,'',385.00,0.00,385.00,88.55,473.55,0.00,473.55,385.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,88.55,0.00,0.00,0.00,0,'',00000000000000,'EURO',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170110 11:30 UPDATE documento_d5 SET linhas=3,no_doc=3,emitido=1,anulado='',no_moed=1,convertido=101,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101112900,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=473.55,val_pend=0.00,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=2,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=4 LIMIT 1;
20170110 11:30 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,101,'','FATURA PRO-FORMA N. 3 de 10-01-2017','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20170110000000,0,0,0.000,3,'','',0,'A',0,0,'');
20170110 11:30 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,101,'','HGDHEGFEWVF','','',1.000000,385.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,385.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20170110000000,0,0,0.000,3,'','',0,'A',0,0,'');
20170110 11:30 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,101,'','HGDSHJCGDHCGSDCGHHSJKD','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20170110000000,0,0,0.000,3,'','',0,'A',0,0,'');
20170110 11:30 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,20,0,101,'','BANANA BANANA','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,20170110000000,0,0,0.000,3,'','',0,'A',0,0,'');
20170110 11:30 UPDATE documento_d2 SET linhas=3,no_doc=101,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101113000,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=385.00,tot_desconto=0.00,tot_liquido=385.00,tot_iva=88.55,tot_valor=473.55,val_pago=0.00,val_pend=473.55,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=124 LIMIT 1;
20170110 11:30 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1234,'D',2,'N/ Fatura',101,20170110000000,20170609000000,'','',473.55,473.55,'D',473.55,0.00,0.00,88.55,0.00,1.000000,1,0,'A','');
20170110 11:31 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'B1223','B1223','ARTIGO B12233','','ARTIGO B12233',0,'','','',0.0000000,0.0000000,0.0000000,4,0.00,0.0000000,0.0000000,10.0000000,0.0000000,10.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20170110 11:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,25,0,101,'B1223','ARTIGO B12233','','',0.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,11,'');
20170110 11:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,30,0,101,'','IVA - autoliquida‡Ćo','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170110 11:31 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='B1223',codigo2='B1223',designacao_1='ARTIGO B12233',designacao_2='',abvr='ARTIGO B12233',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=4,iva=0.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170110000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=8797 LIMIT 1;
20170110 11:31 UPDATE documento_linhas_d2 SET lnh_f=25,cor=0,num_doc=101,codigo='B1223',designacao='ARTIGO B12233',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=11,rsv='' WHERE IDX=242 LIMIT 1;
20170110 11:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=101,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=483.55,pendente=483.55,deb_cred='D',debito=483.55,credito=0.00,acumulado=0.00,val_iva=88.55,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=85 LIMIT 1;
20170110 11:31 UPDATE documento_d2 SET linhas=3,no_doc=101,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101113000,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=395.00,tot_desconto=0.00,tot_liquido=395.00,tot_iva=88.55,tot_valor=483.55,val_pago=0.00,val_pend=483.55,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=124 LIMIT 1;
20170110 11:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=101,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=483.55,pendente=483.55,deb_cred='D',debito=483.55,credito=0.00,acumulado=0.00,val_iva=88.55,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=85 LIMIT 1;
20170110 11:31 UPDATE documento_d2 SET linhas=3,no_doc=101,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101113000,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=395.00,tot_desconto=0.00,tot_liquido=395.00,tot_iva=88.55,tot_valor=483.55,val_pago=0.00,val_pend=483.55,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=124 LIMIT 1;
20170110 11:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1234,doc_mov='D',tp=2,document='N/ Fatura',no_doc=101,d_doc=20170110000000,d_venc=20170609000000,ref='',obs='',valor=483.55,pendente=483.55,deb_cred='D',debito=483.55,credito=0.00,acumulado=0.00,val_iva=88.55,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=85 LIMIT 1;
20170110 11:31 UPDATE documento_d2 SET linhas=3,no_doc=101,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101113000,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=395.00,tot_desconto=0.00,tot_liquido=395.00,tot_iva=88.55,tot_valor=483.55,val_pago=0.00,val_pend=483.55,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=124 LIMIT 1;
20170110 11:31 UPDATE documento_d2 SET linhas=3,no_doc=101,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101113000,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=395.00,tot_desconto=0.00,tot_liquido=395.00,tot_iva=88.55,tot_valor=483.55,val_pago=0.00,val_pend=483.55,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=124 LIMIT 1;
20170110 11:31 UPDATE documento_d2 SET convertido='0' WHERE no_doc='101' and serdoc='A' 
20170110 11:32 UPDATE documento_d2 SET linhas=3,no_doc=101,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170110000000,d_venc=20170609000000,h_doc=20000101113000,no_cf=1234,nome_cf='VETEDONIL, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=6,cond_pagam='150 DIAS',prazo=150,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=395.00,tot_desconto=0.00,tot_liquido=395.00,tot_iva=88.55,tot_valor=483.55,val_pago=0.00,val_pend=483.55,suj_valor0=385.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=10.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=88.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=124 LIMIT 1;
20170110 11:32 UPDATE documento_d2 SET convertido='0' WHERE no_doc='101' and serdoc='A' 
20170110 11:39 UPDATE documento_d2 SET convertido='0' WHERE no_doc='101' and serdoc='A' 
20170112 14:53 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,102,0,'',0,0,'',20170112000000,20170112000000,20000101145300,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170112 14:53 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,220,'NOME DO CLIENTE, LDA','','MORADA DO CLIENTE','LOCALIDADE','4750-123','BARCELOS','','',0,'','123456789','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20170112 14:53 UPDATE documento_d2 SET linhas=0,no_doc=102,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170112000000,d_venc=20170112000000,h_doc=20000101145300,no_cf=220,nome_cf='NOME DO CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=125 LIMIT 1;
20170112 14:53 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,102,'','SERVICOS','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170112 14:53 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=102,codigo='',designacao='SERVICOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=244 LIMIT 1;
20170112 14:54 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=102,codigo='',designacao='SERVICOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=12500.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=12500.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=244 LIMIT 1;
20170112 14:54 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=102,codigo='',designacao='SERVICOS',unidade='',com_iva='',quantidade=1.000000,preco_unit=12500.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=12500.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=244 LIMIT 1;
20170112 14:54 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,220,'D',2,'N/ Fatura',102,20170112000000,20170112000000,'','',15375.00,15375.00,'D',15375.00,0.00,0.00,2875.00,0.00,1.000000,0,0,'A','');
20170112 14:54 UPDATE documento_d2 SET linhas=0,no_doc=102,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170112000000,d_venc=20170112000000,h_doc=20000101145300,no_cf=220,nome_cf='NOME DO CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=2875.00,tot_valor=15375.00,val_pago=0.00,val_pend=15375.00,suj_valor0=12500.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2875.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=125 LIMIT 1;
20170112 14:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=220,doc_mov='D',tp=2,document='N/ Fatura',no_doc=102,d_doc=20170112000000,d_venc=20170112000000,ref='',obs='',valor=15375.00,pendente=15375.00,deb_cred='D',debito=15375.00,credito=0.00,acumulado=0.00,val_iva=2875.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=86 LIMIT 1;
20170112 14:54 UPDATE documento_d2 SET linhas=1,no_doc=102,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170112000000,d_venc=20170112000000,h_doc=20000101145300,no_cf=220,nome_cf='NOME DO CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=2875.00,tot_valor=15375.00,val_pago=0.00,val_pend=15375.00,suj_valor0=12500.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2875.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=125 LIMIT 1;
20170112 14:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=220,doc_mov='D',tp=2,document='N/ Fatura',no_doc=102,d_doc=20170112000000,d_venc=20170112000000,ref='',obs='',valor=15375.00,pendente=15375.00,deb_cred='D',debito=15375.00,credito=0.00,acumulado=0.00,val_iva=2875.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=86 LIMIT 1;
20170112 14:54 UPDATE documento_d2 SET linhas=1,no_doc=102,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170112000000,d_venc=20170112000000,h_doc=20000101145300,no_cf=220,nome_cf='NOME DO CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=2875.00,tot_valor=15375.00,val_pago=0.00,val_pend=15375.00,suj_valor0=12500.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2875.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=125 LIMIT 1;
20170112 14:55 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=220,doc_mov='D',tp=2,document='N/ Fatura',no_doc=102,d_doc=20170112000000,d_venc=20170112000000,ref='',obs='',valor=15375.00,pendente=15375.00,deb_cred='D',debito=15375.00,credito=0.00,acumulado=0.00,val_iva=2875.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=86 LIMIT 1;
20170112 14:55 UPDATE documento_d2 SET linhas=1,no_doc=102,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170112000000,d_venc=20170112000000,h_doc=20000101145300,no_cf=220,nome_cf='NOME DO CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=2875.00,tot_valor=15375.00,val_pago=0.00,val_pend=15375.00,suj_valor0=12500.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2875.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=125 LIMIT 1;
20170112 14:55 UPDATE documento_d2 SET linhas=1,no_doc=102,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170112000000,d_venc=20170112000000,h_doc=20000101145300,no_cf=220,nome_cf='NOME DO CLIENTE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12500.00,tot_desconto=0.00,tot_liquido=12500.00,tot_iva=2875.00,tot_valor=15375.00,val_pago=0.00,val_pend=15375.00,suj_valor0=12500.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2875.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=125 LIMIT 1;
20170117 10:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='97' and serdoc='A' 
20170117 10:53 UPDATE documento_d2 SET linhas=1,no_doc=97,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145600,no_cf=124,nome_cf='NOME DA EMPREDSA LDFAD',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.50,tot_desconto=0.00,tot_liquido=1.50,tot_iva=0.35,tot_valor=1.85,val_pago=0.00,val_pend=1.85,suj_valor0=1.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.35,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=120 LIMIT 1;
20170130 11:47 UPDATE contas_correntes_fornecedores SET linha_f=26,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='12134545',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20170130 11:47 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='12134545',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.64,irs=20.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20170130 11:47 UPDATE contas_correntes_fornecedores SET linha_f=26,cor=0,no=2,doc_mov='D',tp=10,document='V/ Fatura',no_doc=17,d_doc=20160705000000,d_venc=20160705000000,ref='12134545',obs='',valor=3.91,pendente=3.91,deb_cred='C',debito=0.00,credito=3.91,acumulado=0.00,val_iva=0.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20170130 11:47 UPDATE documento_d10 SET linhas=4,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='12134545',d_doc=20160705000000,d_venc=20160705000000,h_doc=20000101145700,no_cf=2,nome_cf='kaehjfl‡v',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3.18,tot_desconto=0.00,tot_liquido=3.18,tot_iva=0.73,tot_valor=3.91,val_pago=0.00,val_pend=3.91,suj_valor0=3.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.64,irs=20.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=26 LIMIT 1;
20170201 17:38 INSERT INTO documento_d18 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170201000000,20170201000000,20000101173800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170201 17:38 UPDATE documento_d18 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 INSERT INTO documento_linhas_d18 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'1','ARTIGO 1','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:38 INSERT INTO documento_linhas_d18 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,1,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:38 INSERT INTO documento_linhas_d18 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,1,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=2.3000000,prc_c_iva_1=1.5375000,prc_c_iva_2=2.8290000,stock_minimo=0.000,stock=-11253.450,stock_maximo=0.000,no_forn=0,d_entrada=20170201000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20170201 17:38 UPDATE documento_linhas_d18 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 INSERT INTO artigos_hist (idx,linha,cor,codigo,num_f,nome_f,preco,desc1,desc2,data,rsv) VALUES(NULL,24,0,'1',1,'FORNECWSOE N. 1',100.00,0.00,0.00,20170201000000,'');
20170201 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=100.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=100.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=123.0000000,stock_minimo=0.000,stock=-11253.450,stock_maximo=0.000,no_forn=0,d_entrada=20170201000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20170201 17:38 UPDATE documento_linhas_d18 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20170201 17:38 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=4,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20170201 17:38 INSERT INTO documento_d18 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20170201000000,20170201000000,20000101173800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170201 17:38 UPDATE documento_d18 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170201 17:38 INSERT INTO documento_linhas_d18 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'1','ARTIGO 1','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:38 INSERT INTO documento_linhas_d18 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,2,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:38 INSERT INTO documento_linhas_d18 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,2,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=100.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=100.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=123.0000000,stock_minimo=0.000,stock=-11252.450,stock_maximo=0.000,no_forn=0,d_entrada=20170201000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20170201 17:38 UPDATE documento_linhas_d18 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=3,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=3,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170201 17:38 UPDATE documento_d18 SET linhas=3,no_doc=2,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170201 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=100.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=100.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=123.0000000,stock_minimo=0.000,stock=-11253.450,stock_maximo=0.000,no_forn=0,d_entrada=20170201000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20170201 17:38 DELETE FROM documento_linhas_d18 WHERE  num_doc=2  AND  serdoc='a' 
20170201 17:38 UPDATE documento_d18 SET linhas=3,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173800,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170201 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=100.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=100.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=123.0000000,stock_minimo=0.000,stock=-11254.450,stock_maximo=0.000,no_forn=0,d_entrada=20170201000000,d_saida=20170101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20170201 17:38 DELETE FROM documento_linhas_d18 WHERE  num_doc=1  AND  serdoc='a' 
20170201 17:38 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=3,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20170201 17:39 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.00,tot_desconto=0.00,tot_liquido=221.00,tot_iva=50.83,tot_valor=271.83,val_pago=271.83,val_pend=0.00,suj_valor0=221.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=50.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20170201 17:39 REPLACE historicocaixa_00 SET  data=now() , tpdoc='1' , docmov='D' , numero='25' , tm='D' , mp='0' , h=now() , opr='1' , tipo='FATURA - RECIBOFATURA - RECIBO     ' , descricao='FATURA - RECIBO     ' , valor='271.8300' 
20170201 17:39 UPDATE documento_d1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170101000000,d_venc=20170101000000,h_doc=20000101112800,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.00,tot_desconto=0.00,tot_liquido=221.00,tot_iva=50.83,tot_valor=271.83,val_pago=271.83,val_pend=0.00,suj_valor0=221.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=50.83,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=30 LIMIT 1;
20170201 17:39 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,26,0,'',0,0,'',20170201000000,20170201000000,20000101173900,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170201 17:39 UPDATE documento_d1 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173900,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=31 LIMIT 1;
20170201 17:39 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,26,'1','ARTIGO 1','UN','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:39 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,10,0,26,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:39 INSERT INTO documento_linhas_d1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,15,0,26,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.00,0.00,0.00,0.00,00000000000000,0,0,0.000,0,'','',0,'A',0,0,'');
20170201 17:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO 1',designacao_2='',abvr='ARTIGO 1',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=100.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=100.0000000,prc_s_iva_2=100.0000000,prc_c_iva_1=123.0000000,prc_c_iva_2=123.0000000,stock_minimo=0.000,stock=-11255.450,stock_maximo=0.000,no_forn=0,d_entrada=20170201000000,d_saida=20170201000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='3.1',prc_c_iva_3='3.81',marg_4='0',prc_s_iva_4='4.25',prc_c_iva_4='5.23',peso='' WHERE IDX=8 LIMIT 1;
20170201 17:39 UPDATE documento_linhas_d1 SET lnh_f=5,cor=0,num_doc=26,codigo='1',designacao='ARTIGO 1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=123.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=123.00,ult_custo=100.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=85 LIMIT 1;
20170201 17:39 UPDATE documento_d1 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173900,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=31 LIMIT 1;
20170201 17:39 UPDATE documento_d1 SET linhas=3,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173900,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=31 LIMIT 1;
20170201 17:39 UPDATE documento_d1 SET linhas=3,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170201000000,d_venc=20170201000000,h_doc=20000101173900,no_cf=99,nome_cf='CONSUMIDOR FINAL',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.00,tot_desconto=0.00,tot_liquido=100.00,tot_iva=23.00,tot_valor=123.00,val_pago=123.00,val_pend=0.00,suj_valor0=100.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=23.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=31 LIMIT 1;
20170207 10:28 INSERT INTO documento_e1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,2,0,'',0,0,'',20170207000000,00000000000000,20000101102800,0,'',0.00,0,'',1,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',0,'');
20170207 10:28 UPDATE documento_e1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101102800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:28 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,2,1,20170207000000,6,'&#35;/','',1.00,0.00,0.00,0.00,0.00,20170207000000,0,'','');
20170207 10:28 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'&#35;/','COLETE','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,1,1.000,0,'','',0,'A',0,0,'');
20170207 10:28 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,2,1,20170207000000,6,'&#35;/','',1.00,0.00,0.00,0.00,0.00,20170207000000,0,'','');
20170207 10:28 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=2,codigo='&#35;/',designacao='COLETE',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=1,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=6 LIMIT 1;
20170207 10:28 UPDATE documento_e1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101102800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:29 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,2,1,20170207000000,6,'123','',1.00,0.00,1.18,0.00,0.00,20170207000000,0,'','');
20170207 10:29 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,2,'123','srtigo 123','','',1.000000,1.1800000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.18,0.0000000,0.0000000,0,0,0,'','',1.00,0.00,0.00,0.00,0.00,00000000000000,0,1,1.000,0,'','',0,'A',0,0,'');
20170207 10:29 La columna 'pda' en field list es desconocida
20170207 10:29 UPDATE documento_linhas_e1 SET pda='' WHERE IDX=7 LIMIT 1;
20170207 10:29 UPDATE documento_e1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101102800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.18,tot_desconto=0.00,tot_liquido=1.18,tot_iva=0.27,tot_valor=1.45,val_pago=1.45,val_pend=0.00,suj_valor0=1.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.27,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:29 UPDATE documento_e1 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101102800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.18,tot_desconto=0.00,tot_liquido=1.18,tot_iva=0.27,tot_valor=1.45,val_pago=1.45,val_pend=0.00,suj_valor0=1.18,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.27,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:29 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,2,1,20170207000000,6,'123','',2.00,0.00,1.18,0.00,0.00,20170207000000,0,'','');
20170207 10:29 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=2,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=2.000000,preco_unit=1.1800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2.36,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.00,m_largura=0.00,m_extra=0.00,preco_serv=0.00,d_val=00000000000000,n_enc=0,linha_enc=1,qtd_por_emb=1.000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20170207 10:29 Algo está equivocado en su sintax cerca '>11</ndec><edit>1</edit><zero>1</zero></Edit><Edit><numero>11</n' en la linea 1
20170207 10:29 UPDATE documento_linhas_e1 SET ec>11</ndec><edit>1</edit><zero>1</zero></Edit><Edit><numero>11</numero><tipo>3</tipo><x>603</x><y>66</y><sx>108</sx><sy>16</sy><id>26</id><str>tot-mercadoria</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>12</numero><tipo>3</tipo><x>603</x><y>84</y><sx>108</sx><sy>16</sy><id>27</id><str>tot-desconto</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>13</numero><tipo>3</tipo><x>603</x><y>102</y><sx>108</sx><sy>16</sy><id>28</id><str>tot-lˇquido</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>14</numero><tipo>3</tipo><x>603</x><y>120</y><sx>108</sx><sy>16</sy><id>29</id><str>tot-iva</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Edit><numero>15</numero><tipo>3</tipo><x>603</x><y>138</y><sx>108</sx><sy>16</sy><id>30</id><str>tot-valor</str><sizej>12</sizej><sizer>12</sizer><ndec>11</ndec></Edit><Static><numero>1</numero><tipo>-1</tipo><x>9</x><y>8</y><sx>246</sx><sy>19</sy><str>Encomenda</str></Static><Static><numero>2</numero><tipo>-1</tipo><x>261</x><y>8</y><sx>21</sx><sy>19</sy><str>Nş</str>='' WHERE IDX=7 LIMIT 1;
20170207 10:30 UPDATE documento_e1 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101102800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.36,tot_desconto=0.00,tot_liquido=2.36,tot_iva=0.54,tot_valor=2.90,val_pago=2.90,val_pend=0.00,suj_valor0=2.36,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.54,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:30 UPDATE documento_e1 SET linhas=1,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101102800,no_cf=6,nome_cf='ANTONIO JOSE, LDA',desconto=0.00,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.36,tot_desconto=0.00,tot_liquido=2.36,tot_iva=0.54,tot_valor=2.90,val_pago=2.90,val_pend=0.00,suj_valor0=2.36,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.54,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=0,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:40 UPDATE encart_c SET td=1,no=2,lnh=1,d_enc=20170207000000,nocli=6,codigo='123',flg_iva='',qtd_enc=2.00,qtd_ent=0.00,preco=1.18,desc1=0.00,desc2=0.00,d_prev=20170207000000,estado=0,refer='',rsv='' WHERE IDX=19 LIMIT 1;
20170207 10:40 DELETE FROM documento_linhas_e1 WHERE  num_doc=2  AND  serdoc='a' 
20170207 10:41 UPDATE encart_c SET td=1,no=1,lnh=1,d_enc=20170103000000,nocli=6,codigo='1',flg_iva='',qtd_enc=10.00,qtd_ent=0.00,preco=0.00,desc1=0.00,desc2=0.00,d_prev=20170103000000,estado=0,refer='',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:41 DELETE FROM documento_linhas_e1 WHERE  num_doc=1  AND  serdoc='a' 
20170207 10:41 INSERT INTO documento_e1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170207000000,00000000000000,20000101104100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170207 10:41 UPDATE encart_c SET td=1,no=1,lnh=1,d_enc=20170207000000,nocli=4,codigo='1',flg_iva='',qtd_enc=10.00,qtd_ent=0.00,preco=0.00,desc1=0.00,desc2=0.00,d_prev=20170207000000,estado=0,refer='',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:41 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104100,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170207 10:41 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,refer,rsv) VALUES(NULL,1,1,3,20170207000000,4,'123','',1.00,0.00,1.18,0.00,0.00,20170207000000,0,'','');
20170207 10:41 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'123','srtigo 123','','',1.000000,1.1800000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,1.18,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,3,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170207 10:41 REPLACE encart_c SET  td='1' , no='1' , lnh='3' , d_enc='20170207' , nocli='4' , codigo='123' , flg_iva='' , qtd_enc='2' , qtd_ent='0' , preco='1' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='2' , refer='' 
20170207 10:41 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104100,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1.1800,tot_desconto=0.0000,tot_liquido=1.1800,tot_iva=0.2700,tot_valor=1.4500,val_pago=1.4500,val_pend=0.0000,suj_valor0=1.1800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.2700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170207 10:41 La columna 'qtd_falta' en field list es desconocida
20170207 10:41 REPLACE encart_c SET  td='1' , no='1' , lnh='3' , d_enc='20170207' , nocli='4' , codigo='123' , flg_iva='' , qtd_enc='2' , qtd_ent='0' , preco='1' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='2' , refer='' 
20170207 10:41 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=2.000000,preco_unit=1.1800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2.36,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20170207 10:43 REPLACE encart_c SET  td='1' , no='1' , lnh='3' , d_enc='20170207' , nocli='4' , codigo='123' , flg_iva='' , qtd_enc='1' , qtd_ent='0' , preco='1' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='1' , refer='' 
20170207 10:43 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.1800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.18,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20170207 10:43 REPLACE encart_c SET  td='1' , no='1' , lnh='3' , d_enc='20170207' , nocli='4' , codigo='123' , flg_iva='' , qtd_enc='2' , qtd_ent='0' , preco='1' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='2' , refer='' 
20170207 10:43 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=2.000000,preco_unit=1.1800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2.36,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20170207 10:44 REPLACE encart_c SET  td='1' , no='1' , lnh='3' , d_enc='20170207' , nocli='4' , codigo='123' , flg_iva='' , qtd_enc='4' , qtd_ent='0' , preco='1' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='4' , refer='' 
20170207 10:44 UPDATE documento_linhas_e1 SET lnh_f=5,cor=0,num_doc=1,codigo='123',designacao='srtigo 123',unidade='',com_iva='',quantidade=4.000000,preco_unit=1.1800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=4.72,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=3,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20170207 10:45 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,qtd_falta,refer,rsv) VALUES(NULL,1,1,4,20170207000000,4,'321','',1.00,0.00,0.99,0.00,0.00,20170207000000,0,0.00,'','');
20170207 10:45 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',1.000000,0.9900000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.99,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,4,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170207 10:45 REPLACE encart_c SET  td='1' , no='1' , lnh='4' , d_enc='20170207' , nocli='4' , codigo='321' , flg_iva='' , qtd_enc='5' , qtd_ent='0' , preco='0' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='5' , refer='' 
20170207 10:45 UPDATE documento_linhas_e1 SET lnh_f=10,cor=0,num_doc=1,codigo='321',designacao='CAL&#128;A 100&#37; ALGOD&#142;O',unidade='',com_iva='',quantidade=5.000000,preco_unit=0.9900000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=4.95,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=4,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=9 LIMIT 1;
20170207 10:45 INSERT INTO encart_c (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,qtd_falta,refer,rsv) VALUES(NULL,1,1,5,20170207000000,4,'A12','',1.00,0.00,0.00,0.00,0.00,20170207000000,0,0.00,'','');
20170207 10:45 INSERT INTO documento_linhas_e1 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'A12','BLUSA 100&#37;POLYESTER','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,5,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170207 10:45 REPLACE encart_c SET  td='1' , no='1' , lnh='5' , d_enc='20170207' , nocli='4' , codigo='A12' , flg_iva='' , qtd_enc='23' , qtd_ent='0' , preco='0' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='23' , refer='' 
20170207 10:45 UPDATE documento_linhas_e1 SET lnh_f=15,cor=0,num_doc=1,codigo='A12',designacao='BLUSA 100&#37;POLYESTER',unidade='',com_iva='',quantidade=23.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=5,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20170207 10:45 REPLACE encart_c SET  td='1' , no='1' , lnh='5' , d_enc='20170207' , nocli='4' , codigo='A12' , flg_iva='' , qtd_enc='23' , qtd_ent='0' , preco='12' , desc1='0' , desc2='0' , d_prev='20170207' , estado='0' , qtd_falta='23' , refer='' 
20170207 10:45 UPDATE documento_linhas_e1 SET lnh_f=15,cor=0,num_doc=1,codigo='A12',designacao='BLUSA 100&#37;POLYESTER',unidade='',com_iva='',quantidade=23.000000,preco_unit=12.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=276.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=5,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20170207 10:45 UPDATE documento_e1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104100,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=285.6700,tot_desconto=0.0000,tot_liquido=285.6700,tot_iva=65.7000,tot_valor=351.3700,val_pago=351.3700,val_pend=0.0000,suj_valor0=285.6700,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=65.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170207 10:45 UPDATE documento_e1 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104100,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=285.6700,tot_desconto=0.0000,tot_liquido=285.6700,tot_iva=65.7000,tot_valor=351.3700,val_pago=351.3700,val_pend=0.0000,suj_valor0=285.6700,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=65.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170207 10:45 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,103,0,'',0,0,'',20170207000000,20170207000000,20000101104500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170207 10:45 UPDATE documento_d2 SET linhas=0,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170207 10:45 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,103,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170207 10:45 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 10:45 UPDATE documento_d2 SET linhas=0,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170207 10:45 UPDATE documento_d2 SET linhas=1,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170207 10:45 UPDATE documento_d2 SET linhas=1,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170207 10:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 10:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 10:46 UPDATE documento_d2 SET linhas=1,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170207 10:46 UPDATE documento_d2 SET linhas=1,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170207 10:47 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.nocli>='4' AND a.nocli<='4' AND a.d_enc>=19700101 AND a.d_enc<=20170207 ORDER BY a.nocli,a.d_enc
20170207 10:48 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:48 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:48 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 10:48 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 10:48 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 10:48 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 10:48 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 10:48 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 10:48 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.nocli>='4' AND a.nocli<='4' AND a.d_enc>=19700101 AND a.d_enc<=20170207 ORDER BY a.nocli,a.d_enc
20170207 10:51 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:51 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:51 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 10:51 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 10:51 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 10:51 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 10:51 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 10:52 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=3,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20170207 10:52 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=3,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20170207 10:52 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='E',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=3,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20170207 10:53 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20170207 10:53 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20170207 10:53 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20170207 10:53 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:53 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:53 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 10:53 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 10:53 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 10:53 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 10:53 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 10:53 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.nocli>='4' AND a.nocli<='4' AND a.d_enc>=19700101 AND a.d_enc<=20170207 ORDER BY a.nocli,a.d_enc
20170207 10:53 INSERT INTO doc2d (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170207000000,20170207000000,20000101000000,4,'FDFD',0.00,2,'',0,0,0.00,0,'',0,0,'','',0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'',00000000000000,'',0.0000000,'',0,0.00,0.00,0.00,0,0.00,'A',1,'');
20170207 10:53 INSERT INTO doc2dlnh (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,rsv) VALUES(NULL,5,0,1,'321','CAL&#128;A 100&#37; ALGOD&#142;O','','',5.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.5600000,0.0000000,0,0,0,'E','',1.00,0.00,0.00,0.00,0.00,00000000000000,1,4,1.000,0,'','',0,'A',1,0,'');
20170207 10:53 UPDATE doc2d SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101105300,no_cf=4,nome_cf='FDFD',desconto=0.00,linha_pre=2,observacao='',no_operador=1,no_vended=0,comissao=0.00,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.00,tot_desconto=0.00,tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,val_pago=0.00,val_pend=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.00,bruto=0.00,irs=0.00,morada=0,custos=0.00,serdoc='A',tpdoc=1,rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:54 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.nocli>='4' AND a.nocli<='4' AND a.d_enc>=19700101 AND a.d_enc<=20170207 ORDER BY a.nocli,a.d_enc
20170207 10:55 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:55 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:55 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 10:55 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 10:55 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 10:55 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 10:55 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 10:58 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:58 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 10:58 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 10:58 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 10:58 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 10:58 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 10:58 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 10:58 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc2 int,linha int(5),estado char(3),tipo int(5),rsv char(25),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (no_doc,lnh_f) );
20170207 10:58 CREATE TABLE IF NOT EXISTS doc2d (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX doc2d_1 (serdoc,tpdoc,no_doc) ,INDEX doc2d_2 (serdoc,tpdoc,no_cf,no_doc) ,INDEX doc2d_3 (serdoc,tpdoc,d_doc,no_doc) );
20170207 10:58 CREATE TABLE IF NOT EXISTS doc2e (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX doc2e_1 (serdoc,tpdoc,no_doc) ,INDEX doc2e_2 (serdoc,tpdoc,no_cf,no_doc) ,INDEX doc2e_3 (serdoc,tpdoc,d_doc,no_doc) );
20170207 10:58 CREATE TABLE IF NOT EXISTS doc2dlnh (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(33),PRIMARY KEY (IDX),UNIQUE INDEX doc2dlnh_1 (serdoc,tpdoc,num_doc,lnh_f) );
20170207 10:58 CREATE TABLE IF NOT EXISTS doc2elnh (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),num_doc int,codigo char(16),designacao char(42),unidade char(8),com_iva char(2),quantidade double,preco_unit double,desc1 double,desc_1 double,desc2 double,desc_2 double,iva double,valor double,ult_custo double,custo_medio double,armazem int(5),grupo int(5),ext int(5),flg char(2),sem_stk char(2),m_qtd double,m_altura double,m_largura double,m_extra double,preco_serv double,d_val date,n_enc int,linha_enc int(5),qtd_por_emb double,guia_n int,tp_enc char(2),serie char(21),arm2 int,serdoc char(7),tpdoc int(5),miva int(5),rsv char(33),PRIMARY KEY (IDX),UNIQUE INDEX doc2elnh_1 (serdoc,tpdoc,num_doc,lnh_f) );
20170207 10:58 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20170207000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170207 10:58 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 10:58 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,1,0,'',00170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='1',observacao='4521234567890',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=00170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=00170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='0',observacao='1',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=00170201000000,ref='112323',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=00170201000000,ref='112323',valor=2323.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,10,0,1,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='0',observacao='0',tot_valor=2323.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=0,des_form='',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='12323',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='12323',valor=2323.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='0',observacao='0',tot_valor=4646.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=2,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='0',observacao='0',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=2,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='0',tot_valor=4646.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=2,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='0',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=2,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='0',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 10:59 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 10:59 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,2,0,'',20170207000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170207 10:59 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 10:59 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 10:59 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,2,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='Cheque',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='121',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 10:59 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='121',d_form=20170201000000,ref='12121',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='121',d_form=20170201000000,ref='12121',valor=2101.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='1',observacao='4521234567890',tot_valor=2101.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='1',observacao='4521234567890',tot_valor=4521234567890.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 11:00 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:00 UPDATE contas_bancarias set debito='2101.0000',credito='0.0000',saldo='-2101.0000' where no=1 
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='1',tot_valor=2101.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='1',observacao='4521234567890',tot_valor=2101.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='121',d_form=20170201000000,ref='12121',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:00 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='4521234567890',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='121',d_form=20170201000000,ref='12121',valor=100.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='1',observacao='4521234567890',tot_valor=100.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='121',d_form=20170201000000,ref='12121',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='0',observacao='1',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:00 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=0,ref_conta2='0',observacao='1',tot_valor=1.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:01 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:01 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='0',cont_dest=1,ref_conta2='4521234567890',observacao='1',tot_valor=0.00,tipo=3,clinum=3,clinome='',prazo='0',data2='0000-00-00 00:00:00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:12 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 11:12 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 11:12 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 11:12 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 11:12 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 11:12 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 11:12 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 11:12 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),n_doc int,emitido int(5),anulado char(3),d_doc date,n_operador int(5),cont_org int(5),ref_conta char(22),cont_dest int(5),ref_conta2 char(22),observacao char(42),tot_valor double,tipo int(5),clinum int,clinome char(51),prazo int(5),data2 date,rsv char(14),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_1 (tipo,n_doc) );
20170207 11:12 CREATE TABLE IF NOT EXISTS movimentos_de_contas_bancarias_linhas (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,no_form int(5),des_form char(22),d_form date,ref char(22),valor double,transf char(3),conta int(5),d_mov date,doc_mov char(3),tp int(5),no_doc2 int,linha int(5),estado char(3),tipo int(5),rsv char(25),PRIMARY KEY (IDX),UNIQUE INDEX movimentos_de_contas_bancarias_linhas_1 (tp,no_doc,lnh_f) );
20170207 11:12 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',00000000000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=0,ref_conta2='',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,1,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 11:12 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1212',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1212',valor=1223.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='1223.0000',credito='0.0000',saldo='-1223.0000' where no=1 
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=1223.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='1223.0000',credito='0.0000',saldo='-1223.0000' where no=1 
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=1223.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,10,0,1,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 11:12 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:12 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1132213',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:12 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1132213',valor=2323.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:12 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='1223.0000',credito='0.0000',saldo='-1223.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=3546.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='1223.0000',credito='0.0000',saldo='-1223.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=3546.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='1223.0000',credito='0.0000',saldo='-1223.0000' where no=1 
20170207 11:12 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=3546.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:12 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,2,0,'',20170207000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170207 11:12 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:12 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,2,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='Cheque',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='',d_form=20170201000000,ref='1213',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='',d_form=20170201000000,ref='1213',valor=2323.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:13 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:13 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=2323.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:13 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:13 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=2323.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:13 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,3,0,'',20170207000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170207 11:13 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=3,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,3,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=3,no_form=1,des_form='Cheque',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=3,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1212323',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:13 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=3,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1212323',valor=12323.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:13 UPDATE contas_bancarias set debito='2323.0000',credito='0.0000',saldo='-2323.0000' where no=1 
20170207 11:13 UPDATE contas_bancarias set debito='12323.0000',credito='0.0000',saldo='-12323.0000' where no=1 
20170207 11:13 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=3,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=12323.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:13 UPDATE contas_bancarias set debito='12323.0000',credito='0.0000',saldo='-12323.0000' where no=1 
20170207 11:13 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=3,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=12323.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:13 UPDATE contas_bancarias set debito='12323.0000',credito='0.0000',saldo='-12323.0000' where no=1 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:13 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 11:47 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 11:47 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 11:47 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 11:47 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 11:47 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 11:47 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 11:47 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 11:48 MySql::mysql=NULL
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 11:48 CREATE TABLE IF NOT EXISTS contas_bancarias__cco_ (IDX INT NOT NULL AUTO_INCREMENT,linha_f int(5),cor int(5),no int(5),d_mov date,doc_mov char(3),tp int(5),no_doc int,linha int(5),no_pag int(5),des_pag char(22),d_pag date,ref char(22),debito double,credito double,acumulado double,estado char(3),flag char(3),rsv char(19),PRIMARY KEY (IDX),UNIQUE INDEX contas_bancarias__cco__1 (no,doc_mov,TP,no_doc,linha) );
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 11:48 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=3,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1212323',valor=15000.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='15000.0000',credito='0.0000',saldo='-15000.0000' where no=1 
20170207 11:48 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=3,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=15000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='15000.0000',credito='0.0000',saldo='-15000.0000' where no=1 
20170207 11:48 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=3,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=15000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:48 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='15000.0000',credito='0.0000',saldo='-15000.0000' where no=1 
20170207 11:48 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=3,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=15000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:48 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=2,no_form=1,des_form='',d_form=20170201000000,ref='1213',valor=2500.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=3 LIMIT 1;
20170207 11:48 UPDATE contas_bancarias set debito='15000.0000',credito='0.0000',saldo='-15000.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='17500.0000',credito='0.0000',saldo='-17500.0000' where no=1 
20170207 11:48 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=2500.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:48 UPDATE contas_bancarias set debito='15000.0000',credito='0.0000',saldo='-15000.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='17500.0000',credito='0.0000',saldo='-17500.0000' where no=1 
20170207 11:48 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=2500.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:48 UPDATE contas_bancarias set debito='15000.0000',credito='0.0000',saldo='-15000.0000' where no=1 
20170207 11:48 UPDATE contas_bancarias set debito='17500.0000',credito='0.0000',saldo='-17500.0000' where no=1 
20170207 11:48 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=2,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=2500.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:48 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1212',valor=500.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:48 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=10,cor=0,no_doc=1,no_form=1,des_form='Cheque',d_form=20170201000000,ref='1132213',valor=100.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:49 UPDATE contas_bancarias set debito='17500.0000',credito='0.0000',saldo='-17500.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18000.0000',credito='0.0000',saldo='-18000.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=600.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:49 UPDATE contas_bancarias set debito='17500.0000',credito='0.0000',saldo='-17500.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18000.0000',credito='0.0000',saldo='-18000.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=600.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:49 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 11:49 UPDATE contas_bancarias set debito='17500.0000',credito='0.0000',saldo='-17500.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18000.0000',credito='0.0000',saldo='-18000.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=600.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=1 LIMIT 1;
20170207 11:49 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,4,0,'',20170207000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=4,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:49 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,4,0,'',20170201000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170207 11:49 INSERT INTO formas_de_movimento (idx,no,descricao,livre,tipo,rsv) VALUES(NULL,2,'',78,0,'');
20170207 11:49 UPDATE formas_de_movimento SET no=2,descricao='',livre=78,tipo=0,rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:49 UPDATE formas_de_movimento SET no=2,descricao='NUMERARIO',livre=78,tipo=0,rsv='' WHERE IDX=2 LIMIT 1;
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=4,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:49 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=4,no_form=2,des_form='NUMERARIO',d_form=20170201000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=5 LIMIT 1;
20170207 11:49 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=4,no_form=2,des_form='NUMERARIO',d_form=20170201000000,ref='121',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=5 LIMIT 1;
20170207 11:49 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=4,no_form=2,des_form='NUMERARIO',d_form=20170201000000,ref='121',valor=1000.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=5 LIMIT 1;
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=4,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=1000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:49 UPDATE contas_bancarias set debito='18100.0000',credito='0.0000',saldo='-18100.0000' where no=1 
20170207 11:49 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170207 11:49 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=4,emitido=0,anulado='',d_doc=20170207000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=1000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=4 LIMIT 1;
20170207 11:50 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170207 11:50 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170207 12:30 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:30 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:30 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 12:30 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 12:30 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 12:30 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 12:30 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 12:44 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:44 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:44 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 12:44 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 12:44 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 12:44 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 12:44 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 12:55 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:55 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:55 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 12:55 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 12:55 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 12:55 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 12:55 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 12:55 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:55 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 12:55 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 12:55 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 12:55 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 12:55 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 12:55 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 13:00 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 13:00 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 13:00 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 13:00 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 13:00 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 13:00 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 13:00 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 13:02 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 13:02 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 13:02 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 13:02 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 13:02 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 13:02 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 13:02 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 13:07 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 13:07 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170207 13:07 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170207 13:07 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170207 13:07 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170207 13:07 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170207 13:07 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170207 13:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='1',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 13:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 13:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='1',unidade='',com_iva='',quantidade=1.000000,preco_unit=2032.5200000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=2032.52,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 13:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=103,codigo='',designacao='1',unidade='',com_iva='',quantidade=1.000000,preco_unit=2032.5200000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2032.52,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=245 LIMIT 1;
20170207 15:36 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'D',2,'N/ Fatura',103,20170207000000,20170207000000,'','',2500.00,2500.00,'D',2500.00,0.00,0.00,467.48,0.00,1.000000,0,0,'A','');
20170207 15:36 UPDATE documento_d2 SET linhas=1,no_doc=103,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170207000000,d_venc=20170207000000,h_doc=20000101104500,no_cf=4,nome_cf='FDFD',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2032.5200,tot_desconto=0.0000,tot_liquido=2032.5200,tot_iva=467.4800,tot_valor=2500.0000,val_pago=0.0000,val_pend=2500.0000,suj_valor0=2032.5200,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=467.4800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=126 LIMIT 1;
20170209 15:04 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:04 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:04 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:04 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:04 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:04 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:04 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:06 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:06 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:06 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:06 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:06 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:06 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:06 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:24 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:24 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:24 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:24 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:24 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:24 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:24 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:25 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:25 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:25 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:25 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:25 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:25 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:25 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:26 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:26 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:26 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:26 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:26 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:26 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:26 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:26 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:26 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:26 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:26 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:26 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:26 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:26 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:27 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:27 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:27 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:27 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:27 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:27 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:27 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:28 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170209 15:28 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170209 15:28 UPDATE tipos_de_documentosd SET numero=5,designacao='FATURA PRO-FORMA',cli_forn='C',tipo_desc='',no_vias=1,ficheiro='doc2.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='N',ecr='docs',abvr='FP',mov_finan='N',carta_anexo='',extras='N',des_cco='Factura Pro-Forma',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170209 15:29 INSERT INTO encest (idx,no,desi,abrv,rsv) VALUES(NULL,1,'','','');
20170209 15:29 UPDATE encest SET no=1,desi='',abrv='',rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:29 UPDATE encest SET no=1,desi='PENDENTE',abrv='',rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:29 INSERT INTO encest (idx,no,desi,abrv,rsv) VALUES(NULL,2,'','','');
20170209 15:29 UPDATE encest SET no=2,desi='',abrv='',rsv='' WHERE IDX=2 LIMIT 1;
20170209 15:30 UPDATE encest SET no=2,desi='CONCLUIDA',abrv='',rsv='' WHERE IDX=2 LIMIT 1;
20170209 15:31 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:31 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:31 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:31 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:31 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:31 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:31 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:32 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:32 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:32 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:32 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:32 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:32 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101 AND doc.no_doc=1
20170209 15:32 Nombre de clave duplicado 'tmpxx'
20170209 15:32 create index tmpxx on encart_c (td,no,lnh)
20170209 15:35 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:35 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:35 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:35 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:35 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:35 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:35 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:35 Nombre de clave duplicado 'tmpxx'
20170209 15:35 create index tmpxx on encart_c (td,no,lnh)
20170209 15:35 Entrada duplicada '1-1-3' para la clave 2
20170209 15:35 INSERT   INTO encart_c (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT td,no,lnh,d_enc,nocli,codigo,flg_iva,Sum(qtd_enc) as qtdx,Sum(qtd_ent),preco,desc1,desc2,d_prev,refer FROM  temp_C GROUP BY td,no,lnh HAVING qtdx>0
20170209 15:35 Nombre de clave duplicado 'tmpxx'
20170209 15:35 create index tmpxx on encart_f (td,no,lnh)
20170209 15:35 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:35 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:35 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:35 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:35 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:35 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:35 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:35 Nombre de clave duplicado 'tmpxx'
20170209 15:35 create index tmpxx on encart_c (td,no,lnh)
20170209 15:35 Entrada duplicada '1-1-3' para la clave 2
20170209 15:35 INSERT   INTO encart_c (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT td,no,lnh,d_enc,nocli,codigo,flg_iva,Sum(qtd_enc) as qtdx,Sum(qtd_ent),preco,desc1,desc2,d_prev,refer FROM  temp_C GROUP BY td,no,lnh HAVING qtdx>0
20170209 15:35 Nombre de clave duplicado 'tmpxx'
20170209 15:35 create index tmpxx on encart_f (td,no,lnh)
20170209 15:36 INSERT   INTO temp_C (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 1,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E1 as lnh left join documento_E1 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:36 INSERT   INTO temp_F (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT 2,doc.no_doc,lnh.linha_enc,doc.d_doc,doc.no_cf,lnh.codigo,lnh.com_iva,lnh.quantidade,0,lnh.preco_unit,lnh.desc1,lnh.desc2,doc.d_venc,doc.referencia FROM  documento_linhas_E2 as lnh left join documento_E2 as doc on (lnh.num_doc=doc.no_doc and lnh.serdoc=doc.serdoc) WHERE length(lnh.codigo)>0 AND lnh.quantidade>0 AND doc.anulado<>'S' AND doc.d_doc>=19700101
20170209 15:36 CREATE TABLE IF NOT EXISTS encart_c (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_c_1 (td,no,lnh) ,INDEX encart_c_2 (nocli,td,no,codigo,lnh) );
20170209 15:36 CREATE TABLE IF NOT EXISTS enchis_c (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_c_1 (td,nod,te,noe,lnh_e) );
20170209 15:36 CREATE TABLE IF NOT EXISTS encart_f (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_f_1 (td,no,lnh) ,INDEX encart_f_2 (nocli,td,no,codigo,lnh) );
20170209 15:36 CREATE TABLE IF NOT EXISTS enchis_f (IDX INT NOT NULL AUTO_INCREMENT,d_doc date,td int(5),nod int,te int(5),noe int,lnh_e int(5),qtd double,flg char(3),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX enchis_f_1 (d_doc) );
20170209 15:36 CREATE TABLE IF NOT EXISTS encart_o (IDX INT NOT NULL AUTO_INCREMENT,td int(5),no int,lnh int(5),d_enc date,nocli int,codigo char(16),flg_iva char(3),qtd_enc double,qtd_ent double,preco double,desc1 double,desc2 double,d_prev date,estado int(5),qtd_falta double,refer char(22),rsv char(22),PRIMARY KEY (IDX),UNIQUE INDEX encart_o_1 (td,no,lnh) ,INDEX encart_o_2 (nocli,td,no,codigo,lnh) );
20170209 15:36 Nombre de clave duplicado 'tmpxx'
20170209 15:36 create index tmpxx on encart_c (td,no,lnh)
20170209 15:36 Entrada duplicada '1-1-3' para la clave 2
20170209 15:36 INSERT   INTO encart_c (td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,refer)
 SELECT td,no,lnh,d_enc,nocli,codigo,flg_iva,Sum(qtd_enc) as qtdx,Sum(qtd_ent),preco,desc1,desc2,d_prev,refer FROM  temp_C GROUP BY td,no,lnh HAVING qtdx>0
20170209 15:36 Nombre de clave duplicado 'tmpxx'
20170209 15:36 create index tmpxx on encart_f (td,no,lnh)
20170209 15:43 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:44 INSERT INTO documento_e2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170209000000,00000000000000,20000101154400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170209 15:44 UPDATE documento_e2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170209000000,d_venc=20170209000000,h_doc=20000101154400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 INSERT INTO encart_f (idx,td,no,lnh,d_enc,nocli,codigo,flg_iva,qtd_enc,qtd_ent,preco,desc1,desc2,d_prev,estado,qtd_falta,refer,rsv) VALUES(NULL,2,1,1,20170209000000,1,'&#35;&#35;&#35','',1.00,0.00,0.00,0.00,0.00,20170209000000,0,0.00,'','');
20170209 15:44 INSERT INTO documento_linhas_e2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'&#35;&#35;&#35','VESTIDO','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,1,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170209 15:44 REPLACE encart_f SET  td='2' , no='1' , lnh='1' , d_enc='20170209' , nocli='1' , codigo='&#35;&#35;&#35' , flg_iva='' , qtd_enc='1' , qtd_ent='0' , preco='0' , desc1='0' , desc2='0' , d_prev='20170209' , estado='0' , qtd_falta='1' , refer='' 
20170209 15:44 UPDATE documento_linhas_e2 SET lnh_f=5,cor=0,num_doc=1,codigo='&#35;&#35;&#35',designacao='VESTIDO',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=1,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 UPDATE documento_e2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170209000000,d_venc=20170209000000,h_doc=20000101154400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 REPLACE encart_f SET  td='2' , no='1' , lnh='1' , d_enc='20170209' , nocli='1' , codigo='&#35;&#35;&#35' , flg_iva='' , qtd_enc='10' , qtd_ent='0' , preco='0' , desc1='0' , desc2='0' , d_prev='20170209' , estado='0' , qtd_falta='10' , refer='' 
20170209 15:44 UPDATE documento_linhas_e2 SET lnh_f=5,cor=0,num_doc=1,codigo='&#35;&#35;&#35',designacao='VESTIDO',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=1,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 REPLACE encart_f SET  td='2' , no='1' , lnh='1' , d_enc='20170209' , nocli='1' , codigo='&#35;&#35;&#35' , flg_iva='' , qtd_enc='10' , qtd_ent='0' , preco='0' , desc1='0' , desc2='0' , d_prev='20170209' , estado='0' , qtd_falta='10' , refer='' 
20170209 15:44 UPDATE documento_linhas_e2 SET lnh_f=5,cor=0,num_doc=1,codigo='&#35;&#35;&#35',designacao='VESTIDO',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.4500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=4.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=1,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 UPDATE documento_e2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170209000000,d_venc=20170209000000,h_doc=20000101154400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.5000,tot_desconto=0.0000,tot_liquido=4.5000,tot_iva=1.0400,tot_valor=5.5400,val_pago=5.5400,val_pend=0.0000,suj_valor0=4.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.0400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 UPDATE documento_e2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20170209000000,d_venc=20170209000000,h_doc=20000101154400,no_cf=1,nome_cf='FORNECWSOE N. 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4.5000,tot_desconto=0.0000,tot_liquido=4.5000,tot_iva=1.0400,tot_valor=5.5400,val_pago=5.5400,val_pend=0.0000,suj_valor0=4.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.0400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170209 15:44 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170209 15:44 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170209 15:45 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=4,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20170209 15:45 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=4,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20170209 15:45 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=4,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20170209 15:45 UPDATE tipos_de_documentosd SET numero=18,designacao='COMPRAS PP',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='N',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CP',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura-Recibo',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='S',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=4,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20170209 15:45 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170209 15:46 UPDATE tipos_de_documentosd SET numero=11,designacao='N. CR�DITO FORN.',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='D',ctrl_seq='P',mov_stock='N',ecr='DOCSF2',abvr='NC',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Nota de credito',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170209 15:46 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170209 15:46 UPDATE tipos_de_documentosd SET numero=10,designacao='COMPRAS',cli_forn='F',tipo_desc='',no_vias=1,ficheiro='DOC-F.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='E',ecr='DOCSF2',abvr='CO',mov_finan='S',carta_anexo='',extras='N',des_cco='V/ Fatura',cco_banco='',mov_caixa='N',act_preco='S',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='N',irs='',hash='N',pda=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170209 15:46 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170209 15:46 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170209 15:46 TRUNCATE TABLE documento_D1
20170209 15:46 TRUNCATE TABLE documento_linhas_D1
20170209 15:46 TRUNCATE TABLE documento_D1_a_hash
20170209 15:46 TRUNCATE TABLE documento_D2
20170209 15:46 TRUNCATE TABLE documento_linhas_D2
20170209 15:46 TRUNCATE TABLE documento_D2_a_hash
20170209 15:46 TRUNCATE TABLE documento_D3
20170209 15:46 TRUNCATE TABLE documento_linhas_D3
20170209 15:46 TRUNCATE TABLE documento_D3_a_hash
20170209 15:46 TRUNCATE TABLE documento_D5
20170209 15:46 TRUNCATE TABLE documento_linhas_D5
20170209 15:46 TRUNCATE TABLE documento_D5_a_hash
20170209 15:46 TRUNCATE TABLE documento_D6
20170209 15:46 TRUNCATE TABLE documento_linhas_D6
20170209 15:46 TRUNCATE TABLE documento_D6_a_hash
20170209 15:46 TRUNCATE TABLE documento_D7
20170209 15:46 TRUNCATE TABLE documento_linhas_D7
20170209 15:46 TRUNCATE TABLE documento_D7_a_hash
20170209 15:46 TRUNCATE TABLE documento_D8
20170209 15:46 TRUNCATE TABLE documento_linhas_D8
20170209 15:46 TRUNCATE TABLE documento_D8_a_hash
20170209 15:46 TRUNCATE TABLE documento_D9
20170209 15:46 TRUNCATE TABLE documento_linhas_D9
20170209 15:46 TRUNCATE TABLE documento_D9_a_hash
20170209 15:46 TRUNCATE TABLE documento_D10
20170209 15:46 TRUNCATE TABLE documento_linhas_D10
20170209 15:46 TRUNCATE TABLE documento_D10_a_hash
20170209 15:46 TRUNCATE TABLE documento_D11
20170209 15:46 TRUNCATE TABLE documento_linhas_D11
20170209 15:46 TRUNCATE TABLE documento_D11_a_hash
20170209 15:46 TRUNCATE TABLE documento_D13
20170209 15:46 TRUNCATE TABLE documento_linhas_D13
20170209 15:46 TRUNCATE TABLE documento_D13_a_hash
20170209 15:46 TRUNCATE TABLE documento_D14
20170209 15:46 TRUNCATE TABLE documento_linhas_D14
20170209 15:46 TRUNCATE TABLE documento_D14_a_hash
20170209 15:46 TRUNCATE TABLE documento_D15
20170209 15:46 TRUNCATE TABLE documento_linhas_D15
20170209 15:46 TRUNCATE TABLE documento_D15_a_hash
20170209 15:46 TRUNCATE TABLE documento_D16
20170209 15:46 TRUNCATE TABLE documento_linhas_D16
20170209 15:46 TRUNCATE TABLE documento_D16_a_hash
20170209 15:46 TRUNCATE TABLE documento_D17
20170209 15:46 TRUNCATE TABLE documento_linhas_D17
20170209 15:46 TRUNCATE TABLE documento_D17_a_hash
20170209 15:46 Tabla 'empdemo.documento_d17_a_hash' no existe
20170209 15:46 TRUNCATE TABLE documento_D17_a_hash
20170209 15:46 TRUNCATE TABLE documento_D18
20170209 15:46 TRUNCATE TABLE documento_linhas_D18
20170209 15:46 TRUNCATE TABLE documento_D18_a_hash
20170209 15:46 TRUNCATE TABLE documento_D20
20170209 15:46 TRUNCATE TABLE documento_linhas_D20
20170209 15:46 TRUNCATE TABLE documento_D20_a_hash
20170209 15:46 TRUNCATE TABLE documento_R1
20170209 15:46 TRUNCATE TABLE reciboslinhas01
20170209 15:46 TRUNCATE TABLE documento_R2
20170209 15:46 TRUNCATE TABLE reciboslinhas02
20170209 16:06 SELECT concat(' ',a.nocli) as 'Cliente',b.nome_1 as 'Nome',a.d_enc as 'Data',concat(' ',a.no) as 'Enc',a.codigo as 'Codigo',art.designacao_1 as 'Designaçăo' ,a.qtd_enc as 'Q.Enc',a.qtd_enc-a.qtd_ent as 'Q.Pend',a.td,a.lnh,a.rsv as Referencia FROM  encart_c as a LEFT join clientes as b on a.nocli=b.numero LEFT join artigos as art on art.codigo=a.codigo LEFT join documento_e1 as enc on enc.no_doc=a.no WHERE a.qtd_ent<a.qtd_enc AND a.d_enc>=20170101 AND a.d_enc<=20171231 ORDER BY a.nocli,a.d_enc
20170216 16:35 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170216000000,20170216000000,20000101163500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170216 16:35 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'CLIENTE 1','','MORADA 1','LOCALIDADE 1','4750-169','ARCOZELO BCL','','',1,'Portugal','123456789','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20170216 16:35 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','TESTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170216 16:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=125.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=125.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',1,20170216000000,20170216000000,'','',153.75,153.75,'D',153.75,0.00,0.00,28.75,0.00,1.000000,1,0,'A','');
20170216 16:35 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20170216000000,d_venc=20170216000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=88 LIMIT 1;
20170216 16:35 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20170216000000,d_venc=20170216000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=88 LIMIT 1;
20170216 16:35 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20170216000000,d_venc=20170216000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=88 LIMIT 1;
20170216 16:35 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170216 16:35 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170220 16:46 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv) VALUES(NULL,0,0,0,0,'123','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'');
20170220 16:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20170220 16:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='ARTIGGO 123',designacao_2='',abvr='ARTIGGO 123',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=20.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=24.6000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='',prc_s_iva_3='30.00',prc_c_iva_3='36.90',marg_4='',prc_s_iva_4='40.00',prc_c_iva_4='49.20',peso='' WHERE IDX=1 LIMIT 1;
20170220 16:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='ARTIGGO 123',designacao_2='',abvr='ARTIGGO 123',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=20.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=24.6000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30.00',prc_c_iva_3='36.90',marg_4='0',prc_s_iva_4='40.00',prc_c_iva_4='49.20',peso='' WHERE IDX=1 LIMIT 1;
20170317 18:19 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:19 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:19 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:19 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:19 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:19 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:20 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:20 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:21 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:21 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:38 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:38 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:40 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:40 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:41 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:41 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:41 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:41 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:42 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:42 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:43 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:44 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:44 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:48 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:48 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170317 18:50 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170317 18:50 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170318 12:04 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170318 12:04 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170328 10:02 UPDATE codigos_postais SET codigo='4700',concelho='BRAGA',distrito='',rsv='' WHERE IDX=1 LIMIT 1;
20170328 10:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25499.26,saldo1=-25499.26,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170328 10:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25499.26,saldo1=-25499.26,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170328 10:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-25499.26,saldo1=-25499.26,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170408 12:36 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,00000000000000,20000101123600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20170408000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20170408 12:36 UPDATE documento_r2 SET linhas=0,no_doc=0,emitido=2,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=00000000000000,h_doc=20000101123600,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20170408000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:28 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:28 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:28 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:29 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:29 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:45 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:45 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:46 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:46 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:47 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:47 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:48 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:48 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20170412 11:49 UPDATE documento_d2 SET linhas=1,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170216000000,d_venc=20170216000000,h_doc=20000101163500,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170412 11:49 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20170412000000,20170412000000,20000101114900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170412 11:49 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,2,'','linah 1','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,2,'','linah 2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,2,'','linah 3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,2,'','linah 4','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,2,'','linah 5','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,2,'','linah 6','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,2,'','linah 7','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,40,0,2,'','linah 8','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,45,0,2,'','linah 9','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,50,0,2,'','linah','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=50,cor=0,num_doc=2,codigo='',designacao='linaha10',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,55,0,2,'','linah 11','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,60,0,2,'','linah 12','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,65,0,2,'','linah 13','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,70,0,2,'','linah 14','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,75,0,2,'','linah 15','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,80,0,2,'','linah 16','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,85,0,2,'','linah 17','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,90,0,2,'','linah 18','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,95,0,2,'','linah 19','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,100,0,2,'','linah 20','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,105,0,2,'','linah 21','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,110,0,2,'','linah 22','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170412 11:51 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='linah 1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='linah 1',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='linah 1',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',2,20170412000000,20170412000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,1,0,'A','');
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20170412000000,d_venc=20170412000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=110,cor=0,num_doc=2,codigo='',designacao='linah 22',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=23 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=110,cor=0,num_doc=2,codigo='',designacao='linah 22',unidade='',com_iva='',quantidade=1.000000,preco_unit=125.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=23 LIMIT 1;
20170412 11:51 UPDATE documento_linhas_d2 SET lnh_f=110,cor=0,num_doc=2,codigo='',designacao='linah 22',unidade='',com_iva='',quantidade=1.000000,preco_unit=125.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=23 LIMIT 1;
20170412 11:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20170412000000,d_venc=20170412000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20170412000000,d_venc=20170412000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20170412000000,d_venc=20170412000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:51 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:52 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:52 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20170412 11:52 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20170412 11:53 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:54 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20170412 11:54 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170412 11:54 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20170412 11:54 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170413 17:46 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20170413 17:46 UPDATE documento_d2 SET linhas=22,no_doc=2,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170412000000,d_venc=20170412000000,h_doc=20000101114900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170413 17:49 INSERT INTO cliente_morada (idx,linha_f,cor,numero,num_morad,nome,morada,localidad,cp,concelho,distrito,zona,pais,contribui,telefone,fax,rsv) VALUES(NULL,5,0,1,1,'','','','','','','','','','','','');
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern2',morada='',localidad='',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern1',morada='',localidad='',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern1',morada='morada alt 1',localidad='',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern1',morada='morada alt 1',localidad='localdade alt 1',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern1',morada='morada alt 1',localidad='localdade alt 1',cp='4750-169',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern1',morada='morada alt 1',localidad='localdade alt 1',cp='4750-169',concelho='braga',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=1,nome='morada altern1',morada='morada alt 1',localidad='localdade alt 1',cp='4750-169',concelho='braga',distrito='',zona='',pais='portugal',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-430.50,saldo1=-430.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=1,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-430.50,saldo1=-430.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=1,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-430.50,saldo1=-430.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:49 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=1,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA 1',localidade='LOCALIDADE 1',cod_post='4700',concelho='BRAGA',distrito='',zona='',n_pais=1,pais='Portugal',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-430.50,saldo1=-430.50,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20170413 17:52 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,3,0,'',0,0,'',20170413000000,20170413000000,20000101175200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170413 17:52 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='ARTIGGO 123',designacao_2='',abvr='ARTIGGO 123',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=20.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=24.6000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170413000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=1 LIMIT 1;
20170413 17:52 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,3,'123','ARTIGGO 123','UN','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170413 17:52 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='123',designacao='ARTIGGO 123',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20170413 17:52 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',3,20170413000000,20170413000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20170413 17:52 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20170413000000,d_venc=20170413000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20170413000000,d_venc=20170413000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE documento_d2 SET linhas=1,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20170413000000,d_venc=20170413000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE documento_d2 SET linhas=1,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE documento_d2 SET linhas=1,no_doc=3,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:52 UPDATE documento_d2 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
20170413 17:53 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',6,20170413000000,20170413000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20170413 17:53 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:53 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170413 17:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20170413 17:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20170413 17:53 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170420 12:38 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20170420 12:38 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170420 12:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20170420 12:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20170420 12:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20170420 12:43 UPDATE documento_d2 SET linhas=1,no_doc=6,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170413000000,d_venc=20170413000000,h_doc=20000101175200,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20170420 12:43 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,7,0,'',0,0,'',20170420000000,20170420000000,20000101124300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170420 12:43 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,7,'','wedswd','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170420 12:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='',designacao='wedswd',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20170420 12:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='',designacao='wedswd',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20170420 12:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='',designacao='wedswd',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='',designacao='wedswd',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20170420 12:44 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',7,20170420000000,20170420000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,1,0,'A','');
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20170420000000,d_venc=20170420000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20170420000000,d_venc=20170420000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20170420000000,d_venc=20170420000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='S',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20170420 12:44 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='S',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='S',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
20170420 12:44 UPDATE documento_d2 SET linhas=1,no_doc=7,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170420000000,d_venc=20170420000000,h_doc=20000101124300,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20170420 12:44 UPDATE documento_d2 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
20170505 16:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
20170511 18:52 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='ARTIGGO 123',designacao_2='',abvr='ARTIGGO 123',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=20.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=24.6000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170413000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30.00',prc_c_iva_3='36.90',marg_4='0',prc_s_iva_4='40.00',prc_c_iva_4='49.20',peso='' WHERE IDX=1 LIMIT 1;
20170524 12:03 INSERT INTO documento_d13 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170524000000,20170524000000,20000101120300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170524 12:04 INSERT INTO documento_d7 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170524000000,20170524000000,20000101120400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170524 12:04 UPDATE documento_d7 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101120400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 INSERT INTO documento_linhas_d7 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','WFWF','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170524 12:04 UPDATE documento_linhas_d7 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='WFWF',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 UPDATE documento_linhas_d7 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='WFWF',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 UPDATE documento_linhas_d7 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='WFWF',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 UPDATE documento_d7 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101120400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=123.0000,val_pend=0.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 UPDATE documento_d7 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101120400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=123.0000,val_pend=0.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 UPDATE documento_d7 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101120400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=123.0000,val_pend=0.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170524 12:04 UPDATE documento_d7 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101120400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=123.0000,val_pend=0.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170524 15:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='7' and serdoc='A' 
20170524 15:34 UPDATE documento_d7 SET linhas=1,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101120400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=123.0000,val_pend=0.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170524 15:34 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,8,0,'',0,0,'',20170524000000,20170524000000,20000101153400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170524 15:34 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101153400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='ARTIGGO 123',designacao_2='',abvr='ARTIGGO 123',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=20.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=24.6000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170524000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=1 LIMIT 1;
20170524 15:34 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,8,'123','ARTIGGO 123','UN','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170524 15:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='123',designacao='ARTIGGO 123',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=26 LIMIT 1;
20170524 15:34 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',8,20170524000000,20170524000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20170524 15:34 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101153400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='ARTIGGO 123',designacao_2='',abvr='ARTIGGO 123',no_un_=1,unidade='UN',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=20.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=24.6000000,stock_minimo=0.000,stock=-11.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170524000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=1 LIMIT 1;
20170524 15:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='123',designacao='ARTIGGO 123',unidade='UN',com_iva='',quantidade=10.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=26 LIMIT 1;
20170524 15:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='123',designacao='ARTIGGO 123',unidade='UN',com_iva='',quantidade=10.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=26 LIMIT 1;
20170524 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=8,d_doc=20170524000000,d_venc=20170524000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101153400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=8,d_doc=20170524000000,d_venc=20170524000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE documento_d2 SET linhas=1,no_doc=8,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101153400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=8,d_doc=20170524000000,d_venc=20170524000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE documento_d2 SET linhas=1,no_doc=8,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101153400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=8,d_doc=20170524000000,d_venc=20170524000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20170524 15:34 UPDATE documento_d2 SET linhas=1,no_doc=8,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170524000000,d_venc=20170524000000,h_doc=20000101153400,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20170607 09:21 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,9,0,'',0,0,'',20170607000000,20170607000000,20000101092100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170607 09:21 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,2,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20170607 09:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:21 UPDATE paises SET no=2,designacao='test',moeda='lbr',cambio=0.000,cambio_c=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:22 UPDATE paises SET no=2,designacao='test',moeda='lbr',cambio=1.130,cambio_c=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:22 UPDATE paises SET no=2,designacao='test',moeda='lbr',cambio=1.130,cambio_c=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:22 UPDATE paises SET no=2,designacao='test',moeda='lbr',cambio=1.130,cambio_c=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='cliente 2',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=2,pais='test',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:22 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,9,'','1000','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170607 09:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='1000',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20170607 09:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='1000',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20170607 09:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='1000',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20170607 09:22 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1','1','121212','','121212',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,8.1300000,0.0000000,10.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','0','30.00','36.90','0','40.00','49.20','');
20170607 09:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,9,'1','121212','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170607 09:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,9,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170607 09:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,9,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170607 09:22 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='121212',designacao_2='',abvr='121212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170607000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=2 LIMIT 1;
20170607 09:22 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=9,codigo='1',designacao='121212',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.1300000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.13,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=28 LIMIT 1;
20170607 09:22 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Fatura',9,20170607000000,20170607000000,'','',1240.00,1240.00,'D',1240.00,0.00,0.00,231.87,0.00,1.000000,2,0,'A','');
20170607 09:22 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.1300,tot_desconto=0.0000,tot_liquido=1008.1300,tot_iva=231.8700,tot_valor=1240.0000,val_pago=0.0000,val_pend=1240.0000,suj_valor0=1008.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=231.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=1240.00,pendente=1240.00,deb_cred='D',debito=1240.00,credito=0.00,acumulado=0.00,val_iva=231.87,pend_rec=0.00,cambio=1.000000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE documento_d2 SET linhas=4,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.1300,tot_desconto=0.0000,tot_liquido=1008.1300,tot_iva=231.8700,tot_valor=1240.0000,val_pago=0.0000,val_pend=1240.0000,suj_valor0=1008.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=231.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=1240.00,pendente=1240.00,deb_cred='D',debito=1240.00,credito=0.00,acumulado=0.00,val_iva=231.87,pend_rec=0.00,cambio=1.000000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE documento_d2 SET linhas=4,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.1300,tot_desconto=0.0000,tot_liquido=1008.1300,tot_iva=231.8700,tot_valor=1240.0000,val_pago=0.0000,val_pend=1240.0000,suj_valor0=1008.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=231.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=1550.00,pendente=1550.00,deb_cred='D',debito=1550.00,credito=0.00,acumulado=0.00,val_iva=289.84,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE documento_d2 SET linhas=4,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.1300,tot_desconto=0.0000,tot_liquido=1008.1300,tot_iva=231.8700,tot_valor=1240.0000,val_pago=0.0000,val_pend=1240.0000,suj_valor0=1008.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=231.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=1550.00,pendente=1550.00,deb_cred='D',debito=1550.00,credito=0.00,acumulado=0.00,val_iva=289.84,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE documento_d2 SET linhas=4,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.1300,tot_desconto=0.0000,tot_liquido=1008.1300,tot_iva=231.8700,tot_valor=1240.0000,val_pago=0.0000,val_pend=1240.0000,suj_valor0=1008.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=231.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=1550.00,pendente=1550.00,deb_cred='D',debito=1550.00,credito=0.00,acumulado=0.00,val_iva=289.84,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:22 UPDATE documento_d2 SET linhas=4,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1008.1300,tot_desconto=0.0000,tot_liquido=1008.1300,tot_iva=231.8700,tot_valor=1240.0000,val_pago=0.0000,val_pend=1240.0000,suj_valor0=1008.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=231.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='121212',designacao_2='',abvr='121212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170607000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=2 LIMIT 1;
20170607 09:23 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,9,'','rfdfdh','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170607 09:23 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='rfdfdh',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20170607 09:23 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='rfdfdh',unidade='',com_iva='',quantidade=1.000000,preco_unit=2100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=2100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20170607 09:23 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='rfdfdh',unidade='',com_iva='',quantidade=1.000000,preco_unit=2100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20170607 09:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3228.75,pendente=3228.75,deb_cred='D',debito=3228.75,credito=0.00,acumulado=0.00,val_iva=603.75,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:23 UPDATE documento_d2 SET linhas=4,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2100.0000,tot_desconto=0.0000,tot_liquido=2100.0000,tot_iva=483.0000,tot_valor=2583.0000,val_pago=0.0000,val_pend=2583.0000,suj_valor0=2100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=483.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3228.75,pendente=3228.75,deb_cred='D',debito=3228.75,credito=0.00,acumulado=0.00,val_iva=603.75,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:23 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2100.0000,tot_desconto=0.0000,tot_liquido=2100.0000,tot_iva=483.0000,tot_valor=2583.0000,val_pago=0.0000,val_pend=2583.0000,suj_valor0=2100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=483.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3228.75,pendente=3228.75,deb_cred='D',debito=3228.75,credito=0.00,acumulado=0.00,val_iva=603.75,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:23 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2100.0000,tot_desconto=0.0000,tot_liquido=2100.0000,tot_iva=483.0000,tot_valor=2583.0000,val_pago=0.0000,val_pend=2583.0000,suj_valor0=2100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=483.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:24 UPDATE moedas SET no=2,designacao='Libra',abrv='libra',cambio=1.2500000,cambio_c=0.0000000,taxa=0.0000000,rsv='' WHERE IDX=2 LIMIT 1;
20170607 09:24 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='S',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092100,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2100.0000,tot_desconto=0.0000,tot_liquido=2100.0000,tot_iva=483.0000,tot_valor=2583.0000,val_pago=0.0000,val_pend=2583.0000,suj_valor0=2100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=483.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20170607 09:25 DELETE FROM documento_linhas_d2 WHERE  num_doc=9  AND  serdoc='a' 
20170607 09:25 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,9,0,'',0,0,'',20170607000000,20170607000000,20000101092500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170607 09:25 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170607 09:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,9,'','211','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170607 09:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='211',unidade='',com_iva='',quantidade=0.100000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20170607 09:25 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170607 09:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='211',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20170607 09:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='211',unidade='',com_iva='',quantidade=1.000000,preco_unit=2120.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=2120.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20170607 09:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='',designacao='211',unidade='',com_iva='',quantidade=1.000000,preco_unit=2120.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2120.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20170607 09:25 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,2,'D',2,'N/ Fatura',9,20170607000000,20170607000000,'','',3259.50,3259.50,'D',3259.50,0.00,0.00,609.50,0.00,1.250000,2,0,'A','');
20170607 09:25 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2120.0000,tot_desconto=0.0000,tot_liquido=2120.0000,tot_iva=487.6000,tot_valor=2607.6000,val_pago=0.0000,val_pend=2607.6000,suj_valor0=2120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=487.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170607 09:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3259.50,pendente=3259.50,deb_cred='D',debito=3259.50,credito=0.00,acumulado=0.00,val_iva=609.50,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20170607 09:25 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2120.0000,tot_desconto=0.0000,tot_liquido=2120.0000,tot_iva=487.6000,tot_valor=2607.6000,val_pago=0.0000,val_pend=2607.6000,suj_valor0=2120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=487.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170607 09:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3259.50,pendente=3259.50,deb_cred='D',debito=3259.50,credito=0.00,acumulado=0.00,val_iva=609.50,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20170607 09:25 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2120.0000,tot_desconto=0.0000,tot_liquido=2120.0000,tot_iva=487.6000,tot_valor=2607.6000,val_pago=0.0000,val_pend=2607.6000,suj_valor0=2120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=487.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170622 16:20 INSERT INTO documento_d6 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20170622000000,20170622000000,20000101162000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170622 16:20 UPDATE documento_d6 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170622 16:20 UPDATE documento_d6 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170622 16:20 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3259.50,pendente=3259.50,deb_cred='D',debito=3259.50,credito=0.00,acumulado=0.00,val_iva=609.50,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20170622 16:20 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2120.0000,tot_desconto=0.0000,tot_liquido=2120.0000,tot_iva=487.6000,tot_valor=2607.6000,val_pago=0.0000,val_pend=2607.6000,suj_valor0=2120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=487.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170622 16:20 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20170607000000,d_venc=20170607000000,ref='',obs='',valor=3259.50,pendente=3259.50,deb_cred='D',debito=3259.50,credito=0.00,acumulado=0.00,val_iva=609.50,pend_rec=0.00,cambio=1.250000,nomoeda=2,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20170622 16:20 UPDATE documento_d2 SET linhas=1,no_doc=9,emitido=0,anulado='',no_moed=2,convertido=0,referencia='',d_doc=20170607000000,d_venc=20170607000000,h_doc=20000101092500,no_cf=2,nome_cf='cliente 2',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2120.0000,tot_desconto=0.0000,tot_liquido=2120.0000,tot_iva=487.6000,tot_valor=2607.6000,val_pago=0.0000,val_pend=2607.6000,suj_valor0=2120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=487.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='Libra',cambio=1.2500000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20170622 16:20 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,10,0,'',0,0,'',20170622000000,20170622000000,20000101162000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170622 16:20 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20170622 16:20 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20170622 16:21 INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'1','121212','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170622 16:21 INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170622 16:21 INSERT INTO documento_linhas_d6 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170622 16:21 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='121212',designacao_2='',abvr='121212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170622000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=2 LIMIT 1;
20170622 16:21 UPDATE documento_linhas_d6 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='121212',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.1300000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.13,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170622 16:21 UPDATE documento_linhas_d6 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='121212',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.1300000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.13,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20170622 16:21 UPDATE documento_d6 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.1300,tot_desconto=0.0000,tot_liquido=8.1300,tot_iva=1.8700,tot_valor=10.0000,val_pago=10.0000,val_pend=0.0000,suj_valor0=8.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170622 16:21 UPDATE documento_d6 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.1300,tot_desconto=0.0000,tot_liquido=8.1300,tot_iva=1.8700,tot_valor=10.0000,val_pago=10.0000,val_pend=0.0000,suj_valor0=8.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170622 16:22 UPDATE documento_d6 SET linhas=3,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.1300,tot_desconto=0.0000,tot_liquido=8.1300,tot_iva=1.8700,tot_valor=10.0000,val_pago=10.0000,val_pend=0.0000,suj_valor0=8.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170707 14:20 DROP TABLE IF EXISTS tmpi
20170707 14:20 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20170707 14:20 CREATE INDEX tmpi_i ON TMPi(codigo);
20170707 14:20 DROP TABLE IF EXISTS tmp
20170707 14:20 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20170707 14:20 CREATE INDEX tmp_i ON TMP(codigo);
20170707 14:20 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),18,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D18 as a left join  Documento_linhas_D18 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20170707 14:20 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20170707 14:20 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20170707 14:20 UPDATE IGNORE TMP SET preco=0 where ent<=0
20170707 14:20 DROP TABLE IF EXISTS tmp2
20170707 14:20 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20170707 14:20 CREATE INDEX tmp2_i ON TMP2(codigo);
20170707 14:20 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 WHERE a1.codigo>='' AND a1.codigo<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
20170707 14:20 DROP TABLE IF EXISTS Inventario;
20170707 14:20 CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
20170707 14:20 INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
20170707 14:20 Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
20170707 14:20 DROP TABLE IF EXISTS tmpi
20170707 14:20 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20170707 14:20 CREATE INDEX tmpi_i ON TMPi(codigo);
20170707 14:20 DROP TABLE IF EXISTS tmp
20170707 14:20 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20170707 14:20 CREATE INDEX tmp_i ON TMP(codigo);
20170707 14:20 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),18,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D18 as a left join  Documento_linhas_D18 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20131031 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:20 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20170707 14:20 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20170707 14:20 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20170707 14:20 UPDATE IGNORE TMP SET preco=0 where ent<=0
20170707 14:20 DROP TABLE IF EXISTS tmp2
20170707 14:20 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20170707 14:20 CREATE INDEX tmp2_i ON TMP2(codigo);
20170707 14:20 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 left join artigos as a2 on a1.codigo=a2.codigo WHERE a2.familia>='' AND a2.familia<='ZZZZZZZZZZZZZ' GROUP BY a1.codigo
20170707 14:20 DROP TABLE IF EXISTS Inventario;
20170707 14:20 CREATE TABLE Inventario( Familia  char(30), Codigo char(30), Designacao char(40), Unidade char(20), Qtd  double, Custo double, Valor  double, Custo2 double );
20170707 14:20 INSERT into Inventario (Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor,Custo2) Select a2.familia as Familia, a1.codigo as 'Codigo', a2.designacao_1 as 'Designacao', unidade as 'Unid.Med.', a1.qtd as 'Qtd', a2.ultimo_custo as 'Custo', a1.qtd*  a2.ultimo_custo as Valor , a2.ultimo_custo as 'Custo' from tmp2  as a1 left join artigos as a2 on a1.codigo=a2.codigo where length(designacao_1)>0 AND a1.qtd>0 order by a1.codigo ;
20170707 14:20 Select Familia,Codigo,Designacao,Unidade,Qtd,Custo,Valor from INVENTARIO where length(designacao)>0 AND Qtd>0 order by codigo ;
20170707 14:24 DELETE from inventario2 where numero='2' 
20170707 14:24 DELETE from inventario2 where numero='1' 
20170707 14:24  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20141231','1','','0.000000') 
20170707 14:24  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20141231','1','','0.000000') 
20170707 14:24 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_linhas_D1 as b left join  Documento_D1 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_linhas_D2 as b left join  Documento_D2 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_linhas_D3 as b left join  Documento_D3 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_linhas_D6 as b left join  Documento_D6 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),8 FROM  Documento_linhas_D8 as b left join  Documento_D8 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),9 FROM  Documento_linhas_D9 as b left join  Documento_D9 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_linhas_D10 as b left join  Documento_D10 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_linhas_D18 as b left join  Documento_D18 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_linhas_D20 as b left join  Documento_D20 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20170707 14:24 DELETE from inventario2 where numero='1' 
20170707 14:25  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20170405','1','','0.000000') 
20170707 14:25  REPLACE INTO inventario2 (data,numero,obs,valor) VALUES('20170405','1','','0.000000') 
20170707 14:25 DROP TABLE IF EXISTS tmpi
20170707 14:25 CREATE TABLE tmpi (codigo char(30),ent  double,sai  double,qtd  double,doc  int,data Date);
20170707 14:25 CREATE INDEX tmpi_i ON TMPi(codigo);
20170707 14:25 DROP TABLE IF EXISTS tmp
20170707 14:25 CREATE TABLE tmp (codigo char(30),ent  double,sai  double,qtd  double,doc  int,valor double,preco double);
20170707 14:25 CREATE INDEX tmp_i ON TMP(codigo);
20170707 14:25 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),1,0 FROM  Documento_D1 as a left join  Documento_linhas_D1 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),2,0 FROM  Documento_D2 as a left join  Documento_linhas_D2 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),3,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D3 as a left join  Documento_linhas_D3 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,sai,doc,valor) SELECT b.codigo,sum(b.quantidade),6,0 FROM  Documento_D6 as a left join  Documento_linhas_D6 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),8,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D8 as a left join  Documento_linhas_D8 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),9,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D9 as a left join  Documento_linhas_D9 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),10,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D10 as a left join  Documento_linhas_D10 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),18,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D18 as a left join  Documento_linhas_D18 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 INSERT INTO tmp (codigo,ent,doc,valor) SELECT b.codigo,sum(b.quantidade),20,sum(b.quantidade*b.preco_unit*(1-(desc1/100))) FROM  Documento_D20 as a left join  Documento_linhas_D20 as b ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)  Left join tmpi as c ON c.codigo=b.codigo WHERE a.d_Doc<=20170405 AND (a.d_Doc>=c.data OR c.codigo IS NULL) AND length(b.codigo)>0 AND a.anulado<>'S'  GROUP BY codigo;
20170707 14:25 UPDATE IGNORE TMP SET ent=0 where ent IS NULL
20170707 14:25 UPDATE IGNORE TMP SET sai=0 where sai IS NULL
20170707 14:25 UPDATE IGNORE TMP SET preco=valor/ent where ent>0
20170707 14:25 UPDATE IGNORE TMP SET preco=0 where ent<=0
20170707 14:25 DROP TABLE IF EXISTS tmp2
20170707 14:25 CREATE TABLE tmp2 ( codigo char(30), qtd  double , preco double, preco2 double);
20170707 14:25 CREATE INDEX tmp2_i ON TMP2(codigo);
20170707 14:25 INSERT INTO tmp2 (codigo,qtd,preco,preco2) SELECT a1.codigo,sum(a1.ent)-sum(a1.sai),Max(a1.preco),Min(if(ent>0,a1.preco,9999999)) FROM  tmp as a1 GROUP BY a1.codigo
20170707 14:25 SELECT art.*,a1.qtd as stock2 FROM  tmp2 as a1 left join artigos as art on (art.codigo=a1.codigo) WHERE length(a1.codigo)>0 AND a1.qtd>0 ORDER BY a1.codigo
20170708 10:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,10,'1','121212','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170708 10:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,10,'','teste2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170708 10:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,10,'','teste3','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170708 10:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='121212',designacao_2='',abvr='121212',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=8.1300000,prc_s_iva_2=0.0000000,prc_c_iva_1=10.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20170622000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='30',prc_c_iva_3='36.9',marg_4='0',prc_s_iva_4='40',prc_c_iva_4='49.2',peso='' WHERE IDX=2 LIMIT 1;
20170708 10:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='1',designacao='121212',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.1300000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.13,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=33 LIMIT 1;
20170708 10:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='1',designacao='121212',unidade='',com_iva='',quantidade=1.000000,preco_unit=8.1300000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=8.13,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=33 LIMIT 1;
20170708 10:08 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',10,20170622000000,20170622000000,'','',10.00,10.00,'D',10.00,0.00,0.00,1.87,0.00,1.000000,1,0,'A','');
20170708 10:08 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.1300,tot_desconto=0.0000,tot_liquido=8.1300,tot_iva=1.8700,tot_valor=10.0000,val_pago=0.0000,val_pend=10.0000,suj_valor0=8.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=10,d_doc=20170622000000,d_venc=20170622000000,ref='',obs='',valor=10.00,pendente=10.00,deb_cred='D',debito=10.00,credito=0.00,acumulado=0.00,val_iva=1.87,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20170708 10:08 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.1300,tot_desconto=0.0000,tot_liquido=8.1300,tot_iva=1.8700,tot_valor=10.0000,val_pago=0.0000,val_pend=10.0000,suj_valor0=8.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=10,d_doc=20170622000000,d_venc=20170622000000,ref='',obs='',valor=10.00,pendente=10.00,deb_cred='D',debito=10.00,credito=0.00,acumulado=0.00,val_iva=1.87,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20170708 10:08 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170622000000,d_venc=20170622000000,h_doc=20000101162000,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=8.1300,tot_desconto=0.0000,tot_liquido=8.1300,tot_iva=1.8700,tot_valor=10.0000,val_pago=0.0000,val_pend=10.0000,suj_valor0=8.1300,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.8700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=1,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:08 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,11,0,'',0,0,'',20170708000000,20170708000000,20000101100800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20170708 10:08 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,11,'','dqdsad','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170708 10:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=11,codigo='',designacao='dqdsad',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=36 LIMIT 1;
20170708 10:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=11,codigo='',designacao='dqdsad',unidade='',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=36 LIMIT 1;
20170708 10:08 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',11,20170707000000,20170707000000,'','',123.00,123.00,'D',123.00,0.00,0.00,23.00,0.00,1.000000,1,0,'A','');
20170708 10:08 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20170707000000,d_venc=20170707000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:08 UPDATE documento_d2 SET linhas=1,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20170707000000,d_venc=20170707000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:08 UPDATE documento_d2 SET linhas=1,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20170707000000,d_venc=20170707000000,ref='',obs='',valor=123.00,pendente=123.00,deb_cred='D',debito=123.00,credito=0.00,acumulado=0.00,val_iva=23.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:08 UPDATE documento_d2 SET linhas=1,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=23.0000,tot_valor=123.0000,val_pago=0.0000,val_pend=123.0000,suj_valor0=100.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=23.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,11,'','jhdghhgdik','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20170708 10:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=11,codigo='',designacao='jhdghhgdik',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=37 LIMIT 1;
20170708 10:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=11,codigo='',designacao='jhdghhgdik',unidade='',com_iva='',quantidade=1.000000,preco_unit=120.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=120.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=37 LIMIT 1;
20170708 10:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20170707000000,d_venc=20170707000000,ref='',obs='',valor=270.60,pendente=270.60,deb_cred='D',debito=270.60,credito=0.00,acumulado=0.00,val_iva=50.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:09 UPDATE documento_d2 SET linhas=1,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=220.0000,tot_desconto=0.0000,tot_liquido=220.0000,tot_iva=50.6000,tot_valor=270.6000,val_pago=0.0000,val_pend=270.6000,suj_valor0=220.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=50.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20170707000000,d_venc=20170707000000,ref='',obs='',valor=270.60,pendente=270.60,deb_cred='D',debito=270.60,credito=0.00,acumulado=0.00,val_iva=50.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:09 UPDATE documento_d2 SET linhas=2,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=220.0000,tot_desconto=0.0000,tot_liquido=220.0000,tot_iva=50.6000,tot_valor=270.6000,val_pago=0.0000,val_pend=270.6000,suj_valor0=220.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=50.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20170707000000,d_venc=20170707000000,ref='',obs='',valor=270.60,pendente=270.60,deb_cred='D',debito=270.60,credito=0.00,acumulado=0.00,val_iva=50.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20170708 10:09 UPDATE documento_d2 SET linhas=2,no_doc=11,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=220.0000,tot_desconto=0.0000,tot_liquido=220.0000,tot_iva=50.6000,tot_valor=270.6000,val_pago=0.0000,val_pend=270.6000,suj_valor0=220.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=50.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170708 10:09 UPDATE documento_d2 SET linhas=2,no_doc=11,emitido=0,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=220.0000,tot_desconto=0.0000,tot_liquido=220.0000,tot_iva=50.6000,tot_valor=270.6000,val_pago=0.0000,val_pend=270.6000,suj_valor0=220.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=50.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170710 15:19 UPDATE documento_d2 SET convertido='0' WHERE no_doc='10' and serdoc='A' 
20170714 13:20 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,5,0,'',20170714000000,0,0,'',0,'','',0.00,3,0,'','','','');
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=5,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=5 LIMIT 1;
20170714 13:20 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,5,0,'',20170714000000,'',0.00,'',0,00000000000000,'',0,0,0,'',3,'');
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=5,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=5 LIMIT 1;
20170714 13:20 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=5,no_form=1,des_form='Cheque',d_form=20170714000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=6 LIMIT 1;
20170714 13:20 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=5,no_form=1,des_form='Cheque',d_form=20170714000000,ref='',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=6 LIMIT 1;
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=5,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=5 LIMIT 1;
20170714 13:20 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=5,no_form=1,des_form='Cheque',d_form=20170714000000,ref='100',valor=0.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=6 LIMIT 1;
20170714 13:20 UPDATE movimentos_de_contas_bancarias_linhas SET lnh_f=5,cor=0,no_doc=5,no_form=1,des_form='Cheque',d_form=20170714000000,ref='100',valor=1000.00,transf='',conta=0,d_mov=00000000000000,doc_mov='',tp=0,no_doc2=0,linha=0,estado='',tipo=3,rsv='' WHERE IDX=6 LIMIT 1;
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:20 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=5,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=1000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=5 LIMIT 1;
20170714 13:20 UPDATE contas_bancarias set debito='19100.0000',credito='0.0000',saldo='-19100.0000' where no=1 
20170714 13:20 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:20 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=5,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=1000.00,tipo=3,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=5 LIMIT 1;
20170714 13:20 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=2 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=3 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=4 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=5 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=6 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=7 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=8 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=9 
20170714 13:20 UPDATE contas_bancarias set debito='0.0000',credito='0.0000',saldo='0.0000' where no=10 
20170714 13:21 INSERT INTO movimentos_de_contas_bancarias (idx,linhas,n_doc,emitido,anulado,d_doc,n_operador,cont_org,ref_conta,cont_dest,ref_conta2,observacao,tot_valor,tipo,clinum,clinome,prazo,data2,rsv) VALUES(NULL,0,1,0,'',20170714000000,0,0,'',0,'','',0.00,5,0,'','','','');
20170714 13:21 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:21 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=6 LIMIT 1;
20170714 13:21 INSERT INTO movimentos_de_contas_bancarias_linhas (idx,lnh_f,cor,no_doc,no_form,des_form,d_form,ref,valor,transf,conta,d_mov,doc_mov,tp,no_doc2,linha,estado,tipo,rsv) VALUES(NULL,5,0,1,0,'',20170714000000,'',0.00,'',0,00000000000000,'',0,0,0,'',5,'');
20170714 13:21 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:21 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:21 UPDATE movimentos_de_contas_bancarias SET linhas=0,n_doc=1,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=6 LIMIT 1;
20170714 13:21 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:21 UPDATE contas_bancarias set debito='20100.0000',credito='0.0000',saldo='-20100.0000' where no=1 
20170714 13:21 UPDATE movimentos_de_contas_bancarias SET linhas=1,n_doc=1,emitido=0,anulado='',d_doc=20170714000000,n_operador=0,cont_org=0,ref_conta='',cont_dest=1,ref_conta2='4521234567890',observacao='',tot_valor=0.00,tipo=5,clinum=0,clinome='',prazo='0',data2='0000-00-00',rsv='' WHERE IDX=6 LIMIT 1;
20170722 09:58 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c-m',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='N',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170722 09:58 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f-m',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170724 15:34 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',11,20170707000000,20170707000000,'','',270.60,270.60,'D',270.60,0.00,0.00,50.60,0.00,1.000000,1,0,'A','');
20170724 15:34 UPDATE documento_d2 SET linhas=2,no_doc=11,emitido=0,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20170707000000,d_venc=20170707000000,h_doc=20000101100800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=220.0000,tot_desconto=0.0000,tot_liquido=220.0000,tot_iva=50.6000,tot_valor=270.6000,val_pago=0.0000,val_pend=270.6000,suj_valor0=220.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=50.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20170725 16:49 CREATE TABLE IF NOT EXISTS listagens (IDX INT NOT NULL AUTO_INCREMENT,lnh int(5),num int(5),tipo char(42),titulo char(42),colunas int(5),flag_int1 char(3),flag_int2 char(3),contador int(5),flag_dest char(3),c_pc char(51),u_pc char(51),i_pc int(5),i_uc int(5),f_pc double,f_uc double,l_pc int,l_uc int,h_pc datetime,h_uc datetime,d_pc date,d_uc date,n_mexer int(5),n_edita int(5),comp_pag int(5),form_pag char(3),marg_to int(5),cab_sep char(3),marg_es int(5),ordem char(3),formato char(3),pitch int(5),lpt int(5),esp_lnh int(5),orient int(5),tot_final char(3),edt_imp char(3),poe_grp char(3),ficheiro char(21),contorno char(3),ficheiro2 char(11),rsv char(84),PRIMARY KEY (IDX),UNIQUE INDEX listagens_1 (ficheiro2,num) );
20170725 16:49 CREATE TABLE IF NOT EXISTS listagenslinhas (IDX INT NOT NULL AUTO_INCREMENT,lnh int(5),cor int(5),num int(5),campo char(46),ord int(5),ind int(5),tam int(5),ndec int(5),imp int(5),tipo int(5),ofset int(5),max int(5),parse char(32),edt int(5),grupo char(22),lim int(5),ficheiro2 char(11),rsv char(58),PRIMARY KEY (IDX),UNIQUE INDEX listagenslinhas_1 (ficheiro2,num,lnh) );
20170725 16:51 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4750-123','BARCELOS','BRAGA','');
20170725 17:01 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170725 17:01 UPDATE tipos_de_documentosr SET numero=1,designacao='RECIBO',cli_forn='C',tipo_desc='',no_vias=2,ficheiro='REC.rpt',porta=1,flg_cco='C',ctrl_seq='P',mov_stock='',ecr='rec-c',abvr='Re',mov_finan='',carta_anexo='',extras='',des_cco='Recibo',cco_banco='N',mov_caixa='',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20170725 17:01 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170725 17:01 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20170725 17:01 UPDATE tipos_de_documentosr SET numero=2,designacao='LIQUIDA€ŽO',cli_forn='F',tipo_desc='',no_vias=2,ficheiro='Liq.rpt',porta=0,flg_cco='D',ctrl_seq='P',mov_stock='',ecr='rec-f',abvr='Li',mov_finan='',carta_anexo='',extras='',des_cco='Liquidacao',cco_banco='D',mov_caixa='N',act_preco='',edt_temp='S',doc_org='',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='',inc_vias='S',no=0,sem_iva='',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='',irs='S',hash='',pda=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 16:59 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20180824000000,20180824000000,20000101165900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20180824 16:59 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20180824 16:59 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 16:59 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4740-357','FAO','ESPOSENDE','');
20180824 16:59 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CLIENTE 1',nome_2='',morada='MORADA',localidade='',cod_post='4740-357',concelho='FAO',distrito='ESPOSENDE',zona='',n_pais=1,pais='PORTUGAL',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20180824000000,d_venc=20180824000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','TESTE','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20180824 17:01 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='TESTE',unidade='',com_iva='',quantidade=1.000000,preco_unit=1000.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1000.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20180824 17:01 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',1,20180824000000,20180824000000,'','',1230.00,1230.00,'D',1230.00,0.00,0.00,230.00,0.00,1.000000,1,0,'A','');
20180824 17:01 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20180824000000,d_venc=20180824000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.0000,tot_desconto=0.0000,tot_liquido=1000.0000,tot_iva=230.0000,tot_valor=1230.0000,val_pago=0.0000,val_pend=1230.0000,suj_valor0=1000.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=230.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20180824000000,d_venc=20180824000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE documento_d2 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20180824000000,d_venc=20180824000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.0000,tot_desconto=0.0000,tot_liquido=1000.0000,tot_iva=230.0000,tot_valor=1230.0000,val_pago=0.0000,val_pend=1230.0000,suj_valor0=1000.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=230.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20180824000000,d_venc=20180824000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE documento_d2 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20180824000000,d_venc=20180824000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.0000,tot_desconto=0.0000,tot_liquido=1000.0000,tot_iva=230.0000,tot_valor=1230.0000,val_pago=0.0000,val_pend=1230.0000,suj_valor0=1000.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=230.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20180824000000,d_venc=20180824000000,ref='',obs='',valor=1230.00,pendente=1230.00,deb_cred='D',debito=1230.00,credito=0.00,acumulado=0.00,val_iva=230.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:01 UPDATE documento_d2 SET linhas=2,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20180824000000,d_venc=20180824000000,h_doc=20000101165900,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1000.0000,tot_desconto=0.0000,tot_liquido=1000.0000,tot_iva=230.0000,tot_valor=1230.0000,val_pago=0.0000,val_pend=1230.0000,suj_valor0=1000.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=230.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:02 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20180824 17:04 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20180824 17:08 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20180824 17:08 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,00000000000000,20000101170800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20180824000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20180824 17:10 INSERT INTO unidades (idx,no,descricao,no_eq,des_eq,coef,rsv) VALUES(NULL,3,'',0,'',0.000,'');
20180824 17:10 UPDATE unidades SET no=3,descricao='',no_eq=0,des_eq='',coef=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20180824 17:10 UPDATE unidades SET no=3,descricao='MT',no_eq=0,des_eq='',coef=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20180824 17:10 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'','','','','',3,'MT','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'N','',0.00,'','',0,0,0,'N',0,'','0.00','0.00','0.00','0.00','0.00','0.00','');
20180824 17:16 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:16 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:16 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:17 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:17 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:17 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:17 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:17 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:17 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND c1.d_doc>=20190101 AND c1.d_doc<=20190131 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='2019-01-01 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-01-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZ' GROUP BY idx
20180824 17:18 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='ZZZZZZ' GROUP BY idx
20180824 17:19 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20180824 17:19 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20180824 17:19 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20180824 17:19 SELECT l1.* FROM  documento_linhas_d10 as l1 LEFT JOIN documento_d10 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.d_doc>=00000000 AND c1.d_doc<=20191231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:19 SELECT l1.* FROM  documento_linhas_d11 as l1 LEFT JOIN documento_d11 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.d_doc>=00000000 AND c1.d_doc<=20191231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:19 SELECT l1.* FROM  documento_linhas_d18 as l1 LEFT JOIN documento_d18 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) WHERE c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.d_doc>=00000000 AND c1.d_doc<=20191231 AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))>='0000-00-00 00:00:00' AND concat(c1.d_doc,' ',DATE_FORMAT(c1.h_doc,'%T'))<='2019-12-31 23:59:59' AND c1.anulado<>'S' AND l1.quantidade<>0 AND l1.codigo>='' AND l1.codigo<='ZZZZZZZZZZZZZ' GROUP BY idx
20180824 17:34 CREATE TABLE IF NOT EXISTS wri (IDX INT NOT NULL AUTO_INCREMENT,tipo_doc int(5),documento char(22),dcm char(6),data date,familia char(16),val_iliquido double,val_desconto double,val_sujeito double,iva double,val_iva double,val_total double,PRIMARY KEY (IDX),UNIQUE INDEX wri_1 (tipo_doc,documento,dcm,data) );
20180824 17:51 INSERT INTO familias__artigos_ (idx,codigo,descricao,grupo,categ,rsv) VALUES(NULL,'FAM1','',0,'','');
20180824 17:51 UPDATE familias__artigos_ SET codigo='FAM1',descricao='',grupo=0,categ='',rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:52 UPDATE familias__artigos_ SET codigo='FAM1',descricao='FAMILIA N. 1 DESCRICAO',grupo=0,categ='',rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:52 UPDATE familias__artigos_ SET codigo='FAM1',descricao='FAMILIA N. 1 DESCRICAO',grupo=0,categ='M',rsv='' WHERE IDX=1 LIMIT 1;
20180824 17:54 DELETE FROM artigos_composicao WHERE  cod_cab='' 
20180824 17:54 DELETE FROM artigos_armazem WHERE  codigo='' 
20180824 17:54 DELETE FROM artigos_equivalencias WHERE  codigo='' 
20180824 17:54 DELETE FROM artigos_embalagens WHERE  codigo='' 
20180824 17:54 DELETE FROM artigos_observacoes WHERE  codigo='' 
20180824 17:54 DELETE FROM artigos_hist WHERE  codigo='' 
20180824 17:54 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20180824 17:54 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO N.1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO N.1',designacao_2='',abvr='',no_un_=1,unidade='UN',armazem='',familia='FAM1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO N.1',designacao_2='',abvr='',no_un_=1,unidade='UN',armazem='',familia='FAM1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20180824000000,20180824000000,20000101175800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20180824 17:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20190101000000,d_venc=20190101000000,h_doc=20000101175800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO N.1',designacao_2='',abvr='',no_un_=1,unidade='UN',armazem='',familia='FAM1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,2,'1','ARTIGO N.1','UN','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20180824 17:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='ARTIGO N.1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20180824 17:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20190101000000,d_venc=20190101000000,h_doc=20000101175800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO N.1',designacao_2='',abvr='',no_un_=1,unidade='UN',armazem='',familia='FAM1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='ARTIGO N.1',unidade='UN',com_iva='',quantidade=1.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=100.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20180824 17:58 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20180824 17:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='ARTIGO N.1',designacao_2='',abvr='',no_un_=1,unidade='UN',armazem='',familia='FAM1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-145.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190101000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='ARTIGO N.1',unidade='UN',com_iva='',quantidade=145.000000,preco_unit=100.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=14500.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20180824 17:58 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',2,20190101000000,20190101000000,'','',17835.00,17835.00,'D',17835.00,0.00,0.00,3335.00,0.00,1.000000,1,0,'A','');
20180824 17:58 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20190101000000,d_venc=20190101000000,h_doc=20000101175800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=14500.0000,tot_desconto=0.0000,tot_liquido=14500.0000,tot_iva=3335.0000,tot_valor=17835.0000,val_pago=0.0000,val_pend=17835.0000,suj_valor0=14500.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=3335.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,1,'1','ARTIGO N.1',100.00,0.00,'FA',2,20190101000000,0.00,'');
20180824 17:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20190101000000,d_venc=20190101000000,ref='',obs='',valor=17835.00,pendente=17835.00,deb_cred='D',debito=17835.00,credito=0.00,acumulado=0.00,val_iva=3335.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE documento_d2 SET linhas=2,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20190101000000,d_venc=20190101000000,h_doc=20000101175800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=14500.0000,tot_desconto=0.0000,tot_liquido=14500.0000,tot_iva=3335.0000,tot_valor=17835.0000,val_pago=0.0000,val_pend=17835.0000,suj_valor0=14500.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=3335.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20190101000000,d_venc=20190101000000,ref='',obs='',valor=17835.00,pendente=17835.00,deb_cred='D',debito=17835.00,credito=0.00,acumulado=0.00,val_iva=3335.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE documento_d2 SET linhas=2,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20190101000000,d_venc=20190101000000,h_doc=20000101175800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=14500.0000,tot_desconto=0.0000,tot_liquido=14500.0000,tot_iva=3335.0000,tot_valor=17835.0000,val_pago=0.0000,val_pend=17835.0000,suj_valor0=14500.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=3335.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20190101000000,d_venc=20190101000000,ref='',obs='',valor=17835.00,pendente=17835.00,deb_cred='D',debito=17835.00,credito=0.00,acumulado=0.00,val_iva=3335.00,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20180824 17:58 UPDATE documento_d2 SET linhas=2,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20190101000000,d_venc=20190101000000,h_doc=20000101175800,no_cf=1,nome_cf='CLIENTE 1',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=14500.0000,tot_desconto=0.0000,tot_liquido=14500.0000,tot_iva=3335.0000,tot_valor=17835.0000,val_pago=0.0000,val_pend=17835.0000,suj_valor0=14500.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=3335.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20180824 18:04 SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
20180824 18:04 SELECT no_doc, d_doc, nome_cf, (irs / 100 * tot_liquido) as irs FROM documento_d10 where irs > 0 ;
20180824 18:11 SELECT l1.* FROM  documento_linhas_d1 as l1 LEFT JOIN documento_d1 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20180824 18:11 SELECT l1.* FROM  documento_linhas_d2 as l1 LEFT JOIN documento_d2 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20180824 18:11 SELECT l1.* FROM  documento_linhas_d3 as l1 LEFT JOIN documento_d3 as c1 ON (l1.num_doc=c1.no_doc and l1.serdoc=c1.serdoc) LEFT JOIN artigos ON artigos.codigo=l1.codigo LEFT JOIN familias__artigos_ as fam ON fam.codigo=artigos.familia WHERE (c1.serdoc='A' ) AND c1.no_cf >= 0 AND c1.no_cf <= 999999 AND c1.no_vended >=0 AND c1.no_vended <=999 AND (c1.d_doc>=20190101 ) AND (c1.d_doc<=20190131 ) AND c1.anulado<>'S' AND l1.quantidade<>0 AND fam.codigo >='' AND fam.codigo <='' GROUP BY idx
20180824 18:15 TRUNCATE TABLE documento_D1
20180824 18:15 TRUNCATE TABLE documento_linhas_D1
20180824 18:15 TRUNCATE TABLE documento_D1_a_hash
20180824 18:15 TRUNCATE TABLE documento_D2
20180824 18:15 TRUNCATE TABLE documento_linhas_D2
20180824 18:15 TRUNCATE TABLE documento_D2_a_hash
20180824 18:15 TRUNCATE TABLE documento_D3
20180824 18:15 TRUNCATE TABLE documento_linhas_D3
20180824 18:15 TRUNCATE TABLE documento_D3_a_hash
20180824 18:15 TRUNCATE TABLE documento_D5
20180824 18:15 TRUNCATE TABLE documento_linhas_D5
20180824 18:15 TRUNCATE TABLE documento_D5_a_hash
20180824 18:15 TRUNCATE TABLE documento_D6
20180824 18:15 TRUNCATE TABLE documento_linhas_D6
20180824 18:15 TRUNCATE TABLE documento_D6_a_hash
20180824 18:15 TRUNCATE TABLE documento_D7
20180824 18:15 TRUNCATE TABLE documento_linhas_D7
20180824 18:15 TRUNCATE TABLE documento_D7_a_hash
20180824 18:15 TRUNCATE TABLE documento_D10
20180824 18:15 TRUNCATE TABLE documento_linhas_D10
20180824 18:15 TRUNCATE TABLE documento_D10_a_hash
20180824 18:15 TRUNCATE TABLE documento_D11
20180824 18:15 TRUNCATE TABLE documento_linhas_D11
20180824 18:15 TRUNCATE TABLE documento_D11_a_hash
20180824 18:15 TRUNCATE TABLE documento_D13
20180824 18:15 TRUNCATE TABLE documento_linhas_D13
20180824 18:15 TRUNCATE TABLE documento_D13_a_hash
20180824 18:15 TRUNCATE TABLE documento_D14
20180824 18:15 TRUNCATE TABLE documento_linhas_D14
20180824 18:15 TRUNCATE TABLE documento_D14_a_hash
20180824 18:15 TRUNCATE TABLE documento_D15
20180824 18:15 TRUNCATE TABLE documento_linhas_D15
20180824 18:15 TRUNCATE TABLE documento_D15_a_hash
20180824 18:15 TRUNCATE TABLE documento_D16
20180824 18:15 TRUNCATE TABLE documento_linhas_D16
20180824 18:15 TRUNCATE TABLE documento_D16_a_hash
20180824 18:15 TRUNCATE TABLE documento_D17
20180824 18:15 TRUNCATE TABLE documento_linhas_D17
20180824 18:15 TRUNCATE TABLE documento_D17_a_hash
20180824 18:15 Tabla 'emp0001.documento_d17_a_hash' no existe
20180824 18:15 TRUNCATE TABLE documento_D17_a_hash
20180824 18:15 TRUNCATE TABLE documento_D18
20180824 18:15 TRUNCATE TABLE documento_linhas_D18
20180824 18:15 TRUNCATE TABLE documento_D18_a_hash
20180824 18:15 Tabla 'emp0001.documento_d18_a_hash' no existe
20180824 18:15 TRUNCATE TABLE documento_D18_a_hash
20180824 18:15 TRUNCATE TABLE documento_D20
20180824 18:15 TRUNCATE TABLE documento_linhas_D20
20180824 18:15 TRUNCATE TABLE documento_D20_a_hash
20180824 18:15 TRUNCATE TABLE documento_D21
20180824 18:15 TRUNCATE TABLE documento_linhas_D21
20180824 18:15 TRUNCATE TABLE documento_D21_a_hash
20180824 18:15 Tabla 'emp0001.documento_d21_a_hash' no existe
20180824 18:15 TRUNCATE TABLE documento_D21_a_hash
20180824 18:15 TRUNCATE TABLE documento_D22
20180824 18:15 TRUNCATE TABLE documento_linhas_D22
20180824 18:15 TRUNCATE TABLE documento_D22_a_hash
20180824 18:15 Tabla 'emp0001.documento_d22_a_hash' no existe
20180824 18:15 TRUNCATE TABLE documento_D22_a_hash
20180824 18:15 TRUNCATE TABLE documento_R1
20180824 18:15 TRUNCATE TABLE reciboslinhas01
20180824 18:15 TRUNCATE TABLE documento_R2
20180824 18:15 TRUNCATE TABLE reciboslinhas02
20181020 15:19 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20181020000000,20181020000000,20000101151900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20181020 15:33 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),1 FROM  Documento_linhas_D1 as b left join  Documento_D1 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),2 FROM  Documento_linhas_D2 as b left join  Documento_D2 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),3 FROM  Documento_linhas_D3 as b left join  Documento_D3 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),6 FROM  Documento_linhas_D6 as b left join  Documento_D6 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),10 FROM  Documento_linhas_D10 as b left join  Documento_D10 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),18 FROM  Documento_linhas_D18 as b left join  Documento_D18 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),20 FROM  Documento_linhas_D20 as b left join  Documento_D20 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,ent,doc) SELECT b.codigo,sum(b.quantidade),21 FROM  Documento_linhas_D21 as b left join  Documento_D21 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20181020 15:33 INSERT INTO tmp (codigo,sai,doc) SELECT b.codigo,sum(b.quantidade),22 FROM  Documento_linhas_D22 as b left join  Documento_D22 as a ON (b.num_doc=a.no_doc and a.serdoc=b.serdoc)   WHERE a.d_doc>=20000101 AND length(b.codigo)>0 AND a.convertido=0 AND a.anulado<>'S' AND a.d_doc<=21991231 GROUP BY codigo
20190701 17:30 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,0,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20190701 17:32 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20190701000000,20190701000000,20000101173200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20190701 17:36 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20190701 17:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Cliente Demo',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Cliente Demo',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Cliente Demo',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='123456789',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:36 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101173200,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:36 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.00,'','',0,0,0,'N',0,'','','0.00','0.00','','0.00','0.00','');
20190701 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:37 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'1','Artigo Demo','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190701 17:37 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Artigo Demo',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:37 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',1,20190701000000,20190701000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20190701 17:37 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101173200,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:37 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101173200,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:37 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101173200,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:40 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20190701000000,20190701000000,20000101174000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20190701 17:41 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:41 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,2,'1','Artigo Demo','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190701 17:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='Artigo Demo',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:41 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',2,20190701000000,20190701000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20190701 17:41 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:41 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:41 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20190701 17:41 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20190701 17:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20190701 17:42 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:42 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:42 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:42 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:42 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20190701 17:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20190701 17:43 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20190701 17:43 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,3,0,'',0,0,'',20190701000000,20190701000000,20000101174300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20190701 17:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:43 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,3,'1','Artigo Demo','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190701 17:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='1',designacao='Artigo Demo',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:43 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',3,20190701000000,20190701000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20190701 17:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:43 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20190701000000,d_venc=20190731000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190731000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20190701000000,d_venc=20190731000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190731000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20190701000000,d_venc=20190731000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190731000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20190701000000,d_venc=20190731000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190731000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20190701000000,d_venc=20190731000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190731000000,h_doc=20000101174300,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20190701 17:45 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',00000000000000,00000000000000,20000101174500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20190701000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20190701 17:45 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=00000000000000,h_doc=20000101174500,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20190701000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:45 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20190701000000,20190701000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20190701 17:45 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174500,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20190701000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:45 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101173200,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=12.3000,val_pend=0.0000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:45 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,1,'D',2,'N/ Fatura',1,20190701000000,20190701000000,'','D',12.30,12.30,12.30,0.000,0.00,12.30,0.00,0.00,0,'A',10.00,2.30,12.30,10.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,2.30,0.00,0.00,0.00,0,'');
20190701 17:45 UPDATE reciboslinhas01 SET linha=5,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',n_doc=1,d_doc=20190701000000,d_venc=20190701000000,ref='',deb_cred='D',val_doc=12.30,val_pend=12.30,val_liqu=12.30,per_desc=0.000,val_desc=0.00,val_rec=12.30,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:45 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=4 LIMIT 1;
20190701 17:45 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174500,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.3000,tot_desconto=0.0000,tot_liquido=12.3000,tot_iva=0.0000,tot_valor=12.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20190701000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20190701 17:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,15,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20190701 17:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,20,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20190701 17:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,25,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20190701 17:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,30,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20190701 17:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=4 LIMIT 1;
20190701 17:46 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174500,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.3000,tot_desconto=0.0000,tot_liquido=12.3000,tot_iva=0.0000,tot_valor=12.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20190701000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190701 17:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:48 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190701 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190701000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3='0',prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190701 18:40 UPDATE tipos_de_documentosd SET numero=1,designacao='Fatura - Recibo',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:40 UPDATE tipos_de_documentosd SET numero=1,designacao='Fatura - Recibo',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:40 UPDATE tipos_de_documentosd SET numero=1,designacao='Fatura - Recibo',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:40 UPDATE tipos_de_documentosd SET numero=1,designacao='Fatura - Recibo',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:41 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:42 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='N',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:42 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='N',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190701 18:42 UPDATE tipos_de_documentosd SET numero=1,designacao='FATURA - RECIBO',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc.rpt',porta=1,flg_cco='N',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FR',mov_finan='S',carta_anexo='',extras='N',des_cco='Factura - Recibo',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='2,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='N',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='N',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20190702 09:56 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190702 09:57 UPDATE documento_d1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20181020000000,d_venc=20181020000000,h_doc=20000101151900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190702 09:57 DELETE FROM clientes__contactos_ WHERE  no=0 
20190702 09:57 DELETE FROM artigos_cliente WHERE  no=0 
20190702 09:57 DELETE FROM cliente_morada WHERE  numero=0 
20190702 09:57 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',20190702000000,20190702000000,20000101095700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20190702 09:58 INSERT INTO documentoresd2 (idx,no,nome_1,nome_2,morada,localidade,cod_post,concelho,contribuinte,serdoc,rsv) VALUES(NULL,4,'Consumidor final','','','','','','','A','');
20190702 09:58 UPDATE documentoresd2 SET no=4,nome_1='Consumidor final',nome_2='',morada='',localidade='',cod_post='',concelho='',contribuinte='',serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20190702 09:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190702 09:59 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,4,'1','Artigo Demo','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190702 09:59 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='1',designacao='Artigo Demo',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=4 LIMIT 1;
20190702 09:59 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101095700,no_cf=0,nome_cf='Consumidor final',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20190702 09:59 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190702 09:59 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101095700,no_cf=0,nome_cf='Consumidor final',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20190702 09:59 UPDATE documento_d2 SET linhas=2,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101095700,no_cf=0,nome_cf='Consumidor final',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20190702 09:59 UPDATE documento_d2 SET linhas=2,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101095700,no_cf=0,nome_cf='Consumidor final',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20190702 09:59 UPDATE documento_d2 SET linhas=2,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101095700,no_cf=0,nome_cf='Consumidor final',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:00 UPDATE documento_d2 SET linhas=2,no_doc=4,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101095700,no_cf=0,nome_cf='Consumidor final',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:00 DELETE FROM documento_linhas_d2 WHERE  num_doc=4  AND  serdoc='a' 
20190702 10:00 DELETE FROM documento_linhas_d2 WHERE  num_doc=4  AND  serdoc='a' 
20190702 10:00 UPDATE documento_d2 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
20190702 10:00 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',20190702000000,20190702000000,20000101100000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20190702 10:01 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20190702 10:01 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:01 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,4,'1','Artigo Demo','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190702 10:01 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='1',designacao='Artigo Demo',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:01 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',4,20190702000000,20190702000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20190702 10:01 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20190702 10:01 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20190702000000,d_venc=20190702000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:01 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20190702 10:01 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20190702000000,d_venc=20190702000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:01 UPDATE documento_d2 SET linhas=1,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20190702 10:02 UPDATE documento_d2 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
20190702 10:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='Familia 1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='Familia 1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-4.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:07 UPDATE historico_contas_correntes_clientes SET linha_f=1,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20190701000000,d_venc=20190701000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20190702 10:07 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190701000000,d_venc=20190701000000,h_doc=20000101174500,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.3000,tot_desconto=0.0000,tot_liquido=12.3000,tot_iva=0.0000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20190701000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20190702 10:07 UPDATE contas_correntes_clientes SET linha_f=5,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20190702000000,d_venc=20190702000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20190702 10:07 UPDATE documento_d2 SET linhas=1,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100000,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20190702 10:08 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,5,0,'',0,0,'',20190702000000,20190702000000,20000101100800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20190702 10:08 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100800,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Artigo Demo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='Familia 1',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-5.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20190702000000,baixa='S',lnh_obs='',stock2=0.00,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=2181788648250546500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20190702 10:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,5,'1','Artigo Demo','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20190702 10:08 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',5,20190702000000,20190702000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20190702 10:08 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100800,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20190702000000,d_venc=20190702000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:08 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100800,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20190702000000,d_venc=20190702000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:08 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190702000000,h_doc=20000101100800,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20190702000000,d_venc=20190801000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:09 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190801000000,h_doc=20000101100800,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20190702000000,d_venc=20190801000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20190702 10:09 UPDATE documento_d2 SET linhas=1,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20190702000000,d_venc=20190801000000,h_doc=20000101100800,no_cf=1,nome_cf='Cliente Demo',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=2,cond_pagam='A 30 DIAS',prazo=30,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20190702 10:09 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20190702 10:10 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20190702 10:10 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20190702 14:25 UPDATE serdoc SET numero=1,serie='A',nome='SERIE A',obs='',ano=0,closed=0,rsv='' WHERE IDX=1 LIMIT 1;
20190702 14:26 TRUNCATE TABLE documento_D1
20190702 14:26 TRUNCATE TABLE documento_linhas_D1
20190702 14:26 TRUNCATE TABLE documento_D1_a_hash
20190702 14:26 TRUNCATE TABLE documento_D2
20190702 14:26 TRUNCATE TABLE documento_linhas_D2
20190702 14:26 TRUNCATE TABLE documento_D2_a_hash
20190702 14:26 TRUNCATE TABLE documento_D3
20190702 14:26 TRUNCATE TABLE documento_linhas_D3
20190702 14:26 TRUNCATE TABLE documento_D3_a_hash
20190702 14:26 TRUNCATE TABLE documento_D5
20190702 14:26 TRUNCATE TABLE documento_linhas_D5
20190702 14:26 TRUNCATE TABLE documento_D5_a_hash
20190702 14:26 TRUNCATE TABLE documento_D6
20190702 14:26 TRUNCATE TABLE documento_linhas_D6
20190702 14:26 TRUNCATE TABLE documento_D6_a_hash
20190702 14:26 TRUNCATE TABLE documento_D7
20190702 14:26 TRUNCATE TABLE documento_linhas_D7
20190702 14:26 TRUNCATE TABLE documento_D7_a_hash
20190702 14:26 TRUNCATE TABLE documento_D10
20190702 14:26 TRUNCATE TABLE documento_linhas_D10
20190702 14:26 TRUNCATE TABLE documento_D10_a_hash
20190702 14:26 TRUNCATE TABLE documento_D11
20190702 14:26 TRUNCATE TABLE documento_linhas_D11
20190702 14:26 TRUNCATE TABLE documento_D11_a_hash
20190702 14:26 TRUNCATE TABLE documento_D13
20190702 14:26 TRUNCATE TABLE documento_linhas_D13
20190702 14:26 TRUNCATE TABLE documento_D13_a_hash
20190702 14:26 TRUNCATE TABLE documento_D14
20190702 14:26 TRUNCATE TABLE documento_linhas_D14
20190702 14:26 TRUNCATE TABLE documento_D14_a_hash
20190702 14:26 TRUNCATE TABLE documento_D15
20190702 14:26 TRUNCATE TABLE documento_linhas_D15
20190702 14:26 TRUNCATE TABLE documento_D15_a_hash
20190702 14:26 TRUNCATE TABLE documento_D16
20190702 14:26 TRUNCATE TABLE documento_linhas_D16
20190702 14:26 TRUNCATE TABLE documento_D16_a_hash
20190702 14:26 TRUNCATE TABLE documento_D17
20190702 14:26 TRUNCATE TABLE documento_linhas_D17
20190702 14:26 TRUNCATE TABLE documento_D17_a_hash
20190702 14:26 Tabla 'emp0001.documento_d17_a_hash' no existe
20190702 14:26 TRUNCATE TABLE documento_D17_a_hash
20190702 14:26 TRUNCATE TABLE documento_D18
20190702 14:26 TRUNCATE TABLE documento_linhas_D18
20190702 14:26 TRUNCATE TABLE documento_D18_a_hash
20190702 14:26 Tabla 'emp0001.documento_d18_a_hash' no existe
20190702 14:26 TRUNCATE TABLE documento_D18_a_hash
20190702 14:26 TRUNCATE TABLE documento_D20
20190702 14:26 TRUNCATE TABLE documento_linhas_D20
20190702 14:26 TRUNCATE TABLE documento_D20_a_hash
20190702 14:26 TRUNCATE TABLE documento_D21
20190702 14:26 TRUNCATE TABLE documento_linhas_D21
20190702 14:26 TRUNCATE TABLE documento_D21_a_hash
20190702 14:26 Tabla 'emp0001.documento_d21_a_hash' no existe
20190702 14:26 TRUNCATE TABLE documento_D21_a_hash
20190702 14:26 TRUNCATE TABLE documento_D22
20190702 14:26 TRUNCATE TABLE documento_linhas_D22
20190702 14:26 TRUNCATE TABLE documento_D22_a_hash
20190702 14:26 Tabla 'emp0001.documento_d22_a_hash' no existe
20190702 14:26 TRUNCATE TABLE documento_D22_a_hash
20190702 14:26 TRUNCATE TABLE documento_R1
20190702 14:26 TRUNCATE TABLE reciboslinhas01
20190702 14:26 TRUNCATE TABLE documento_R2
20190702 14:26 TRUNCATE TABLE reciboslinhas02
20201219 16:16 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20201219 16:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:16 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,2,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20201219 16:16 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1','1','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',73586037725549700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'','','','','','');
20201219 16:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=73586037725549700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=73586037725549700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:17 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'2','2','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',73586037725549700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0','0','0','0','0','');
20201219 16:17 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20201219000000,20201219000000,20000101161700,1,'Antonio',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',1.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20201219 16:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,0,'1','artigo1','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:17 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=0,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:17 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101161700,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:17 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=0,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:17 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',1,20201219000000,20201219000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,0,0,'A','');
20201219 16:17 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101161700,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:17 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20201219 16:17 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101161700,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:18 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',0,00000000000000,20001231000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20201219 16:18 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101161800,1,'Antonio',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20201219000000,'',1.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20201219 16:18 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101161700,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=12.3000,val_pend=0.0000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:18 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,0,'D',2,'N/ Fatura',1,20201219000000,20201219000000,'','D',12.30,12.30,12.30,0.000,0.00,12.30,0.00,0.00,0,'A',10.00,2.30,12.30,10.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,2.30,0.00,0.00,0.00,0,'');
20201219 16:18 UPDATE reciboslinhas01 SET linha=5,cor=0,no=0,doc_mov='D',tp=2,document='N/ Fatura',n_doc=1,d_doc=20201219000000,d_venc=20201219000000,ref='',deb_cred='D',val_doc=12.30,val_pend=12.30,val_liqu=12.30,per_desc=0.000,val_desc=0.00,val_rec=12.30,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=10.00,tot_iva=2.30,tot_valor=12.30,suj_valor0=10.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=2.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=0,d_doc=00000000000000,d_venc=20001231000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:18 UPDATE documento_r1 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101161800,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.3000,tot_desconto=0.0000,tot_liquido=12.3000,tot_iva=0.0000,tot_valor=12.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=0,d_doc=00000000000000,d_venc=20001231000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:18 UPDATE documento_r1 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101161800,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.3000,tot_desconto=0.0000,tot_liquido=12.3000,tot_iva=0.0000,tot_valor=12.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 16:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 16:25 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='A4TRITREVO.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:25 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='A4TRITREVO.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:25 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='A4TRITREVO.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:26 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 16:32 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20201219000000,20201219000000,20000101163200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20201219 16:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:32 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,2,'1','artigo1','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-11.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-11.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=10.000000,preco_unit=120.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1200.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1200.0000,tot_desconto=0.0000,tot_liquido=1200.0000,tot_iva=276.0000,tot_valor=1476.0000,val_pago=0.0000,val_pend=1476.0000,suj_valor0=1200.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=276.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:32 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:32 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-12.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1200.0000,tot_desconto=0.0000,tot_liquido=1200.0000,tot_iva=276.0000,tot_valor=1476.0000,val_pago=0.0000,val_pend=1476.0000,suj_valor0=1200.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=276.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1200.0000,tot_desconto=0.0000,tot_liquido=1200.0000,tot_iva=276.0000,tot_valor=1476.0000,val_pago=0.0000,val_pend=1476.0000,suj_valor0=1200.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=276.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-12.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=80.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=80.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1280.0000,tot_desconto=0.0000,tot_liquido=1280.0000,tot_iva=294.4000,tot_valor=1574.4000,val_pago=0.0000,val_pend=1574.4000,suj_valor0=1280.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=294.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-41.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:32 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=30.000000,preco_unit=80.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2400.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20201219 16:32 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.0000,tot_desconto=0.0000,tot_liquido=3600.0000,tot_iva=828.0000,tot_valor=4428.0000,val_pago=0.0000,val_pend=4428.0000,suj_valor0=3600.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:32 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.0000,tot_desconto=0.0000,tot_liquido=3600.0000,tot_iva=828.0000,tot_valor=4428.0000,val_pago=0.0000,val_pend=4428.0000,suj_valor0=3600.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.0000,tot_desconto=0.0000,tot_liquido=3600.0000,tot_iva=828.0000,tot_valor=4428.0000,val_pago=0.0000,val_pend=4428.0000,suj_valor0=3600.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.9800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.98,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.9800,tot_desconto=0.0000,tot_liquido=3600.9800,tot_iva=828.2300,tot_valor=4429.2100,val_pago=0.0000,val_pend=4429.2100,suj_valor0=3600.9800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.30,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.3000,tot_desconto=0.0000,tot_liquido=3600.3000,tot_iva=828.0700,tot_valor=4428.3700,val_pago=0.0000,val_pend=4428.3700,suj_valor0=3600.3000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.1200000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.12,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.1200,tot_desconto=0.0000,tot_liquido=3600.1200,tot_iva=828.0300,tot_valor=4428.1500,val_pago=0.0000,val_pend=4428.1500,suj_valor0=3600.1200,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.0300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.8800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.88,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.8800,tot_desconto=0.0000,tot_liquido=3600.8800,tot_iva=828.2000,tot_valor=4429.0800,val_pago=0.0000,val_pend=4429.0800,suj_valor0=3600.8800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.2000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.6600000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.66,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.6600,tot_desconto=0.0000,tot_liquido=3600.6600,tot_iva=828.1500,tot_valor=4428.8100,val_pago=0.0000,val_pend=4428.8100,suj_valor0=3600.6600,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.6700000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.67,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.6700,tot_desconto=0.0000,tot_liquido=3600.6700,tot_iva=828.1500,tot_valor=4428.8200,val_pago=0.0000,val_pend=4428.8200,suj_valor0=3600.6700,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.7100000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.71,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7100,tot_desconto=0.0000,tot_liquido=3600.7100,tot_iva=828.1600,tot_valor=4428.8700,val_pago=0.0000,val_pend=4428.8700,suj_valor0=3600.7100,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 16:35 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=2,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.7800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.78,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=12 LIMIT 1;
20201219 16:35 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=0.0000,val_pend=4428.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:38 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=0.0000,val_pend=4428.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:38 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',2,20201219000000,20201219000000,'','',4428.96,4428.96,'D',4428.96,0.00,0.00,828.18,0.00,1.000000,0,0,'A','');
20201219 16:38 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=0.0000,val_pend=4428.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=4428.96,pendente=4428.96,deb_cred='D',debito=4428.96,credito=0.00,acumulado=0.00,val_iva=828.18,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:38 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=0.0000,val_pend=4428.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=4428.96,pendente=4428.96,deb_cred='D',debito=4428.96,credito=0.00,acumulado=0.00,val_iva=828.18,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:38 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=0.0000,val_pend=4428.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 16:51 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101164300,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 16:54 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20201219 16:57 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:57 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:57 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,40,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 16:57 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20201219 16:59 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:03 UPDATE codigos_postais SET codigo='4700',concelho='Braga',distrito='Braga',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:03 UPDATE codigos_postais SET codigo='4700',concelho='Braga',distrito='Braga',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:03 UPDATE codigos_postais SET codigo='4700',concelho='Braga',distrito='Braga',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:04 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:04 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:04 INSERT INTO clientes__contactos_ (idx,linha,cor,no,nome,funcao,telemovel,obs,email,rsv) VALUES(NULL,5,0,1,'Sr. Joaquim','','','','','');
20201219 17:04 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:04 UPDATE clientes__contactos_ SET linha=5,cor=0,no=1,nome='Sr. Joaquim',funcao='diretor',telemovel='',obs='',email='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:04 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes__contactos_ SET linha=5,cor=0,no=1,nome='Sr. Joaquim',funcao='diretor',telemovel='91919191',obs='',email='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes__contactos_ SET linha=5,cor=0,no=1,nome='Sr. Joaquim',funcao='diretor',telemovel='91919191',obs='ok',email='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 INSERT INTO clientes__contactos_ (idx,linha,cor,no,nome,funcao,telemovel,obs,email,rsv) VALUES(NULL,10,0,1,'','','','','','');
20201219 17:05 INSERT INTO cliente_morada (idx,linha_f,cor,numero,num_morad,nome,morada,localidad,cp,concelho,distrito,zona,pais,contribui,telefone,fax,rsv) VALUES(NULL,5,0,1,2,'','','','','','','','','','','','');
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=2,nome='armazem',morada='',localidad='',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=2,nome='armazem',morada='rua de baico',localidad='',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=2,nome='armazem',morada='rua de baico',localidad='Braga',cp='',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE cliente_morada SET linha_f=5,cor=0,numero=1,num_morad=2,nome='armazem',morada='rua de baico',localidad='Braga',cp='4700',concelho='',distrito='',zona='',pais='',contribui='',telefone='',fax='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:05 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres da silva 1234567891234567',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-4428.96,saldo1=-4428.96,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:06 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:08 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:08 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:10 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:11 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:11 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:12 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20201219 17:13 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20201219 17:14 UPDATE historico_contas_correntes_clientes SET linha_f=1,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=0,d_doc=00000000000000,d_venc=20001231000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='C',debito=0.00,credito=12.30,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:14 UPDATE documento_r1 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101161800,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=12.3000,tot_desconto=0.0000,tot_liquido=12.3000,tot_iva=0.0000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:15 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20201219000000,00000000000000,20000101171500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20201219000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20201219 17:15 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20201219000000,20201219000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20201219 17:15 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171500,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=4428.9600,val_pend=0.0000,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,1,'D',2,'N/ Fatura',2,20201219000000,20201219000000,'','D',4428.96,4428.96,4428.96,0.000,0.00,4428.96,0.00,0.00,0,'A',3600.78,828.18,4428.96,3600.78,0.00,0.00,0.00,23.00,13.00,6.00,0.00,828.18,0.00,0.00,0.00,0,'');
20201219 17:15 UPDATE reciboslinhas01 SET linha=5,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',n_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',deb_cred='D',val_doc=4428.96,val_pend=4428.96,val_liqu=4428.96,per_desc=0.000,val_desc=0.00,val_rec=4428.96,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=3600.78,tot_iva=828.18,tot_valor=4428.96,suj_valor0=3600.78,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=828.18,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=4428.96,pendente=4428.96,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=4 LIMIT 1;
20201219 17:15 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171500,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=4428.9600,tot_desconto=0.0000,tot_liquido=4428.9600,tot_iva=0.0000,tot_valor=4428.9600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=950.0000,val_pend=3478.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 UPDATE reciboslinhas01 SET linha=5,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',n_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',deb_cred='D',val_doc=4428.96,val_pend=4428.96,val_liqu=950.00,per_desc=0.000,val_desc=0.00,val_rec=950.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=772.36,tot_iva=177.64,tot_valor=950.00,suj_valor0=772.36,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=177.64,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,1,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20201219 17:15 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=950.00,pendente=950.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=4 LIMIT 1;
20201219 17:15 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171500,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=950.0000,tot_desconto=0.0000,tot_liquido=950.0000,tot_iva=0.0000,tot_valor=950.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:15 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=950.00,pendente=950.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=4 LIMIT 1;
20201219 17:15 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171500,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=950.0000,tot_desconto=0.0000,tot_liquido=950.0000,tot_iva=0.0000,tot_valor=950.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:17 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20201219000000,00000000000000,20000101171700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20201219000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20201219 17:17 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',2,20201219000000,20201219000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20201219 17:17 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:17 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=4428.9600,val_pend=0.0000,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:17 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,2,'D',2,'N/ Fatura',2,20201219000000,20201219000000,'','D',4428.96,3478.96,3478.96,0.000,0.00,3478.96,0.00,0.00,0,'A',3600.78,828.18,4428.96,3600.78,0.00,0.00,0.00,23.00,13.00,6.00,0.00,828.18,0.00,0.00,0.00,0,'');
20201219 17:17 UPDATE reciboslinhas01 SET linha=5,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',n_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',deb_cred='D',val_doc=4428.96,val_pend=3478.96,val_liqu=3478.96,per_desc=0.000,val_desc=0.00,val_rec=3478.96,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=2828.42,tot_iva=650.54,tot_valor=3478.96,suj_valor0=2828.42,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=650.54,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 17:17 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=3478.96,pendente=3478.96,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20201219 17:17 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3478.9600,tot_desconto=0.0000,tot_liquido=3478.9600,tot_iva=0.0000,tot_valor=3478.9600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:17 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101163200,no_cf=1,nome_cf='Antonio',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=3600.7800,tot_desconto=0.0000,tot_liquido=3600.7800,tot_iva=828.1800,tot_valor=4428.9600,val_pago=1050.0000,val_pend=3378.9600,suj_valor0=3600.7800,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=828.1800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20201219 17:17 UPDATE reciboslinhas01 SET linha=5,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',n_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',deb_cred='D',val_doc=4428.96,val_pend=3478.96,val_liqu=100.00,per_desc=0.000,val_desc=0.00,val_rec=100.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=81.30,tot_iva=18.70,tot_valor=100.00,suj_valor0=81.30,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=18.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 17:17 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,2,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20201219 17:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='atrasado',valor=100.00,pendente=100.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20201219 17:18 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='atrasado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/',com_fp='123 cgd',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=0.0000,tot_valor=100.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='atrasado',valor=100.00,pendente=100.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20201219 17:18 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='atrasado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/',com_fp='123 cgd',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=0.0000,tot_valor=100.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='atrasado',valor=100.00,pendente=100.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20201219 17:18 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='atrasado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/',com_fp='123 cgd',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=0.0000,tot_valor=100.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:19 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='atrasado',valor=100.00,pendente=100.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20201219 17:19 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='atrasado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/',com_fp='123 cgd',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=0.0000,tot_valor=100.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:21 UPDATE historico_contas_correntes_clientes SET linha_f=3,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='atrasado',valor=100.00,pendente=100.00,deb_cred='C',debito=0.00,credito=100.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=5 LIMIT 1;
20201219 17:21 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101171700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='atrasado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=1,des_fp='CHEQUE S/',com_fp='123 cgd',no_banco=0,nome_banco='',tot_material=100.0000,tot_desconto=0.0000,tot_liquido=100.0000,tot_iva=0.0000,tot_valor=100.0000,val_pago=0.0000,val_pend=100.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20201219000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:36 UPDATE serdoc SET numero=1,serie='A',nome='SERIE A',obs='',ano=2020,closed=0,rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:37 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,3,0,'',0,0,'',20201219000000,20201219000000,20000101173700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20201219 17:37 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101173700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Artigo 2',designacao_2='artigo 2',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20201219 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201219 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='xpto',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201219 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='xpto',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-42.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201219 17:47 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=2,nome_opr='Operador 2',hora_i=20000101174700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:47 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=1,nome_opr='Operador 1',hora_i=20000101174700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 17:47 UPDATE postos SET no=0,descricao='',dir_temp='',no_opr=2,nome_opr='Operador 2',hora_i=20000101174700,activo='',rsv='' WHERE IDX=1 LIMIT 1;
20201219 18:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,3,'1','artigo1','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,3,'','xpto','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='xpto',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-43.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=657987907548433560000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 18:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=18 LIMIT 1;
20201219 18:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=18 LIMIT 1;
20201219 18:08 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',3,20201219000000,20201219000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20201219 18:08 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101173700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 18:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,3,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:08 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=3,codigo='2',designacao='Artigo 2',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20201219 18:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,3,'','artigo 2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:08 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Artigo 2',designacao_2='artigo 2',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20201219 18:08 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=3,codigo='2',designacao='Artigo 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20201219 18:08 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=3,codigo='2',designacao='Artigo 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20201219 18:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=30.75,pendente=30.75,deb_cred='D',debito=30.75,credito=0.00,acumulado=0.00,val_iva=5.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20201219 18:08 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101173700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 18:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,3,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:08 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,3,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:08 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=30.75,pendente=30.75,deb_cred='D',debito=30.75,credito=0.00,acumulado=0.00,val_iva=5.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20201219 18:08 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101173700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20201219 18:09 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',20201219000000,20201219000000,20000101180900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,4,'1','artigo1','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,4,'','xpto','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='xpto',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20201219 18:09 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20201219 18:09 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='1',designacao='artigo1',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',4,20201219000000,20201219000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=4,codigo='2',designacao='Artigo 2',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,4,'','artigo 2','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Artigo 2',designacao_2='artigo 2',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20201219 18:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=4,codigo='2',designacao='Artigo 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20201219 18:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=4,codigo='2',designacao='Artigo 2',unidade='',com_iva='',quantidade=1.000000,preco_unit=15.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=15.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20201219 18:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=30.75,pendente=30.75,deb_cred='D',debito=30.75,credito=0.00,acumulado=0.00,val_iva=5.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,4,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:09 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=30.75,pendente=30.75,deb_cred='D',debito=30.75,credito=0.00,acumulado=0.00,val_iva=5.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20201219 18:09 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101180900,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='artigo1',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201219 18:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Artigo 2',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20201219 18:10 UPDATE documento_d2 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
20201219 18:10 UPDATE documento_d2 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
20201219 18:26 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'3','3','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0','0','0','0','0','');
20201219 18:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='Art 3',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=25.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=30.7500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=3 LIMIT 1;
20201219 18:27 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,5,0,'',0,0,'',20201219000000,20201219000000,20000101182700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20201219 18:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='Art 3',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=25.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=30.7500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='',marg_3=-27253903738997646000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=3 LIMIT 1;
20201219 18:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,5,'3','Art 3','','',1.000000,25.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,25.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=5,codigo='3',designacao='Art 3',unidade='',com_iva='',quantidade=1.000000,preco_unit=25.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=25.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20201219 18:27 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,5,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=5,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20201219 18:27 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:27 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,5,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20201219 18:27 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'123','123','','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',96807106008555731000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','0','0.00','0.00','');
20201219 18:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=4 LIMIT 1;
20201219 18:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=5,codigo='123',designacao='',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20201219 18:29 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:29 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',5,20201219000000,20201219000000,'','',30.75,30.75,'D',30.75,0.00,0.00,5.75,0.00,1.000000,1,0,'A','');
20201219 18:29 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=30.75,pendente=30.75,deb_cred='D',debito=30.75,credito=0.00,acumulado=0.00,val_iva=5.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:29 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20201219000000,d_venc=20201219000000,ref='',obs='',valor=30.75,pendente=30.75,deb_cred='D',debito=30.75,credito=0.00,acumulado=0.00,val_iva=5.75,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20201219 18:29 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20201219000000,d_venc=20201219000000,h_doc=20000101182700,no_cf=1,nome_cf='Antonio Torres da silva 1234567891234567',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=25.0000,tot_desconto=0.0000,tot_liquido=25.0000,tot_iva=5.7500,tot_valor=30.7500,val_pago=0.0000,val_pend=30.7500,suj_valor0=25.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20201219 18:33 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20201219 18:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20201219 18:35 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'124','124','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0','0','0','0','0','');
20201219 18:35 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','','0.00','0.00','');
20201219 18:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=4 LIMIT 1;
20201219 18:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='123',codigo2='123',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=4 LIMIT 1;
20201219 18:37 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'125','125','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',-0.0000000,'0','0','0','0','0','');
20201219 18:37 DELETE FROM artigos_composicao WHERE  cod_cab='125' 
20201219 18:37 DELETE FROM artigos_armazem WHERE  codigo='125' 
20201219 18:37 DELETE FROM artigos_equivalencias WHERE  codigo='125' 
20201219 18:37 DELETE FROM artigos_embalagens WHERE  codigo='125' 
20201219 18:37 DELETE FROM artigos_observacoes WHERE  codigo='125' 
20201219 18:37 DELETE FROM artigos_hist WHERE  codigo='125' 
20201219 18:37 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'125','125','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',-0.0000000,'0','0','0','0','0','');
20201219 18:37 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'126','126','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',-0.0000000,'0','0','0','0','0','');
20201219 18:38 DELETE FROM artigos_composicao WHERE  cod_cab='' 
20201219 18:38 DELETE FROM artigos_armazem WHERE  codigo='' 
20201219 18:38 DELETE FROM artigos_equivalencias WHERE  codigo='' 
20201219 18:38 DELETE FROM artigos_embalagens WHERE  codigo='' 
20201219 18:38 DELETE FROM artigos_observacoes WHERE  codigo='' 
20201219 18:38 DELETE FROM artigos_hist WHERE  codigo='' 
20201219 18:38 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'127','127','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',-0.0000000,'0','0','0','0','0','');
20201219 18:38 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'4','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',-0.0000000,'0.00','0.00','','0.00','0.00','');
20201219 18:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4',codigo2='4',designacao_1='art 4',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=1.2300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=11 LIMIT 1;
20201219 21:30 CREATE TABLE IF NOT EXISTS tipos_de_documentosd (IDX INT NOT NULL AUTO_INCREMENT,numero int(5),designacao char(22),cli_forn char(3),tipo_desc char(3),no_vias int(5),ficheiro char(22),porta int(5),flg_cco char(3),ctrl_seq char(3),mov_stock char(3),ecr char(11),abvr char(6),mov_finan char(3),carta_anexo char(3),extras char(3),des_cco char(22),cco_banco char(3),mov_caixa char(3),act_preco char(3),edt_temp char(3),doc_org char(32),ficheiro2 char(22),porta2 int(5),armazem int(5),mov_res char(3),com_cli char(3),inc_vias char(3),no int(5),sem_iva char(3),com_obs char(3),res_bal char(3),des_base char(22),des_altern char(22),tipo_imp char(3),bx_encs char(3),cria_resc char(3),tipo_vcd char(3),linha_preco int(5),saft char(3),irs char(3),hash char(3),pda int(5),ivac int(5),sourcebilling char(3),rsv char(13),PRIMARY KEY (IDX),UNIQUE INDEX tipos_de_documentosd_1 (Numero) );
20201219 21:30 CREATE TABLE IF NOT EXISTS documento_d1 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),ivac int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d1_1 (no_doc) ,INDEX documento_d1_2 (no_cf,no_doc) ,INDEX documento_d1_3 (d_doc,no_doc) );
20201219 21:30 CREATE TABLE IF NOT EXISTS documento_pagamento_d1 (IDX INT NOT NULL AUTO_INCREMENT,lnh_f int(5),cor int(5),no_doc int,conta int(5),no_forma int(5),des_forma char(22),data date,ref char(22),obs char(42),valor double,transf char(3),estado char(3),serdoc char(7),tpdoc int(5),rsv char(16),PRIMARY KEY (IDX),UNIQUE INDEX documento_pagamento_d1_1 (no_doc,lnh_f) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos (IDX INT NOT NULL AUTO_INCREMENT,lnh_des int(5),lnh_arm int(5),lnh_cmp int(5),lnh_equ int(5),codigo char(16),codigo2 char(16),designacao_1 char(42),designacao_2 char(42),abvr char(16),no_un_ int(5),unidade char(8),armazem char(16),familia char(16),ultimo_custo double,custo_medio double,valor_medio double,no_iva int(5),iva double,marg_1 double,marg_2 double,prc_s_iva_1 double,prc_s_iva_2 double,prc_c_iva_1 double,prc_c_iva_2 double,stock_minimo double,stock double,stock_maximo double,no_forn int,d_entrada date,d_saida date,baixa char(3),lnh_obs char(3),stock2 double,lnh_emb char(3),lnh_prom char(3),flg int(5),anos_ga int(5),local_imp int(5),usaserie char(5),miva int(5),rsv char(5),marg_3 double,prc_s_iva_3 double,prc_c_iva_3 double,marg_4 double,prc_s_iva_4 double,prc_c_iva_4 double,peso char(11),PRIMARY KEY (IDX),UNIQUE INDEX artigos_1 (Codigo) ,INDEX artigos_2 (Codigo2,codigo) ,INDEX artigos_3 (designacao_1,codigo) ,INDEX artigos_4 (familia,codigo) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos_composicao (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),cod_cab char(16),codigo char(16),desig char(42),qtd double,custo double,rsv char(20),PRIMARY KEY (IDX),UNIQUE INDEX artigos_composicao_1 (cod_cab,linha) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos_armazem (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),codigo char(16),num_arm int,des_arm char(16),stock double,arm_ent char(3),arm_sai char(3),stock2 double,valor double,valor2 double,rsv char(37),PRIMARY KEY (IDX),UNIQUE INDEX artigos_armazem_1 (codigo,linha) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos_equivalencias (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),codigo char(16),cod_equ char(16),des_equ char(42),obs char(42),rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX artigos_equivalencias_1 (codigo,linha) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos_embalagens (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),codigo char(16),no_un int(5),unidade char(8),qtd double,rsv char(11),PRIMARY KEY (IDX),UNIQUE INDEX artigos_embalagens_1 (codigo,linha) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos_observacoes (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),codigo char(16),cod_obs char(8),des_obs char(42),rsv char(12),PRIMARY KEY (IDX),UNIQUE INDEX artigos_observacoes_1 (codigo,linha) );
20201219 21:30 CREATE TABLE IF NOT EXISTS artigos_hist (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),codigo char(16),num_f int,nome_f char(42),preco double,desc1 double,desc2 double,data date,rsv char(17),PRIMARY KEY (IDX),UNIQUE INDEX artigos_hist_1 (codigo,linha) );
20201219 21:31 CREATE TABLE IF NOT EXISTS clientes (IDX INT NOT NULL AUTO_INCREMENT,lnhcco int(5),lnhcnt int(5),lnhart int(5),lnhcmp int(5),numero int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),distrito char(32),zona char(22),n_pais int(5),pais char(22),contribuinte char(17),telefone char(32),fax char(32),n_cp int(5),c_pagamento char(22),prazo int(5),desconto double,linha_precos int(5),n_bnc int,email char(42),conta char(22),n_vendedor int(5),vendedor char(42),comissao double,ppz char(3),saldo0 double,saldo1 double,obs char(42),dsc_linha double,plafont double,no_classe int(5),des_classe char(22),lim_cred int(5),data date,miva int(5),venc int(5),rsv char(10),PRIMARY KEY (IDX),UNIQUE INDEX clientes_1 (Numero) );
20201219 21:31 CREATE TABLE IF NOT EXISTS clientes__contactos_ (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),no int,nome char(42),funcao char(42),telemovel char(22),obs char(42),email char(42),rsv char(39),PRIMARY KEY (IDX),UNIQUE INDEX clientes__contactos__1 (no,linha) );
20201219 21:31 CREATE TABLE IF NOT EXISTS artigos_cliente (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),no int,codigo char(16),desig char(42),preco double,desconto double,abvr_doc char(6),nodoc int,data_doc date,desc_val double,rsv char(18),PRIMARY KEY (IDX),UNIQUE INDEX artigos_cliente_1 (no,linha) );
20201219 21:31 CREATE TABLE IF NOT EXISTS cliente_morada (IDX INT NOT NULL AUTO_INCREMENT,linha_f int(5),cor int(5),numero int,num_morad int,nome char(42),morada char(52),localidad char(32),cp char(12),concelho char(32),distrito char(32),zona char(22),pais char(22),contribui char(17),telefone char(32),fax char(32),rsv char(129),PRIMARY KEY (IDX),UNIQUE INDEX cliente_morada_1 (numero,linha_f) );
20201219 21:31 CREATE TABLE IF NOT EXISTS fornecedores (IDX INT NOT NULL AUTO_INCREMENT,lnhcco int(5),lnhcnt int(5),lnhart int(5),lnhcmp int(5),numero int,nome_1 char(42),nome_2 char(42),morada char(52),localidade char(32),cod_post char(12),concelho char(32),distrito char(32),zona char(22),n_pais int(5),pais char(22),contribuinte char(17),telefone char(32),fax char(32),n_cp int(5),c_pagamento char(22),prazo int(5),desconto double,linha_precos int(5),n_bnc int,email char(42),conta char(22),n_vendedor int(5),vendedor char(42),comissao double,ppz char(3),saldo0 double,saldo1 double,obs char(42),dsc_linha double,plafont double,no_classe int(5),des_classe char(22),lim_cred int(5),data date,miva int(5),venc int(5),rsv char(12),PRIMARY KEY (IDX),UNIQUE INDEX fornecedores_1 (numero) );
20201219 21:31 CREATE TABLE IF NOT EXISTS fornecedores_contactos (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),no int,nome char(42),funcao char(42),telemovel char(22),obs char(42),rsv char(39),PRIMARY KEY (IDX),UNIQUE INDEX fornecedores_contactos_1 (no,linha) );
20201219 21:31 CREATE TABLE IF NOT EXISTS conversao_artigos_fornecedor (IDX INT NOT NULL AUTO_INCREMENT,linha int(5),cor int(5),no int,cod_forn char(16),cod_int char(16),desig char(42),preco double,data date,rsv char(20),PRIMARY KEY (IDX),UNIQUE INDEX conversao_artigos_fornecedor_1 (no,linha) );
20201219 21:31 CREATE TABLE IF NOT EXISTS documento_d2 (IDX INT NOT NULL AUTO_INCREMENT,linhas int(5),no_doc int,emitido int(5),anulado char(3),no_moed int(5),convertido int,referencia char(22),d_doc date,d_venc date,h_doc datetime,no_cf int,nome_cf char(42),desconto double,linha_pre int(5),observacao char(42),no_operador int(5),no_vended int(5),comissao double,n_cond_pag int(5),cond_pagam char(22),prazo int(5),num_fp int(5),des_fp char(22),com_fp char(22),no_banco int,nome_banco char(42),tot_material double,tot_desconto double,tot_liquido double,tot_iva double,tot_valor double,val_pago double,val_pend double,suj_valor0 double,suj_valor1 double,suj_valor2 double,suj_valor3 double,suj_taxa0 double,suj_taxa1 double,suj_taxa2 double,suj_taxa3 double,suj_iva0 double,suj_iva1 double,suj_iva2 double,suj_iva3 double,tdc int(5),estado char(3),d_lan date,moeda char(12),cambio double,doc_mov_c char(3),lnhs_pgm int(5),recebido double,bruto double,irs double,morada int(5),custos double,serdoc char(7),tpdoc int(5),ivac int(5),rsv char(34),PRIMARY KEY (IDX),UNIQUE INDEX documento_d2_1 (no_doc) ,INDEX documento_d2_2 (no_cf,no_doc) ,INDEX documento_d2_3 (d_doc,no_doc) );
20201220 13:11 DELETE FROM artigos_composicao WHERE  cod_cab='4' 
20201220 13:11 DELETE FROM artigos_armazem WHERE  codigo='4' 
20201220 13:11 DELETE FROM artigos_equivalencias WHERE  codigo='4' 
20201220 13:11 DELETE FROM artigos_embalagens WHERE  codigo='4' 
20201220 13:11 DELETE FROM artigos_observacoes WHERE  codigo='4' 
20201220 13:11 DELETE FROM artigos_hist WHERE  codigo='4' 
20201220 19:55 UPDATE familias__artigos_ SET codigo='FAM1',descricao='Materia',grupo=0,categ='M',rsv='',desc_max='0' WHERE IDX=1 LIMIT 1;
20201220 19:55 INSERT INTO familias__artigos_ (idx,codigo,descricao,grupo,categ,rsv,desc_max) VALUES(NULL,'01','',0,'','','0');
20201220 19:56 UPDATE familias__artigos_ SET codigo='01',descricao='Material',grupo=0,categ='M',rsv='',desc_max='0' WHERE IDX=2 LIMIT 1;
20201220 19:56 INSERT INTO familias__artigos_ (idx,codigo,descricao,grupo,categ,rsv,desc_max) VALUES(NULL,'2','',0,'','','0');
20201220 19:56 UPDATE familias__artigos_ SET codigo='1',descricao='Material',grupo=0,categ='M',rsv='',desc_max='0' WHERE IDX=2 LIMIT 1;
20201220 19:56 UPDATE familias__artigos_ SET codigo='2',descricao='Consumiveis',grupo=0,categ='M',rsv='',desc_max='0' WHERE IDX=3 LIMIT 1;
20201220 19:56 INSERT INTO familias__artigos_ (idx,codigo,descricao,grupo,categ,rsv,desc_max) VALUES(NULL,'3','',0,'','','0');
20201220 19:57 UPDATE familias__artigos_ SET codigo='3',descricao='Servi‡o',grupo=0,categ='M',rsv='',desc_max='0' WHERE IDX=4 LIMIT 1;
20201220 19:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Assistencia tecnica',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20201220 19:58 INSERT INTO familias__artigos_ (idx,codigo,descricao,grupo,categ,rsv,desc_max) VALUES(NULL,'4','',0,'','','0');
20201220 19:58 UPDATE familias__artigos_ SET codigo='4',descricao='Desloca‡Ćo',grupo=0,categ='M',rsv='',desc_max='0' WHERE IDX=5 LIMIT 1;
20201220 19:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Desloca‡Ćo',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20201220 19:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='Contrato Assistencia Tecnica',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=25.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=30.7500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=3 LIMIT 1;
20201221 15:17 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20201221 15:19 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='a4jose.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20201221 15:19 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='a4jose.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20201221 15:21 TRUNCATE TABLE documento_D1
20201221 15:21 TRUNCATE TABLE documento_linhas_D1
20201221 15:21 TRUNCATE TABLE documento_D1_a_hash
20201221 15:21 TRUNCATE TABLE documento_D2
20201221 15:21 TRUNCATE TABLE documento_linhas_D2
20201221 15:21 TRUNCATE TABLE documento_D2_a_hash
20201221 15:21 TRUNCATE TABLE documento_D3
20201221 15:21 TRUNCATE TABLE documento_linhas_D3
20201221 15:21 TRUNCATE TABLE documento_D3_a_hash
20201221 15:21 TRUNCATE TABLE documento_D5
20201221 15:21 TRUNCATE TABLE documento_linhas_D5
20201221 15:21 TRUNCATE TABLE documento_D5_a_hash
20201221 15:21 TRUNCATE TABLE documento_D6
20201221 15:21 TRUNCATE TABLE documento_linhas_D6
20201221 15:21 TRUNCATE TABLE documento_D6_a_hash
20201221 15:21 TRUNCATE TABLE documento_D7
20201221 15:21 TRUNCATE TABLE documento_linhas_D7
20201221 15:21 TRUNCATE TABLE documento_D7_a_hash
20201221 15:21 TRUNCATE TABLE documento_D10
20201221 15:21 TRUNCATE TABLE documento_linhas_D10
20201221 15:21 TRUNCATE TABLE documento_D10_a_hash
20201221 15:21 TRUNCATE TABLE documento_D11
20201221 15:21 TRUNCATE TABLE documento_linhas_D11
20201221 15:21 TRUNCATE TABLE documento_D11_a_hash
20201221 15:21 TRUNCATE TABLE documento_D13
20201221 15:21 TRUNCATE TABLE documento_linhas_D13
20201221 15:21 TRUNCATE TABLE documento_D13_a_hash
20201221 15:21 TRUNCATE TABLE documento_D14
20201221 15:21 TRUNCATE TABLE documento_linhas_D14
20201221 15:21 TRUNCATE TABLE documento_D14_a_hash
20201221 15:21 TRUNCATE TABLE documento_D15
20201221 15:21 TRUNCATE TABLE documento_linhas_D15
20201221 15:21 TRUNCATE TABLE documento_D15_a_hash
20201221 15:21 TRUNCATE TABLE documento_D16
20201221 15:21 TRUNCATE TABLE documento_linhas_D16
20201221 15:21 TRUNCATE TABLE documento_D16_a_hash
20201221 15:21 TRUNCATE TABLE documento_D17
20201221 15:21 TRUNCATE TABLE documento_linhas_D17
20201221 15:21 TRUNCATE TABLE documento_D17_a_hash
20201221 15:21 Tabla 'emp0001.documento_d17_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D17_a_hash
20201221 15:21 TRUNCATE TABLE documento_D18
20201221 15:21 TRUNCATE TABLE documento_linhas_D18
20201221 15:21 TRUNCATE TABLE documento_D18_a_hash
20201221 15:21 Tabla 'emp0001.documento_d18_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D18_a_hash
20201221 15:21 TRUNCATE TABLE documento_D20
20201221 15:21 TRUNCATE TABLE documento_linhas_D20
20201221 15:21 TRUNCATE TABLE documento_D20_a_hash
20201221 15:21 TRUNCATE TABLE documento_D21
20201221 15:21 TRUNCATE TABLE documento_linhas_D21
20201221 15:21 TRUNCATE TABLE documento_D21_a_hash
20201221 15:21 Tabla 'emp0001.documento_d21_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D21_a_hash
20201221 15:21 TRUNCATE TABLE documento_D22
20201221 15:21 TRUNCATE TABLE documento_linhas_D22
20201221 15:21 TRUNCATE TABLE documento_D22_a_hash
20201221 15:21 Tabla 'emp0001.documento_d22_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D22_a_hash
20201221 15:21 TRUNCATE TABLE documento_R1
20201221 15:21 TRUNCATE TABLE reciboslinhas01
20201221 15:21 TRUNCATE TABLE documento_R2
20201221 15:21 TRUNCATE TABLE reciboslinhas02
20201221 15:21 TRUNCATE TABLE documento_D1
20201221 15:21 TRUNCATE TABLE documento_linhas_D1
20201221 15:21 TRUNCATE TABLE documento_D1_a_hash
20201221 15:21 TRUNCATE TABLE documento_D2
20201221 15:21 TRUNCATE TABLE documento_linhas_D2
20201221 15:21 TRUNCATE TABLE documento_D2_a_hash
20201221 15:21 TRUNCATE TABLE documento_D3
20201221 15:21 TRUNCATE TABLE documento_linhas_D3
20201221 15:21 TRUNCATE TABLE documento_D3_a_hash
20201221 15:21 TRUNCATE TABLE documento_D5
20201221 15:21 TRUNCATE TABLE documento_linhas_D5
20201221 15:21 TRUNCATE TABLE documento_D5_a_hash
20201221 15:21 TRUNCATE TABLE documento_D6
20201221 15:21 TRUNCATE TABLE documento_linhas_D6
20201221 15:21 TRUNCATE TABLE documento_D6_a_hash
20201221 15:21 TRUNCATE TABLE documento_D7
20201221 15:21 TRUNCATE TABLE documento_linhas_D7
20201221 15:21 TRUNCATE TABLE documento_D7_a_hash
20201221 15:21 TRUNCATE TABLE documento_D10
20201221 15:21 TRUNCATE TABLE documento_linhas_D10
20201221 15:21 TRUNCATE TABLE documento_D10_a_hash
20201221 15:21 TRUNCATE TABLE documento_D11
20201221 15:21 TRUNCATE TABLE documento_linhas_D11
20201221 15:21 TRUNCATE TABLE documento_D11_a_hash
20201221 15:21 TRUNCATE TABLE documento_D13
20201221 15:21 TRUNCATE TABLE documento_linhas_D13
20201221 15:21 TRUNCATE TABLE documento_D13_a_hash
20201221 15:21 TRUNCATE TABLE documento_D14
20201221 15:21 TRUNCATE TABLE documento_linhas_D14
20201221 15:21 TRUNCATE TABLE documento_D14_a_hash
20201221 15:21 TRUNCATE TABLE documento_D15
20201221 15:21 TRUNCATE TABLE documento_linhas_D15
20201221 15:21 TRUNCATE TABLE documento_D15_a_hash
20201221 15:21 TRUNCATE TABLE documento_D16
20201221 15:21 TRUNCATE TABLE documento_linhas_D16
20201221 15:21 TRUNCATE TABLE documento_D16_a_hash
20201221 15:21 TRUNCATE TABLE documento_D17
20201221 15:21 TRUNCATE TABLE documento_linhas_D17
20201221 15:21 TRUNCATE TABLE documento_D17_a_hash
20201221 15:21 Tabla 'emp0001.documento_d17_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D17_a_hash
20201221 15:21 TRUNCATE TABLE documento_D18
20201221 15:21 TRUNCATE TABLE documento_linhas_D18
20201221 15:21 TRUNCATE TABLE documento_D18_a_hash
20201221 15:21 Tabla 'emp0001.documento_d18_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D18_a_hash
20201221 15:21 TRUNCATE TABLE documento_D20
20201221 15:21 TRUNCATE TABLE documento_linhas_D20
20201221 15:21 TRUNCATE TABLE documento_D20_a_hash
20201221 15:21 TRUNCATE TABLE documento_D21
20201221 15:21 TRUNCATE TABLE documento_linhas_D21
20201221 15:21 TRUNCATE TABLE documento_D21_a_hash
20201221 15:21 Tabla 'emp0001.documento_d21_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D21_a_hash
20201221 15:21 TRUNCATE TABLE documento_D22
20201221 15:21 TRUNCATE TABLE documento_linhas_D22
20201221 15:21 TRUNCATE TABLE documento_D22_a_hash
20201221 15:21 Tabla 'emp0001.documento_d22_a_hash' no existe
20201221 15:21 TRUNCATE TABLE documento_D22_a_hash
20201221 15:21 TRUNCATE TABLE documento_R1
20201221 15:21 TRUNCATE TABLE reciboslinhas01
20201221 15:21 TRUNCATE TABLE documento_R2
20201221 15:21 TRUNCATE TABLE reciboslinhas02
20201221 15:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-3471.21,saldo1=-3471.21,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201221 15:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-3471.21,saldo1=-3471.21,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201221 15:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-3471.21,saldo1=-3471.21,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201221 15:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-3471.21,saldo1=-3471.21,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201221 15:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='253 253 253',fax='fax',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='email',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=-3471.21,saldo1=-3471.21,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20201221 15:55 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,0,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:28 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20210111000000,20210111000000,20000101112800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210111 11:31 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-749','B','','');
20210111 11:32 UPDATE codigos_postais SET codigo='4820-749',concelho='',distrito='Braga',rsv='' WHERE IDX=5 LIMIT 1;
20210111 11:33 UPDATE codigos_postais SET codigo='4820-749',concelho='BRAGA',distrito='Braga',rsv='' WHERE IDX=5 LIMIT 1;
20210111 11:34 UPDATE codigos_postais SET codigo='4820-749',concelho='FAFE',distrito='FAFE',rsv='' WHERE IDX=5 LIMIT 1;
20210111 11:35 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Antonio Torres',nome_2='',morada='Rua de cima , 57 lt 23',localidade='Vila nova de famalicĆo ‡Ćo',cod_post='4700',concelho='Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='506071472',telefone='918566698',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='CONSTRU€OES BAIRRO DO SOL. LDA.',nome_2='',morada='Rua do Alto da Portela, Lt 8',localidade='Ar”es S. RomĆo',cod_post='4820-749',concelho='FAFE',distrito='FAFE',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='506071472',telefone='918566698',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=1,vendedor='Vendedor 1',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=78,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Braculant',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20210111 11:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='3',codigo2='3',designacao_1='QB500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=25.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=30.7500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='S',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=3 LIMIT 1;
20210111 11:41 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-45.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:41 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'1','Quimibus','','',1.000000,10.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,10.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',1,20210111000000,20210111000000,'','',12.30,12.30,'D',12.30,0.00,0.00,2.30,0.00,1.000000,1,0,'A','');
20210111 11:41 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=10.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=12.30,pendente=12.30,deb_cred='D',debito=12.30,credito=0.00,acumulado=0.00,val_iva=2.30,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:41 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=10.0000,tot_desconto=0.0000,tot_liquido=10.0000,tot_iva=2.3000,tot_valor=12.3000,val_pago=0.0000,val_pend=12.3000,suj_valor0=10.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:42 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-45.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=63414101195629355000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:42 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=5.7000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=5.70,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:42 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=7.01,pendente=7.01,deb_cred='D',debito=7.01,credito=0.00,acumulado=0.00,val_iva=1.31,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:42 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.7000,tot_desconto=0.0000,tot_liquido=5.7000,tot_iva=1.3100,tot_valor=7.0100,val_pago=0.0000,val_pend=7.0100,suj_valor0=5.7000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.3100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=7.01,pendente=7.01,deb_cred='D',debito=7.01,credito=0.00,acumulado=0.00,val_iva=1.31,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=5.7000,tot_desconto=0.0000,tot_liquido=5.7000,tot_iva=1.3100,tot_valor=7.0100,val_pago=0.0000,val_pend=7.0100,suj_valor0=5.7000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.3100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-45.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=171.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=171.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=210.33,pendente=210.33,deb_cred='D',debito=210.33,credito=0.00,acumulado=0.00,val_iva=39.33,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=171.0000,tot_desconto=0.0000,tot_liquido=171.0000,tot_iva=39.3300,tot_valor=210.3300,val_pago=0.0000,val_pend=210.3300,suj_valor0=171.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.3300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=6151346668555375200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=171.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=342.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='D',debito=420.66,credito=0.00,acumulado=0.00,val_iva=78.66,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=0.0000,val_pend=420.6600,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:45 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:46 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'4','4','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210111 11:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4',codigo2='4',designacao_1='Quimibus (20L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=12 LIMIT 1;
20210111 11:46 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'5','5','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0','0','0','0','0','');
20210111 11:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='5',codigo2='5',designacao_1='Quimibus (10L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=13 LIMIT 1;
20210111 11:46 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='D',debito=420.66,credito=0.00,acumulado=0.00,val_iva=78.66,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:46 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=0.0000,val_pend=420.6600,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=10.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=12.3000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=63414101195629355000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=20.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=10.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=20.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:46 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:46 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.0000,tot_desconto=0.0000,tot_liquido=20.0000,tot_iva=4.6000,tot_valor=24.6000,val_pago=0.0000,val_pend=24.6000,suj_valor0=20.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=4.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=171.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=210.3300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.0000,tot_desconto=0.0000,tot_liquido=20.0000,tot_iva=4.6000,tot_valor=24.6000,val_pago=0.0000,val_pend=24.6000,suj_valor0=20.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=4.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=171.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=210.3300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=171.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=342.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=171.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=342.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='D',debito=420.66,credito=0.00,acumulado=0.00,val_iva=78.66,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:47 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=0.0000,val_pend=420.6600,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:49 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='D',debito=420.66,credito=0.00,acumulado=0.00,val_iva=78.66,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:49 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=0.0000,val_pend=420.6600,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:49 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='D',debito=420.66,credito=0.00,acumulado=0.00,val_iva=78.66,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:49 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=0.0000,val_pend=420.6600,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:50 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',0,00000000000000,20001231000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210111 11:50 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,0,0,'',1,0,'',00000000000000,20001231000000,20000101115000,1,'CONSTRU€OES BAIRRO DO SOL. LDA.',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210111000000,'EURO',1.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210111 11:50 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=420.6600,val_pend=0.0000,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:50 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,0,'D',2,'N/ Fatura',1,20210111000000,20210111000000,'','D',420.66,420.66,420.66,0.000,0.00,420.66,0.00,0.00,0,'A',342.00,78.66,420.66,342.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,78.66,0.00,0.00,0.00,0,'');
20210111 11:50 UPDATE reciboslinhas01 SET linha=5,cor=0,no=0,doc_mov='D',tp=2,document='N/ Fatura',n_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',deb_cred='D',val_doc=420.66,val_pend=420.66,val_liqu=420.66,per_desc=0.000,val_desc=0.00,val_rec=420.66,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=342.00,tot_iva=78.66,tot_valor=420.66,suj_valor0=342.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=78.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:50 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=0,d_doc=00000000000000,d_venc=20001231000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=2 LIMIT 1;
20210111 11:50 UPDATE documento_r1 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101115000,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.6600,tot_desconto=0.0000,tot_liquido=420.6600,tot_iva=0.0000,tot_valor=420.6600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210111000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:51 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=0.0000,val_pend=420.6600,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:51 DELETE FROM reciboslinhas01 WHERE  no=0 
20210111 11:52 INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,0,'Corsar, equip. e produtos ind. lda.','','Av. do Progresso, 1311 - zona ind. Oleiros','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210111 11:53 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4821','B','','');
20210111 11:53 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4730-326','B','','');
20210111 11:53 UPDATE codigos_postais SET codigo='4730-326',concelho='B',distrito='',rsv='' WHERE IDX=7 LIMIT 1;
20210111 11:53 UPDATE codigos_postais SET codigo='4730-326',concelho='VILA VERDE',distrito='BRAGA',rsv='' WHERE IDX=7 LIMIT 1;
20210111 11:54 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=0,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='OLEIROS',cod_post='4730-326',concelho='VILA VERDE',distrito='BRAGA',zona='',n_pais=0,pais='',contribuinte='502672633',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:54 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=0,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='OLEIROS',cod_post='4730-326',concelho='VILA VERDE',distrito='BRAGA',zona='',n_pais=0,pais='',contribuinte='502672633',telefone='253929580',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:54 INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,1,'','','','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210111 11:55 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'25362',20210108000000,20210108000000,20000101115500,0,'Corsar, equip. e produtos ind. lda.',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210111 11:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=171.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=210.3300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-45.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:56 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'1','Quimibus (30L)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:56 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20210111 11:56 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:56 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=171.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=210.3300000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:56 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20210111 11:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=1.2500000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=1.2500000,prc_s_iva_2=1.2500000,prc_c_iva_1=1.5375000,prc_c_iva_2=1.5375000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:56 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=1.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=2.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20210111 11:57 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=2.5000,tot_desconto=0.0000,tot_liquido=2.5000,tot_iva=0.5800,tot_valor=3.0800,val_pago=0.0000,val_pend=3.0800,suj_valor0=2.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.5800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=35.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=35.0000000,prc_s_iva_2=35.0000000,prc_c_iva_1=43.0500000,prc_c_iva_2=43.0500000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210111 11:57 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=35.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=70.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20210111 11:58 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:58 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:58 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 11:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Braculant',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20210111 11:58 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='2',designacao='Braculant',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20210111 11:58 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='2',designacao='Braculant',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20210111 11:58 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 11:59 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Braculant (30l)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20210111 12:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Braculant OLEO CORTE(30l)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=15.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=18.4500000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=2 LIMIT 1;
20210111 12:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus DESENGORDURANTE (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=35.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=35.0000000,prc_s_iva_2=35.0000000,prc_c_iva_1=43.0500000,prc_c_iva_2=43.0500000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20210111 12:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus DESENGORDURANTE (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=35.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=35.0000000,prc_s_iva_2=35.0000000,prc_c_iva_1=43.0500000,prc_c_iva_2=43.0500000,stock_minimo=0.000,stock=-44.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=1 LIMIT 1;
20210111 12:00 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 12:00 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 12:00 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 12:00 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210111 12:00 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='2',designacao='Braculant OLEO CORTE(30l)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20210111 12:00 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='2',designacao='Braculant OLEO CORTE(30l)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20210111 12:00 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 12:00 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus DESENGORDURANTE (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=35.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=70.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20210111 12:00 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='1',designacao='Quimibus DESENGORDURANTE (30L)',unidade='',com_iva='',quantidade=2.000000,preco_unit=35.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=70.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=2 LIMIT 1;
20210111 12:00 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 12:01 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 12:01 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Braculant OLEO CORTE(30l)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=65.1000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=65.1000000,prc_s_iva_2=65.1000000,prc_c_iva_1=80.0730000,prc_c_iva_2=80.0730000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20210111 12:01 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='2',designacao='Braculant OLEO CORTE(30l)',unidade='',com_iva='',quantidade=1.000000,preco_unit=65.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=65.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=3 LIMIT 1;
20210111 12:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='4',codigo2='4',designacao_1='Quimibus DESEGORDURANTE (20L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-6688434243802530200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=12 LIMIT 1;
20210111 12:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='5',codigo2='5',designacao_1='Quimibus DESENGORDURANTE (10L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-6688434243802530200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=13 LIMIT 1;
20210111 12:03 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210111 12:04 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4700-210','B','','');
20210111 12:04 UPDATE codigos_postais SET codigo='4700-210',concelho='BRAGA',distrito='',rsv='' WHERE IDX=8 LIMIT 1;
20210111 12:07 UPDATE documento_d2 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20210111 12:11 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='DOC2.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20210111 12:11 UPDATE tipos_de_documentosd SET numero=2,designacao='FATURA',cli_forn='C',tipo_desc='',no_vias=3,ficheiro='doc2.rpt',porta=1,flg_cco='D',ctrl_seq='C',mov_stock='S',ecr='docsi3',abvr='FT',mov_finan='S',carta_anexo='',extras='N',des_cco='N/ Fatura',cco_banco='',mov_caixa='N',act_preco='N',edt_temp='S',doc_org='1,3,5,6,7',ficheiro2='',porta2=0,armazem=0,mov_res='',com_cli='S',inc_vias='S',no=0,sem_iva='N',com_obs='',res_bal='',des_base='',des_altern='',tipo_imp='E',bx_encs='',cria_resc='',tipo_vcd='',linha_preco=0,saft='S',irs='',hash='S',pda=0,ivac=0,sourcebilling='',rsv='' WHERE IDX=12 LIMIT 1;
20210112 18:15 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,3,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210112 18:19 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4705-504','B','','');
20210112 18:19 UPDATE codigos_postais SET codigo='4705-504',concelho='Morreira-Braga',distrito='Braga',rsv='' WHERE IDX=9 LIMIT 1;
20210112 18:19 UPDATE codigos_postais SET codigo='4705-504',concelho='Morreira-Braga',distrito='Braga',rsv='' WHERE IDX=9 LIMIT 1;
20210112 18:19 UPDATE codigos_postais SET codigo='4705-504',concelho='Morreira-Braga',distrito='Braga',rsv='' WHERE IDX=9 LIMIT 1;
20210112 18:19 UPDATE codigos_postais SET codigo='4705-504',concelho='Morreira-Braga',distrito='Braga',rsv='' WHERE IDX=9 LIMIT 1;
20210112 18:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='',nome_2='',morada='Paulo Rodrigues&Ezequeil Rodrigues-Const.civil Lda',localidade='Av. de Leit”es n§83',cod_post='4705-504',concelho='Morreira-Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='507596404',telefone='965 324 316',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 18:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='',nome_2='',morada='Paulo Rodrigues&Ezequeil Rodrigues-Const.civil Lda',localidade='Av. de Leit”es n§83',cod_post='4705-504',concelho='Morreira-Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='507596404',telefone='965 324 316',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 18:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='',nome_2='',morada='Paulo Rodrigues&Ezequeil Rodrigues-Const.civil Lda',localidade='Av. de Leit”es n§83',cod_post='4705-504',concelho='Morreira-Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='507596404',telefone='965 324 316',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 18:22 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='',nome_2='',morada='Paulo Rodrigues&Ezequeil Rodrigues-Const.civil Lda',localidade='Av. de Leit”es n§83',cod_post='4705-504',concelho='Morreira-Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='507596404',telefone='965 324 316',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 18:25 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4715-557','B','','');
20210112 18:26 UPDATE codigos_postais SET codigo='4715-557',concelho='Sobreposta-Braga',distrito='BRAGA',rsv='' WHERE IDX=10 LIMIT 1;
20210112 18:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='ARFERA€O, Lda',nome_2='',morada='Travessa Vitoreira, n§ 6',localidade='Sobreposta',cod_post='4715-557',concelho='Sobreposta-Braga',distrito='BRAGA',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513197613',telefone='936 425 681',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 18:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='ARFERA€O, Lda',nome_2='',morada='Travessa Vitoreira, n§ 6',localidade='Sobreposta',cod_post='4715-557',concelho='Sobreposta-Braga',distrito='BRAGA',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513197613',telefone='936 425 681',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 18:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='ARFERA€O, Lda',nome_2='',morada='Travessa Vitoreira, n§ 6',localidade='Sobreposta',cod_post='4715-557',concelho='Sobreposta-Braga',distrito='BRAGA',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513197613',telefone='936 425 681',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 18:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='ARFERA€O, Lda',nome_2='',morada='Travessa Vitoreira, n§ 6',localidade='Sobreposta',cod_post='4715-557',concelho='Sobreposta-Braga',distrito='BRAGA',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513197613',telefone='936 425 681',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 18:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=3,nome_1='ARFERA€O, Lda',nome_2='',morada='Travessa Vitoreira, n§ 6',localidade='Sobreposta',cod_post='4715-557',concelho='Sobreposta-Braga',distrito='BRAGA',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513197613',telefone='936 425 681',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 18:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=2,nome_1='PauloRodr.&EzequielRodrig.const.civilLda',nome_2='',morada='Av. de Leit”es n§83',localidade='Morreira',cod_post='4705-504',concelho='Morreira-Braga',distrito='Braga',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='507596404',telefone='965 324 316',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 18:33 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,4,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210112 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=4 LIMIT 1;
20210112 18:36 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4830-741','B','','');
20210112 18:38 DELETE FROM clientes__contactos_ WHERE  no=4 
20210112 18:38 DELETE FROM artigos_cliente WHERE  no=4 
20210112 18:38 DELETE FROM cliente_morada WHERE  numero=4 
20210112 18:38 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,4,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210112 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:44 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,0,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210112 18:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='',nome_2='',morada='',localidade='',cod_post='4830-741',concelho='B',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:53 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 18:54 UPDATE codigos_postais SET codigo='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',rsv='' WHERE IDX=11 LIMIT 1;
20210112 18:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='',nome_2='',morada='',localidade='',cod_post='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:57 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='',nome_2='',morada='',localidade='',cod_post='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',zona='',n_pais=0,pais='',contribuinte='505825465',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:57 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='METALOTAIDE SERRALHARIA LDA',nome_2='',morada='RUA DO BOBEIRO, N. 539',localidade='',cod_post='4830-741',concelho='TAĂŤDE',distrito='Braga',zona='',n_pais=0,pais='',contribuinte='505825465',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:58 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='METALOTAIDE SERRALHARIA LDA',nome_2='',morada='RUA DO BOBEIRO, N. 539',localidade='',cod_post='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',zona='',n_pais=0,pais='',contribuinte='505825465',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:58 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='',nome_2='',morada='',localidade='',cod_post='4830-741',concelho='B',distrito='',zona='1',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 18:58 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=0,nome_1='',nome_2='',morada='',localidade='',cod_post='4830-741',concelho='B',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=6 LIMIT 1;
20210112 19:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='2',codigo2='2',designacao_1='Braculant OLEO CORTE(30l)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='4',ultimo_custo=65.1000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=65.1000000,prc_s_iva_2=65.1000000,prc_c_iva_1=80.0730000,prc_c_iva_2=80.0730000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20201219000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-749077739298247830000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=2 LIMIT 1;
20210112 19:00 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1',codigo2='1',designacao_1='Quimibus DESENGORDURANTE (30L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='3',ultimo_custo=35.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=35.0000000,prc_s_iva_2=35.0000000,prc_c_iva_1=43.0500000,prc_c_iva_2=43.0500000,stock_minimo=0.000,stock=-46.000,stock_maximo=0.000,no_forn=0,d_entrada=20210108000000,d_saida=20210111000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-749077739298247830000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=1 LIMIT 1;
20210112 19:00 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='qualquercoisa',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:00 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:00 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='qualquercoisa',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:00 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:00 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='qualquercoisa',unidade='',com_iva='',quantidade=1.000000,preco_unit=135.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=135.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:01 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:01 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='fatura 25362',unidade='',com_iva='',quantidade=1.000000,preco_unit=135.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=135.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:01 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:01 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 19:01 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:01 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:04 INSERT INTO documento_r2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,0,0,'',0,0,'',00000000000000,20001231000000,20000101190400,0,'Corsar, equip. e produtos ind. lda.',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210112000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210112 19:04 INSERT INTO fornecedores (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,2,'','','','','','','','',0,'','','','',0,'',0,0.00,0,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210112 19:05 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:05 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:05 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='OLEIROS',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:05 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='OLEIROS',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='502672633',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:05 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='OLEIROS',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='502672633',telefone='253929580',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:05 UPDATE fornecedores SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=1,nome_1='Corsar, equip. e produtos ind. lda.',nome_2='',morada='Av. do Progresso, 1311 - zona ind. Oleiros',localidade='OLEIROS',cod_post='4730-326',concelho='VILA VERDE',distrito='BRAGA',zona='',n_pais=0,pais='',contribuinte='502672633',telefone='253929580',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=0,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:05 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='25362',d_doc=20210108000000,d_venc=20210108000000,h_doc=20000101115500,no_cf=0,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:05 DELETE FROM documento_linhas_d10 WHERE  num_doc=1  AND  serdoc='a' 
20210112 19:06 DELETE FROM fornecedores_contactos WHERE  no=0 
20210112 19:06 DELETE FROM conversao_artigos_fornecedor WHERE  no=0 
20210112 19:06 INSERT INTO documento_d10 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20210112000000,20210112000000,20000101190600,1,'Corsar, equip. e produtos ind. lda.',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',1.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210112 19:06 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=0,codigo='',designacao='fatura',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:06 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=0,codigo='',designacao='fatura',unidade='',com_iva='',quantidade=0.000000,preco_unit=135.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:06 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:06 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=0,codigo='',designacao='fatura',unidade='',com_iva='',quantidade=1.000000,preco_unit=135.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=135.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:06 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',1,20210112000000,20210112000000,'','',166.17,166.17,'C',0.00,166.17,0.00,31.07,0.00,1.000000,0,0,'A','');
20210112 19:06 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:06 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:06 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:06 INSERT INTO historico_contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',2,'Liquidacao',0,00000000000000,20001231000000,'','',0.00,0.00,'D',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210112 19:06 UPDATE documento_r2 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101190400,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210112000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE armazems ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_armazem ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE art_cdb ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_composicao ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_equivalencias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_embalagens ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_observacoes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_hist ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE familias__artigos_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE etiquetas_de_artigos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE etiquetas__linhas_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE etiquetas__gerais_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_promocoes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_promocoes_linhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE referencia ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE grelhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE bancos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE historicocaixa_00 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE cheques ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE classes_de_clientes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE clientes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_cliente ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE clientes__contactos_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE historico_contas_correntes_clientes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE contas_correntes_clientes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE cliente_morada ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE cliente_obs ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE comandos_impressao ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE listagens_configuraveis ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE listagens_configuraveis_linhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE contas_bancarias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE contas_bancarias__cco_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE movimentos_de_contas_bancarias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE movimentos_de_contas_bancarias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE movimentos_de_contas_bancarias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE movimentos_de_contas_bancarias_linhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE movimentos_de_contas_bancarias_linhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE movimentos_de_contas_bancarias_linhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tipos_de_documentosd ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tipos_de_documentosc ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tipos_de_documentosr ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tipos_de_documentosg ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tipos_de_documentosb ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tipos_de_documentose ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d3 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d5 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d6 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d7 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d10 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d11 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d13 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d14 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d15 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d16 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d17 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d18 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d20 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d21 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d22 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_c1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_r1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_r2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_g1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_e1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_e2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d3 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d5 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d6 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d7 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d10 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d11 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d13 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d14 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d15 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d16 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d17 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d18 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d20 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d21 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_d22 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_c1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_e1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_linhas_e2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d3 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d5 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d6 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d7 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d10 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d11 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d13 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d14 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d15 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d16 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d17 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d18 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d20 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d21 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_d22 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_r1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_r2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_c1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_pagamento_g1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras01 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras02 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras03 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras05 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras06 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras07 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras10 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras11 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras13 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras14 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras15 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras16 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras17 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras18 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras20 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras21 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras22 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras01 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentosextras02 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd2 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd3 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd5 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd6 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd7 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd10 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd11 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd13 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd14 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd15 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd16 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd17 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd18 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd20 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd21 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresd22 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documentoresc1 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d1_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d2_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d3_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d5_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d6_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d7_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d10_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d11_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d13_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d14_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d15_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d16_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d17_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d18_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d20_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d21_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE documento_d22_a_hash ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE drivers ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE drivers_lin ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE familias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE butoes__linhas_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE formas_de_movimento ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE formas_de_pagamento ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE fornecedores ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE fornecedores_contactos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE conversao_artigos_fornecedor ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE historico_contas_correntes_fornecedores ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE contas_correntes_fornecedores ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE fornecedores_obs ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE grupo_de_descontos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE grupo_de_iva ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE locais_de_impressao ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE mesas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE moedas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE artigos_no_serie ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE observacoes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE outros ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE historico_contas_correntes_outros ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE contas_correntes_outros ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE condicoes_de_pagamento ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE paises ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE codigos_postais ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE postos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE reciboslinhas01 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE reciboslinhas02 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE reciboslinhas01 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE taloes_00 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE taloeslinhas_00 ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE telecomando ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE transferencia ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE transferencia_linhas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE unidades ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE vendedores ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE vendedores_comissoes ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE vendedores_comissoes_escaloes_ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE vendedores_comissoes_familia ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE zonas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assistencias ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assist_rlt ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assist_obs ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assist_obr ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assist_est ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assist_apt ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE assist_rpr ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE equip_his ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE eqp_comp ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE equip ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tecnicos ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE pesamov_lnh ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE pesmov ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE pesagens_lnh ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE pesagens ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE motoristas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE matriculas ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE encart_d ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE encart_c ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE encart_f ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE encest ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE enchis_c ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE enchis_f ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE avencas__linhas__ ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE resdoc ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE resdoclnh ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE tal_pesa ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE doc_pend_c ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE doc_pend_f ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE doc2d ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE doc2e ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE doc2dlnh ENGINE = MyISAM;
20210112 19:07 SET storage_engine=MYISAM;
20210112 19:07 ALTER TABLE doc2elnh ENGINE = MyISAM;
20210112 19:07 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=166.1700,val_pend=0.0000,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:07 INSERT INTO reciboslinhas02 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,0,'D',10,'V/ Fatura',1,20210112000000,20210112000000,'','C',166.17,166.17,166.17,0.000,0.00,166.17,31.07,0.00,0,'A',135.10,31.07,166.17,135.10,0.00,0.00,0.00,23.00,13.00,6.00,0.00,31.07,0.00,0.00,0.00,0,'');
20210112 19:07 UPDATE reciboslinhas02 SET linha=5,cor=0,no=0,doc_mov='D',tp=10,document='V/ Fatura',n_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',deb_cred='C',val_doc=166.17,val_pend=166.17,val_liqu=166.17,per_desc=0.000,val_desc=0.00,val_rec=166.17,val_iva=31.07,irs=0.00,prest=0,serdoc='A',tot_liquido=135.10,tot_iva=31.07,tot_valor=166.17,suj_valor0=135.10,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=31.07,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:07 UPDATE historico_contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='R',tp=2,document='Liquidacao',no_doc=0,d_doc=00000000000000,d_venc=20001231000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='D',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:07 UPDATE documento_r2 SET linhas=0,no_doc=0,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=00000000000000,d_venc=20001231000000,h_doc=20000101190400,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=166.1700,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210112000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210112 19:08 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:13 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','fat','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 19:13 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:13 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='fat',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:13 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:13 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='fat',unidade='',com_iva='',quantidade=1.000000,preco_unit=135.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=135.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:13 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',1,20210112000000,20210112000000,'','',166.17,166.17,'C',0.00,166.17,0.00,31.07,0.00,1.000000,0,0,'A','');
20210112 19:13 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:13 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:13 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:19 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='',unidade='',com_iva='',quantidade=1.000000,preco_unit=135.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=135.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:19 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:19 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:19 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:20 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:21 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:21 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:22 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='FT n§ 25362 - Desengordurante',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:22 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:23 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='FT n§ 25362 - Desengordurante',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:23 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:23 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:23 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='FT n§ 25362 - Desengordurante',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:23 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:24 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='FT n§ 25362 - Desengordurante',unidade='',com_iva='',quantidade=2.000000,preco_unit=70.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=140.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:25 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',1,20210112000000,20210112000000,'','',172.20,172.20,'C',0.00,172.20,0.00,32.20,0.00,1.000000,0,0,'A','');
20210112 19:25 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.0000,tot_desconto=0.0000,tot_liquido=140.0000,tot_iva=32.2000,tot_valor=172.2000,val_pago=0.0000,val_pend=172.2000,suj_valor0=140.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.2000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:25 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='FT n§ 25362 - Desengordurante',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:25 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:25 UPDATE documento_linhas_d10 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='FT n§ 25362 - Desengordurante',unidade='',com_iva='',quantidade=2.000000,preco_unit=35.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=70.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=8 LIMIT 1;
20210112 19:25 INSERT INTO contas_correntes_fornecedores (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',10,'V/ Fatura',1,20210112000000,20210112000000,'','',86.10,86.10,'C',0.00,86.10,0.00,16.10,0.00,1.000000,0,0,'A','');
20210112 19:25 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:25 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 19:26 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='',designacao='˘leo Corte',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=9 LIMIT 1;
20210112 19:26 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=86.10,pendente=86.10,deb_cred='C',debito=0.00,credito=86.10,acumulado=0.00,val_iva=16.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:26 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:26 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='',designacao='˘leo Corte',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=9 LIMIT 1;
20210112 19:26 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=86.10,pendente=86.10,deb_cred='C',debito=0.00,credito=86.10,acumulado=0.00,val_iva=16.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:26 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:26 UPDATE documento_linhas_d10 SET lnh_f=10,cor=0,num_doc=1,codigo='',designacao='˘leo Corte',unidade='',com_iva='',quantidade=1.000000,preco_unit=65.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=65.10,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=9 LIMIT 1;
20210112 19:26 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:26 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:26 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:26 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 19:26 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210112 19:26 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:10 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20210112000000,20210112000000,20000101211000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210112 21:11 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:12 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:12 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:12 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='Braculant/Super',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=7 LIMIT 1;
20210112 21:12 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:12 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='Braculant/Super',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=7 LIMIT 1;
20210112 21:12 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:12 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='',designacao='Braculant/Super',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.7000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=201.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=7 LIMIT 1;
20210112 21:12 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'D',2,'N/ Fatura',2,20210112000000,20210112000000,'','',247.23,247.23,'D',247.23,0.00,0.00,46.23,0.00,1.000000,1,0,'A','');
20210112 21:12 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',no_doc=2,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=247.23,pendente=247.23,deb_cred='D',debito=247.23,credito=0.00,acumulado=0.00,val_iva=46.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:13 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210112 21:13 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0230','0230','','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210112 21:13 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210112000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20210112 21:13 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=2,codigo='0230',designacao='',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=7 LIMIT 1;
20210112 21:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:14 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:14 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:15 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:15 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:15 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:26 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,40,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,45,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,50,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,55,0,2,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:27 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210112 21:33 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,3,0,'',0,0,'',20210112000000,20210112000000,20000101213300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210112 21:42 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='METALOTA‹DE - SERRALHARIA Lda',nome_2='',morada='Bobeiro - Taˇde',localidade='',cod_post='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',zona='1',n_pais=0,pais='',contribuinte='505825465',telefone='253 941654',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='metalotaide@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 21:42 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='METALOTA‹DE - SERRALHARIA Lda',nome_2='',morada='Bobeiro - Taˇde',localidade='',cod_post='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',zona='1',n_pais=0,pais='',contribuinte='505825465',telefone='253 941654',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='metalotaide@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 21:42 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=4,nome_1='METALOTA‹DE - SERRALHARIA Lda',nome_2='',morada='Bobeiro - Taˇde',localidade='',cod_post='4830-741',concelho='Taˇde-P˘voa de Lanhoso',distrito='Braga',zona='1',n_pais=0,pais='',contribuinte='505825465',telefone='253 941654',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='metalotaide@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=5 LIMIT 1;
20210112 21:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:43 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,3,'','Braculant','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210112 21:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='Braculant',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=18 LIMIT 1;
20210112 21:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='Braculant',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=18 LIMIT 1;
20210112 21:43 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'D',2,'N/ Fatura',3,20210112000000,20210112000000,'','',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210112 21:43 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=3,codigo='',designacao='Braculant',unidade='',com_iva='',quantidade=25.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=18 LIMIT 1;
20210112 21:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=3,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=3 LIMIT 1;
20210112 21:44 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210114 10:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210112000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=14 LIMIT 1;
20210114 10:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210112000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=14 LIMIT 1;
20210114 10:25 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0225','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','','0.00','0.00','');
20210114 10:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0225',codigo2='',designacao_1='Cuttinsol/5',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=15 LIMIT 1;
20210114 10:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0225',codigo2='',designacao_1='Cuttinsol/5',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=15 LIMIT 1;
20210114 10:27 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',20210114000000,20210114000000,20000101102700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210114 10:27 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:28 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0225',codigo2='',designacao_1='Cuttinsol/5',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=15 LIMIT 1;
20210114 10:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,4,'0225','Cuttinsol/5','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210114 10:28 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='0225',designacao='Cuttinsol/5(źleo corte)25Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=19 LIMIT 1;
20210114 10:29 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0225',codigo2='',designacao_1='Cuttinsol/5',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=15 LIMIT 1;
20210114 10:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='0225',designacao='Cuttinsol/5(źleo corte)25Lt',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=19 LIMIT 1;
20210114 10:29 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0225',codigo2='',designacao_1='Cuttinsol/5',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=15 LIMIT 1;
20210114 10:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=4,codigo='0225',designacao='Cuttinsol/5(źleo corte)25Lt',unidade='',com_iva='',quantidade=25.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=19 LIMIT 1;
20210114 10:29 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'D',2,'N/ Fatura',4,20210114000000,20210114000000,'','',153.75,153.75,'D',153.75,0.00,0.00,28.75,0.00,1.000000,0,0,'A','');
20210114 10:29 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:29 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210114 10:33 UPDATE documento_d2 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
20210114 10:33 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210114 10:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210114 10:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='2' and serdoc='A' 
20210114 10:42 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,4,'0225','Cuttinsol/5(źleo corte)25Lt',5.00,0.00,'FA',4,20210114000000,0.00,'');
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE armazems ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_armazem ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE art_cdb ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_composicao ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_equivalencias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_embalagens ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_observacoes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_hist ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE familias__artigos_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE etiquetas_de_artigos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE etiquetas__linhas_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE etiquetas__gerais_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_promocoes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_promocoes_linhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE referencia ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE grelhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE bancos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE historicocaixa_00 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE cheques ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE classes_de_clientes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE clientes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_cliente ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE clientes__contactos_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE historico_contas_correntes_clientes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE contas_correntes_clientes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE cliente_morada ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE cliente_obs ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE comandos_impressao ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE listagens_configuraveis ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE listagens_configuraveis_linhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE contas_bancarias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE contas_bancarias__cco_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE movimentos_de_contas_bancarias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE movimentos_de_contas_bancarias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE movimentos_de_contas_bancarias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE movimentos_de_contas_bancarias_linhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE movimentos_de_contas_bancarias_linhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE movimentos_de_contas_bancarias_linhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tipos_de_documentosd ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tipos_de_documentosc ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tipos_de_documentosr ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tipos_de_documentosg ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tipos_de_documentosb ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tipos_de_documentose ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d3 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d5 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d6 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d7 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d10 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d11 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d13 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d14 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d15 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d16 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d17 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d18 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d20 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d21 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d22 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_c1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_r1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_r2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_g1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_e1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_e2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d3 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d5 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d6 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d7 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d10 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d11 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d13 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d14 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d15 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d16 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d17 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d18 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d20 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d21 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_d22 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_c1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_e1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_linhas_e2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d3 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d5 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d6 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d7 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d10 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d11 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d13 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d14 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d15 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d16 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d17 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d18 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d20 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d21 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_d22 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_r1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_r2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_c1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_pagamento_g1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras01 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras02 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras03 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras05 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras06 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras07 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras10 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras11 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras13 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras14 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras15 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras16 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras17 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras18 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras20 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras21 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras22 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras01 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentosextras02 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd2 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd3 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd5 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd6 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd7 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd10 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd11 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd13 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd14 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd15 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd16 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd17 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd18 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd20 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd21 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresd22 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documentoresc1 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d1_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d2_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d3_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d5_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d6_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d7_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d10_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d11_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d13_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d14_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d15_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d16_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d17_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d18_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d20_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d21_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE documento_d22_a_hash ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE drivers ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE drivers_lin ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE familias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE butoes__linhas_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE formas_de_movimento ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE formas_de_pagamento ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE fornecedores ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE fornecedores_contactos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE conversao_artigos_fornecedor ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE historico_contas_correntes_fornecedores ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE contas_correntes_fornecedores ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE fornecedores_obs ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE grupo_de_descontos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE grupo_de_iva ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE locais_de_impressao ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE mesas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE moedas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE artigos_no_serie ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE observacoes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE outros ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE historico_contas_correntes_outros ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE contas_correntes_outros ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE condicoes_de_pagamento ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE paises ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE codigos_postais ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE postos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE reciboslinhas01 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE reciboslinhas02 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE reciboslinhas01 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE taloes_00 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE taloeslinhas_00 ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE telecomando ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE transferencia ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE transferencia_linhas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE unidades ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE vendedores ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE vendedores_comissoes ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE vendedores_comissoes_escaloes_ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE vendedores_comissoes_familia ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE zonas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assistencias ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assist_rlt ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assist_obs ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assist_obr ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assist_est ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assist_apt ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE assist_rpr ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE equip_his ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE eqp_comp ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE equip ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tecnicos ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE pesamov_lnh ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE pesmov ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE pesagens_lnh ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE pesagens ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE motoristas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE matriculas ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE encart_d ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE encart_c ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE encart_f ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE encest ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE enchis_c ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE enchis_f ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE avencas__linhas__ ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE resdoc ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE resdoclnh ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE tal_pesa ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE doc_pend_c ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE doc_pend_f ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE doc2d ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE doc2e ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE doc2dlnh ENGINE = MyISAM;
20210114 10:43 SET storage_engine=MYISAM;
20210114 10:43 ALTER TABLE doc2elnh ENGINE = MyISAM;
20210114 10:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
20210114 10:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
20210114 10:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='3' and serdoc='A' 
20210114 10:53 UPDATE documento_d2 SET convertido='0' WHERE no_doc='4' and serdoc='A' 
20210114 10:56 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,5,0,'',0,0,'',20210114000000,20210114000000,20000101105600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210114 10:56 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:56 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-31.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-24858293531836803000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20210114 10:56 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,5,'0230','Braculant/Super','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210114 10:56 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:56 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=5,codigo='0230',designacao='Braculant/Super(źleo corte) 30Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20210114 10:56 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3030.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-24858293531836803000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20210114 10:57 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=5,codigo='0230',designacao='Braculant/Super(źleo corte) 30Lt',unidade='',com_iva='',quantidade=3000.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20210114 10:57 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-24858293531836803000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20210114 10:57 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=5,codigo='0230',designacao='Braculant/Super(źleo corte) 30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20210114 10:57 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-24858293531836803000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20210114 10:57 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=5,codigo='0230',designacao='Braculant/Super(źleo corte) 30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.7000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=201.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=20 LIMIT 1;
20210114 10:57 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'D',2,'N/ Fatura',5,20210114000000,20210114000000,'','',247.23,247.23,'D',247.23,0.00,0.00,46.23,0.00,1.000000,1,0,'A','');
20210114 10:57 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:57 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,5,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210114 10:57 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',no_doc=5,d_doc=20210114000000,d_venc=20210114000000,ref='',obs='',valor=247.23,pendente=247.23,deb_cred='D',debito=247.23,credito=0.00,acumulado=0.00,val_iva=46.23,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210114 10:57 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210114 11:04 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0220','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','','0.00','0.00','');
20210114 11:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0220',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=16 LIMIT 1;
20210114 11:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0220',codigo2='',designacao_1='QB500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=16 LIMIT 1;
20210114 11:05 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0210','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','','0.00','0.00','');
20210114 11:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0210',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=17 LIMIT 1;
20210114 11:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0210',codigo2='',designacao_1='QB500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=17 LIMIT 1;
20210114 11:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0210',codigo2='',designacao_1='QB500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=17 LIMIT 1;
20210114 11:06 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0310','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','','0.00','0.00','');
20210114 11:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0310',codigo2='',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=18 LIMIT 1;
20210114 11:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0310',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=18 LIMIT 1;
20210114 11:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0310',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=18 LIMIT 1;
20210114 11:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0320',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=18 LIMIT 1;
20210114 11:07 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0320',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267537430135351270000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=18 LIMIT 1;
20210114 11:07 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,3,'0230','Braculant/Super(źleo corte) 30Lt',6.70,0.00,'FA',5,20210114000000,0.00,'');
20210114 11:07 UPDATE documento_d2 SET convertido='0' WHERE no_doc='5' and serdoc='A' 
20210118 17:41 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210118 17:41 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='Massa MĆos',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20210118 17:41 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:41 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:42 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='Massa MĆos',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20210118 17:42 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=166.17,pendente=166.17,deb_cred='C',debito=0.00,credito=166.17,acumulado=0.00,val_iva=31.07,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:42 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.1000,tot_desconto=0.0000,tot_liquido=135.1000,tot_iva=31.0700,tot_valor=166.1700,val_pago=0.0000,val_pend=166.1700,suj_valor0=135.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:42 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='Massa MĆos',unidade='',com_iva='',quantidade=1.000000,preco_unit=30.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=30.60,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20210118 17:43 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=203.81,pendente=203.81,deb_cred='C',debito=0.00,credito=203.81,acumulado=0.00,val_iva=38.11,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:43 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.7000,tot_desconto=0.0000,tot_liquido=165.7000,tot_iva=38.1100,tot_valor=203.8100,val_pago=0.0000,val_pend=203.8100,suj_valor0=165.7000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.1100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:43 UPDATE documento_linhas_d10 SET lnh_f=15,cor=0,num_doc=1,codigo='',designacao='FT n§ 25472-Massa MĆos',unidade='',com_iva='',quantidade=1.000000,preco_unit=30.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=30.60,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=10 LIMIT 1;
20210118 17:43 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=203.81,pendente=203.81,deb_cred='C',debito=0.00,credito=203.81,acumulado=0.00,val_iva=38.11,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:43 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.7000,tot_desconto=0.0000,tot_liquido=165.7000,tot_iva=38.1100,tot_valor=203.8100,val_pago=0.0000,val_pend=203.8100,suj_valor0=165.7000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.1100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:43 INSERT INTO documento_linhas_d10 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210118 17:44 UPDATE documento_linhas_d10 SET lnh_f=20,cor=0,num_doc=1,codigo='',designacao='Brilho',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20210118 17:44 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=203.81,pendente=203.81,deb_cred='C',debito=0.00,credito=203.81,acumulado=0.00,val_iva=38.11,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:44 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.7000,tot_desconto=0.0000,tot_liquido=165.7000,tot_iva=38.1100,tot_valor=203.8100,val_pago=0.0000,val_pend=203.8100,suj_valor0=165.7000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.1100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:44 UPDATE documento_linhas_d10 SET lnh_f=20,cor=0,num_doc=1,codigo='',designacao='Brilho',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20210118 17:44 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=203.81,pendente=203.81,deb_cred='C',debito=0.00,credito=203.81,acumulado=0.00,val_iva=38.11,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:44 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.7000,tot_desconto=0.0000,tot_liquido=165.7000,tot_iva=38.1100,tot_valor=203.8100,val_pago=0.0000,val_pend=203.8100,suj_valor0=165.7000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.1100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:44 UPDATE documento_linhas_d10 SET lnh_f=20,cor=0,num_doc=1,codigo='',designacao='Brilho',unidade='',com_iva='',quantidade=1.000000,preco_unit=40.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=40.30,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=11 LIMIT 1;
20210118 17:44 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=253.38,pendente=253.38,deb_cred='C',debito=0.00,credito=253.38,acumulado=0.00,val_iva=47.38,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:44 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.0000,tot_desconto=0.0000,tot_liquido=206.0000,tot_iva=47.3800,tot_valor=253.3800,val_pago=0.0000,val_pend=253.3800,suj_valor0=206.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=47.3800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 17:44 UPDATE contas_correntes_fornecedores SET linha_f=0,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=253.38,pendente=253.38,deb_cred='C',debito=0.00,credito=253.38,acumulado=0.00,val_iva=47.38,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210118 17:44 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.0000,tot_desconto=0.0000,tot_liquido=206.0000,tot_iva=47.3800,tot_valor=253.3800,val_pago=0.0000,val_pend=253.3800,suj_valor0=206.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=47.3800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210118 22:11 UPDATE contas_correntes_fornecedores SET linha_f=2,cor=0,no=1,doc_mov='D',tp=10,document='V/ Fatura',no_doc=1,d_doc=20210112000000,d_venc=20210112000000,ref='',obs='',valor=253.38,pendente=253.38,deb_cred='C',debito=0.00,credito=253.38,acumulado=0.00,val_iva=47.38,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=1 LIMIT 1;
20210118 22:11 UPDATE documento_d10 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101190600,no_cf=1,nome_cf='Corsar, equip. e produtos ind. lda.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.0000,tot_desconto=0.0000,tot_liquido=206.0000,tot_iva=47.3800,tot_valor=253.3800,val_pago=0.0000,val_pend=253.3800,suj_valor0=206.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=47.3800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210127 18:35 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,5,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210127 18:38 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4830','B','','');
20210127 18:39 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860 283','B','','');
20210127 18:39 UPDATE codigos_postais SET codigo='4860 283',concelho='Arco de BaŁlhe',distrito='Braga',rsv='' WHERE IDX=13 LIMIT 1;
20210127 18:39 UPDATE codigos_postais SET codigo='4860 283',concelho='Arco de BaŁlhe',distrito='Braga',rsv='' WHERE IDX=13 LIMIT 1;
20210127 18:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=5,nome_1='Alfredo Leite de Sousa',nome_2='',morada='Lote 18 - Ponte Velha',localidade='Pedra‡a',cod_post='4860 283',concelho='Arco de BaŁlhe',distrito='Braga',zona='5',n_pais=1,pais='PORTUGAL',contribuinte='101093381',telefone='965891440',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=7 LIMIT 1;
20210127 18:42 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,6,0,'',0,0,'',20210127000000,20210127000000,20000101184200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210127 18:49 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,6,'','QB-500(Massa MĆos) 20kl','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210127 18:49 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:50 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0020','0020','QB.500(Massa MĆos)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210127 18:50 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210128000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-797612163092532280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210127 18:50 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='0020',designacao='QB.500(Massa MĆos)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=22 LIMIT 1;
20210127 18:51 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='0020',designacao='QB.500(Massa MĆos) 20Kg',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=22 LIMIT 1;
20210127 18:51 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:51 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210128000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-797612163092532280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210127 18:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='0020',designacao='QB.500(Massa MĆos) 20Kg',unidade='',com_iva='',quantidade=1.000000,preco_unit=7.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=7.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=22 LIMIT 1;
20210127 18:51 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,5,'D',2,'N/ Fatura',6,20210128000000,20210128000000,'','',8.61,8.61,'D',8.61,0.00,0.00,1.61,0.00,1.000000,1,0,'A','');
20210127 18:51 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=7.0000,tot_desconto=0.0000,tot_liquido=7.0000,tot_iva=1.6100,tot_valor=8.6100,val_pago=0.0000,val_pend=8.6100,suj_valor0=7.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=1.6100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:51 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210128000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210127 18:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=6,codigo='0020',designacao='QB.500(Massa MĆos) 20Kg',unidade='',com_iva='',quantidade=20.000000,preco_unit=7.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=140.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=22 LIMIT 1;
20210127 18:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=5,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20210128000000,d_venc=20210128000000,ref='',obs='',valor=172.20,pendente=172.20,deb_cred='D',debito=172.20,credito=0.00,acumulado=0.00,val_iva=32.20,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:51 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.0000,tot_desconto=0.0000,tot_liquido=140.0000,tot_iva=32.2000,tot_valor=172.2000,val_pago=0.0000,val_pend=172.2000,suj_valor0=140.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.2000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=5,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20210128000000,d_venc=20210128000000,ref='',obs='',valor=172.20,pendente=172.20,deb_cred='D',debito=172.20,credito=0.00,acumulado=0.00,val_iva=32.20,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:52 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.0000,tot_desconto=0.0000,tot_liquido=140.0000,tot_iva=32.2000,tot_valor=172.2000,val_pago=0.0000,val_pend=172.2000,suj_valor0=140.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.2000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=5,doc_mov='D',tp=2,document='N/ Fatura',no_doc=6,d_doc=20210128000000,d_venc=20210128000000,ref='',obs='',valor=172.20,pendente=172.20,deb_cred='D',debito=172.20,credito=0.00,acumulado=0.00,val_iva=32.20,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:52 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.0000,tot_desconto=0.0000,tot_liquido=140.0000,tot_iva=32.2000,tot_valor=172.2000,val_pago=0.0000,val_pend=172.2000,suj_valor0=140.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.2000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210127 18:58 UPDATE documento_d2 SET convertido='0' WHERE no_doc='6' and serdoc='A' 
20210127 18:58 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,5,'0020','QB.500(Massa MĆos) 20Kg',7.00,0.00,'FA',6,20210128000000,0.00,'');
20210127 18:58 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,6,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210127 19:00 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4800-225','B','','');
20210127 19:01 UPDATE codigos_postais SET codigo='4800-225',concelho='Rendufe',distrito='GuimarĆes',rsv='' WHERE IDX=14 LIMIT 1;
20210127 19:01 UPDATE codigos_postais SET codigo='4800-225',concelho='Rendufe',distrito='GuimarĆes',rsv='' WHERE IDX=14 LIMIT 1;
20210127 19:01 UPDATE codigos_postais SET codigo='4800-225',concelho='Rendufe',distrito='GuimarĆes',rsv='' WHERE IDX=14 LIMIT 1;
20210127 19:01 UPDATE codigos_postais SET codigo='4800-225',concelho='Rendufe',distrito='GuimarĆes',rsv='' WHERE IDX=14 LIMIT 1;
20210127 19:01 UPDATE codigos_postais SET codigo='4800-225',concelho='Rendufe',distrito='GuimarĆes',rsv='' WHERE IDX=14 LIMIT 1;
20210127 19:02 UPDATE zonas SET codigo='1',descricao='ZONA 1',num_cf=6,rsv='' WHERE IDX=1 LIMIT 1;
20210127 19:05 UPDATE zonas SET codigo='1',descricao='ZONA 1',num_cf=5,rsv='' WHERE IDX=1 LIMIT 1;
20210127 19:06 UPDATE zonas SET codigo='1',descricao='GuimarĆes',num_cf=6,rsv='' WHERE IDX=1 LIMIT 1;
20210127 19:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='',nome_2='',morada='',localidade='',cod_post='4800-225',concelho='Rendufe',distrito='GuimarĆes',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=8 LIMIT 1;
20210127 19:15 DELETE FROM clientes__contactos_ WHERE  no=6 
20210127 19:15 DELETE FROM artigos_cliente WHERE  no=6 
20210127 19:15 DELETE FROM cliente_morada WHERE  numero=6 
20210127 19:16 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,6,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210127 19:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20210127 19:20 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='DLR- Metalomec�nica Unipessoal Lda',nome_2='',morada='Rua de S.RomĆo, 170',localidade='Rendufe- GuimarĆes',cod_post='4800-225',concelho='Rendufe',distrito='GuimarĆes',zona='',n_pais=1,pais='PORTUGAL',contribuinte='516044621',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20210131 15:32 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,7,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210131 15:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20210131 15:35 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4830-198','B','','');
20210131 15:35 UPDATE codigos_postais SET codigo='4830-198',concelho='Fontarcada',distrito='P˘voa de Lanhoso',rsv='' WHERE IDX=15 LIMIT 1;
20210131 15:36 UPDATE codigos_postais SET codigo='4830-198',concelho='Fontarcada',distrito='P˘voa de Lanhoso',rsv='' WHERE IDX=15 LIMIT 1;
20210131 15:37 INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'6','',0,'');
20210131 15:39 INSERT INTO zonas (idx,codigo,descricao,num_cf,rsv) VALUES(NULL,'P˘voa de Lanhoso','',0,'');
20210131 15:39 UPDATE zonas SET codigo='P˘voa de Lanhoso',descricao='',num_cf=7,rsv='' WHERE IDX=7 LIMIT 1;
20210131 15:40 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CASA DE TRABALHO DE FONTARCADA',nome_2='',morada='Av. Padre David Novais, n§ 335',localidade='Fontarcada',cod_post='4830-198',concelho='Fontarcada',distrito='P˘voa de Lanhoso',zona='P˘voa de Lanhoso',n_pais=0,pais='',contribuinte='500985472',telefone='253632569',fax='253635263',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='casadetrabalho@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20210131 15:40 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,8,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210131 15:40 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20210201 10:01 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,7,0,'',0,0,'',20210201000000,20210201000000,20000101100100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210201 10:01 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:02 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0010','0010','Linox/S','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',2361121344049525000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','0','0.00','0.00','');
20210201 10:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0010',codigo2='0010',designacao_1='Linox/S',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=20 LIMIT 1;
20210201 10:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,7,'0010','Linox/S','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210201 10:02 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:03 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='0010',designacao='Linox/S(Emb.10Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=23 LIMIT 1;
20210201 10:03 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0010',codigo2='0010',designacao_1='Linox/S',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=19504866209698673000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=20 LIMIT 1;
20210201 10:03 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='0010',designacao='Linox/S(Emb.10Lt)',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=23 LIMIT 1;
20210201 10:03 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0010',codigo2='0010',designacao_1='Linox/S',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=19504866209698673000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=20 LIMIT 1;
20210201 10:03 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=7,codigo='0010',designacao='Linox/S(Emb.10Lt)',unidade='',com_iva='',quantidade=10.000000,preco_unit=8.7000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=87.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=23 LIMIT 1;
20210201 10:03 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',7,20210201000000,20210201000000,'','',107.01,107.01,'D',107.01,0.00,0.00,20.01,0.00,1.000000,1,0,'A','');
20210201 10:03 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=87.0000,tot_desconto=0.0000,tot_liquido=87.0000,tot_iva=20.0100,tot_valor=107.0100,val_pago=0.0000,val_pend=107.0100,suj_valor0=87.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=20.0100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,7,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210201 10:04 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=7,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20210201 10:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=107.01,pendente=107.01,deb_cred='D',debito=107.01,credito=0.00,acumulado=0.00,val_iva=20.01,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:04 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=87.0000,tot_desconto=0.0000,tot_liquido=87.0000,tot_iva=20.0100,tot_valor=107.0100,val_pago=0.0000,val_pend=107.0100,suj_valor0=87.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=20.0100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:04 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'00010','00010','QB.500','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210201 10:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00010',codigo2='00010',designacao_1='QB.500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=21 LIMIT 1;
20210201 10:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00010',codigo2='00010',designacao_1='QB.500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=21 LIMIT 1;
20210201 10:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00010',codigo2='00010',designacao_1='QB.500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-14242594044674968000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20210201 10:04 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=7,codigo='00010',designacao='QB.500',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20210201 10:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=107.01,pendente=107.01,deb_cred='D',debito=107.01,credito=0.00,acumulado=0.00,val_iva=20.01,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:04 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=87.0000,tot_desconto=0.0000,tot_liquido=87.0000,tot_iva=20.0100,tot_valor=107.0100,val_pago=0.0000,val_pend=107.0100,suj_valor0=87.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=20.0100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=7,codigo='00010',designacao='QB.500(Emb.10Kg)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20210201 10:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=107.01,pendente=107.01,deb_cred='D',debito=107.01,credito=0.00,acumulado=0.00,val_iva=20.01,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=87.0000,tot_desconto=0.0000,tot_liquido=87.0000,tot_iva=20.0100,tot_valor=107.0100,val_pago=0.0000,val_pend=107.0100,suj_valor0=87.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=20.0100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00010',codigo2='00010',designacao_1='QB.500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-6.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20210201 10:05 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=7,codigo='00010',designacao='QB.500(Emb.10Kg)',unidade='',com_iva='',quantidade=6.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20210201 10:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=107.01,pendente=107.01,deb_cred='D',debito=107.01,credito=0.00,acumulado=0.00,val_iva=20.01,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=87.0000,tot_desconto=0.0000,tot_liquido=87.0000,tot_iva=20.0100,tot_valor=107.0100,val_pago=0.0000,val_pend=107.0100,suj_valor0=87.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=20.0100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00010',codigo2='00010',designacao_1='QB.500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-6.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20210201 10:05 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=7,codigo='00010',designacao='QB.500(Emb.10Kg)',unidade='',com_iva='',quantidade=6.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=36.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20210201 10:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=151.29,pendente=151.29,deb_cred='D',debito=151.29,credito=0.00,acumulado=0.00,val_iva=28.29,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=123.0000,tot_desconto=0.0000,tot_liquido=123.0000,tot_iva=28.2900,tot_valor=151.2900,val_pago=0.0000,val_pend=151.2900,suj_valor0=123.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.2900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='00010',codigo2='00010',designacao_1='QB.500',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210201000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=21 LIMIT 1;
20210201 10:05 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=7,codigo='00010',designacao='QB.500(Emb.10Kg)',unidade='',com_iva='',quantidade=10.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=24 LIMIT 1;
20210201 10:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=180.81,pendente=180.81,deb_cred='D',debito=180.81,credito=0.00,acumulado=0.00,val_iva=33.81,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.0000,tot_desconto=0.0000,tot_liquido=147.0000,tot_iva=33.8100,tot_valor=180.8100,val_pago=0.0000,val_pend=180.8100,suj_valor0=147.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=33.8100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=180.81,pendente=180.81,deb_cred='D',debito=180.81,credito=0.00,acumulado=0.00,val_iva=33.81,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.0000,tot_desconto=0.0000,tot_liquido=147.0000,tot_iva=33.8100,tot_valor=180.8100,val_pago=0.0000,val_pend=180.8100,suj_valor0=147.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=33.8100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=180.81,pendente=180.81,deb_cred='D',debito=180.81,credito=0.00,acumulado=0.00,val_iva=33.81,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:05 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.0000,tot_desconto=0.0000,tot_liquido=147.0000,tot_iva=33.8100,tot_valor=180.8100,val_pago=0.0000,val_pend=180.8100,suj_valor0=147.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=33.8100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:14 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,6,'0010','Linox/S(Emb.10Lt)',8.70,0.00,'FA',7,20210201000000,0.00,'');
20210201 10:14 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,6,'00010','QB.500(Emb.10Kg)',6.00,0.00,'FA',7,20210201000000,0.00,'');
20210201 10:40 UPDATE documento_d2 SET linhas=0,no_doc=2,emitido=3,anulado='S',no_moed=1,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101211000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210201 10:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0230',codigo2='0230',designacao_1='Braculant/Super',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210114000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=14 LIMIT 1;
20210201 10:45 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20210201000000,00000000000000,20000101104500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210201 10:45 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',1,20210201000000,20210201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210201 10:45 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210201 10:45 UPDATE documento_d2 SET linhas=0,no_doc=1,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210111000000,d_venc=20210111000000,h_doc=20000101112800,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=342.0000,tot_desconto=0.0000,tot_liquido=342.0000,tot_iva=78.6600,tot_valor=420.6600,val_pago=420.6600,val_pend=0.0000,suj_valor0=342.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=78.6600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20210201 10:45 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,1,'D',2,'N/ Fatura',1,20210111000000,20210111000000,'','D',420.66,420.66,420.66,0.000,0.00,420.66,0.00,0.00,0,'A',342.00,78.66,420.66,342.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,78.66,0.00,0.00,0.00,0,'');
20210201 10:45 UPDATE reciboslinhas01 SET linha=5,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',n_doc=1,d_doc=20210111000000,d_venc=20210111000000,ref='',deb_cred='D',val_doc=420.66,val_pend=420.66,val_liqu=420.66,per_desc=0.000,val_desc=0.00,val_rec=420.66,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=342.00,tot_iva=78.66,tot_valor=420.66,suj_valor0=342.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=78.66,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=2 LIMIT 1;
20210201 10:45 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:45 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.6600,tot_desconto=0.0000,tot_liquido=420.6600,tot_iva=0.0000,tot_valor=420.6600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210201 10:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:46 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.6600,tot_desconto=0.0000,tot_liquido=420.6600,tot_iva=0.0000,tot_valor=420.6600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210201 10:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=1,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=420.66,pendente=420.66,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=7 LIMIT 1;
20210201 10:46 UPDATE documento_r1 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.6600,tot_desconto=0.0000,tot_liquido=420.6600,tot_iva=0.0000,tot_valor=420.6600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20210201 10:46 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,2,0,'',0,0,'',20210201000000,00000000000000,20000101104600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210201 10:46 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'R',1,'Recibo',2,20210201000000,20210201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210201 10:46 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 10:47 UPDATE documento_d2 SET linhas=0,no_doc=5,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101105600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=247.2300,val_pend=0.0000,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210201 10:47 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,2,'D',2,'N/ Fatura',5,20210114000000,20210114000000,'','D',247.23,247.23,247.23,0.000,0.00,247.23,0.00,0.00,0,'A',201.00,46.23,247.23,201.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,46.23,0.00,0.00,0.00,0,'');
20210201 10:47 UPDATE reciboslinhas01 SET linha=5,cor=0,no=2,doc_mov='D',tp=2,document='N/ Fatura',n_doc=5,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=247.23,val_pend=247.23,val_liqu=247.23,per_desc=0.000,val_desc=0.00,val_rec=247.23,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=201.00,tot_iva=46.23,tot_valor=247.23,suj_valor0=201.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 10:47 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=247.23,pendente=247.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=8 LIMIT 1;
20210201 10:47 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=247.2300,tot_desconto=0.0000,tot_liquido=247.2300,tot_iva=0.0000,tot_valor=247.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 10:47 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=247.23,pendente=247.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=8 LIMIT 1;
20210201 10:47 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=247.2300,tot_desconto=0.0000,tot_liquido=247.2300,tot_iva=0.0000,tot_valor=247.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 10:47 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='R',tp=1,document='Recibo',no_doc=2,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=247.23,pendente=247.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=8 LIMIT 1;
20210201 10:47 UPDATE documento_r1 SET linhas=0,no_doc=2,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101104600,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=247.2300,tot_desconto=0.0000,tot_liquido=247.2300,tot_iva=0.0000,tot_valor=247.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 10:47 DELETE FROM clientes__contactos_ WHERE  no=0 
20210201 10:47 DELETE FROM artigos_cliente WHERE  no=0 
20210201 10:47 DELETE FROM cliente_morada WHERE  numero=0 
20210201 10:49 UPDATE codigos_postais SET codigo='4800-225',concelho='GUIMARAES',distrito='GuimarĆes',rsv='' WHERE IDX=14 LIMIT 1;
20210201 10:50 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=6,nome_1='DLR- Metalomec�nica Unipessoal Lda',nome_2='',morada='Rua de S.RomĆo, 170',localidade='Rendufe',cod_post='4800-225',concelho='GUIMARAES',distrito='GuimarĆes',zona='',n_pais=1,pais='PORTUGAL',contribuinte='516044621',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-180.81,saldo1=-180.81,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=9 LIMIT 1;
20210201 10:59 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,3,0,'',0,0,'',20210201000000,00000000000000,20000101105900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210201 10:59 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'R',1,'Recibo',3,20210201000000,20210201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210201 10:59 UPDATE documento_r1 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101105900,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210201 11:00 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 11:00 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,3,'D',2,'N/ Fatura',3,20210112000000,20210112000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210201 11:00 UPDATE reciboslinhas01 SET linha=5,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',n_doc=3,d_doc=20210112000000,d_venc=20210112000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=4 LIMIT 1;
20210201 11:00 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=3,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=9 LIMIT 1;
20210201 11:00 UPDATE documento_r1 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101105900,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210201 11:00 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,3,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210201 11:00 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210201 11:00 UPDATE reciboslinhas01 SET linha=10,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20210201 11:00 UPDATE reciboslinhas01 SET linha=10,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=5 LIMIT 1;
20210201 11:00 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=3,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=307.50,pendente=307.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=9 LIMIT 1;
20210201 11:00 UPDATE documento_r1 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101105900,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=307.5000,tot_desconto=0.0000,tot_liquido=307.5000,tot_iva=0.0000,tot_valor=307.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210201 11:00 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210201 11:00 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,3,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210201 11:01 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210201 11:01 DELETE FROM reciboslinhas01 WHERE  no=3 
20210201 11:16 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,3,0,'',0,0,'',20210201000000,00000000000000,20000101111600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210201 11:16 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,5,'R',1,'Recibo',3,20210201000000,20210201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210201 11:16 UPDATE documento_r1 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101111600,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210201 11:16 UPDATE documento_d2 SET linhas=0,no_doc=6,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210128000000,d_venc=20210128000000,h_doc=20000101184200,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.0000,tot_desconto=0.0000,tot_liquido=140.0000,tot_iva=32.2000,tot_valor=172.2000,val_pago=172.2000,val_pend=0.0000,suj_valor0=140.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.2000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210201 11:16 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,3,'D',2,'N/ Fatura',6,20210128000000,20210128000000,'','D',172.20,172.20,172.20,0.000,0.00,172.20,0.00,0.00,0,'A',140.00,32.20,172.20,140.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,32.20,0.00,0.00,0.00,0,'');
20210201 11:16 UPDATE reciboslinhas01 SET linha=5,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',n_doc=6,d_doc=20210128000000,d_venc=20210128000000,ref='',deb_cred='D',val_doc=172.20,val_pend=172.20,val_liqu=172.20,per_desc=0.000,val_desc=0.00,val_rec=172.20,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=140.00,tot_iva=32.20,tot_valor=172.20,suj_valor0=140.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=32.20,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=7 LIMIT 1;
20210201 11:16 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=5,doc_mov='R',tp=1,document='Recibo',no_doc=3,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=172.20,pendente=172.20,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=9 LIMIT 1;
20210201 11:16 UPDATE documento_r1 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101111600,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=172.2000,tot_desconto=0.0000,tot_liquido=172.2000,tot_iva=0.0000,tot_valor=172.2000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210201 11:17 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=5,doc_mov='R',tp=1,document='Recibo',no_doc=3,d_doc=20210201000000,d_venc=20210201000000,ref='',obs='',valor=172.20,pendente=172.20,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=9 LIMIT 1;
20210201 11:17 UPDATE documento_r1 SET linhas=0,no_doc=3,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101111600,no_cf=5,nome_cf='Alfredo Leite de Sousa',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=172.2000,tot_desconto=0.0000,tot_liquido=172.2000,tot_iva=0.0000,tot_valor=172.2000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210209 21:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,9,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210209 21:09 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'','B','','');
20210209 21:10 UPDATE codigos_postais SET codigo='',concelho='Cabeceiras de Basto',distrito='',rsv='' WHERE IDX=16 LIMIT 1;
20210209 21:10 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-105','C','','');
20210209 21:10 UPDATE codigos_postais SET codigo='4860-105',concelho='Cabeceiras de Basto',distrito='',rsv='' WHERE IDX=17 LIMIT 1;
20210209 21:11 UPDATE codigos_postais SET codigo='4860-105',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=17 LIMIT 1;
20210209 21:11 UPDATE codigos_postais SET codigo='4860-105',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=17 LIMIT 1;
20210209 21:12 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='MANUEL JOAQUIM NOVAIS OLIVEIRA',nome_2='',morada='Parque Industrial de Olela',localidade='Cabeceiras de Basto',cod_post='4860-105',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='1',n_pais=0,pais='',contribuinte='197639593',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20210209 21:12 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=9,nome_1='MANUEL JOAQUIM NOVAIS OLIVEIRA',nome_2='',morada='Parque Industrial de Olela',localidade='Cabeceiras de Basto',cod_post='4860-105',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='1',n_pais=0,pais='',contribuinte='197639593',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=12 LIMIT 1;
20210209 21:12 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,10,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210209 21:15 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-024','C','','');
20210209 21:16 UPDATE codigos_postais SET codigo='4860-024',concelho='',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=18 LIMIT 1;
20210209 21:16 UPDATE codigos_postais SET codigo='4860-024',concelho='',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=18 LIMIT 1;
20210209 21:19 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=10,nome_1='Constru‡”es Ferreira Leite, Lda',nome_2='',morada='PetimĆo-Alvite, Porta10',localidade='Cabeceiras de Basto',cod_post='4860-024',concelho='',distrito='Cabeceiras de Basto',zona='1',n_pais=0,pais='',contribuinte='504112635',telefone='965022750-916506578',fax='253655070',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=13 LIMIT 1;
20210209 21:20 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,11,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210209 21:21 UPDATE codigos_postais SET codigo='',concelho='',distrito='',rsv='' WHERE IDX=16 LIMIT 1;
20210209 21:22 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-005','','','');
20210209 21:22 UPDATE codigos_postais SET codigo='4820-005',concelho='',distrito='Fafe',rsv='' WHERE IDX=19 LIMIT 1;
20210209 21:22 UPDATE codigos_postais SET codigo='4820-005',concelho='',distrito='Fafe',rsv='' WHERE IDX=19 LIMIT 1;
20210209 21:22 UPDATE codigos_postais SET codigo='4820-005',concelho='',distrito='Fafe',rsv='' WHERE IDX=19 LIMIT 1;
20210209 21:22 UPDATE codigos_postais SET codigo='4820-005',concelho='Antime',distrito='Fafe',rsv='' WHERE IDX=19 LIMIT 1;
20210209 21:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=11,nome_1='JOS� MANUEL SILVA GON€ALVES, Lda',nome_2='',morada='Rua do Ribeiro, 62',localidade='Antime',cod_post='4820-005',concelho='Antime',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=14 LIMIT 1;
20210209 21:25 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,12,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210209 21:26 DELETE FROM clientes__contactos_ WHERE  no=11 
20210209 21:26 DELETE FROM artigos_cliente WHERE  no=11 
20210209 21:26 DELETE FROM cliente_morada WHERE  numero=11 
20210209 21:26 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,11,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210209 21:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=11,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=16 LIMIT 1;
20210209 21:28 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-005','','','');
20210209 21:28 UPDATE codigos_postais SET codigo='4820-005',concelho='Fafe',distrito='Fafe',rsv='' WHERE IDX=20 LIMIT 1;
20210209 21:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=11,nome_1='JOS� MANUEL SILVA GON€ALVES, Lda',nome_2='',morada='Rua do Ribeiro, 62',localidade='Antime',cod_post='4820-005',concelho='Fafe',distrito='Fafe',zona='1',n_pais=0,pais='',contribuinte='503781339',telefone='253 493872',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=16 LIMIT 1;
20210209 21:32 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-012','','','');
20210209 21:32 UPDATE codigos_postais SET codigo='4860-012',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=21 LIMIT 1;
20210209 21:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='SERRALHARIA DOMINGOS SILVA UNIP.Lda',nome_2='',morada='Rua do Parque Industrial da Ranha, n§24',localidade='Abadim',cod_post='4860-012',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='1',n_pais=0,pais='',contribuinte='510940250',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20210209 21:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='SERRALHARIA DOMINGOS SILVA UNIP.Lda',nome_2='',morada='Rua do Parque Industrial da Ranha, n§24',localidade='Abadim',cod_post='4860-012',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='1',n_pais=0,pais='',contribuinte='510940250',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20210209 21:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=12,nome_1='SERRALHARIA DOMINGOS SILVA UNIP.Lda',nome_2='',morada='Rua do Parque Industrial da Ranha, n§24',localidade='Abadim',cod_post='4860-012',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='1',n_pais=0,pais='',contribuinte='510940250',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=15 LIMIT 1;
20210210 10:41 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,8,0,'',0,0,'',20210210000000,20210210000000,20000101104100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210210 10:42 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:42 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'020','020','','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210210 10:42 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'025','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','','0.00','0.00','');
20210210 10:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='025',codigo2='',designacao_1='Cuttinsol/5(˘leo corte-L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=23 LIMIT 1;
20210210 10:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='025',codigo2='',designacao_1='Cuttinsol/5(˘leo corte-L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=23 LIMIT 1;
20210210 10:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210210 10:43 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,8,'020','','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210210 10:43 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210210 10:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='025',codigo2='',designacao_1='Cuttinsol/5(˘leo corte-L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=23 LIMIT 1;
20210210 10:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='025',designacao='Cuttinsol/5(˘leo corte-L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20210210 10:43 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='025',designacao='Cuttinsol/5(˘leo corte-L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20210210 10:43 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='025',designacao='Cuttinsol/5(˘leo corte-L)- Emb.25Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20210210 10:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:44 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='025',codigo2='',designacao_1='Cuttinsol/5(˘leo corte-L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=23 LIMIT 1;
20210210 10:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='025',designacao='Cuttinsol/5(˘leo corte-L)- Emb.25Lt',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20210210 10:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:44 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='025',codigo2='',designacao_1='Cuttinsol/5(˘leo corte-L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=23 LIMIT 1;
20210210 10:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='025',designacao='Cuttinsol/5(˘leo corte-L)- Emb.25Lt',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20210210 10:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:44 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='025',codigo2='',designacao_1='Cuttinsol/5(˘leo corte-L)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=23 LIMIT 1;
20210210 10:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=8,codigo='025',designacao='Cuttinsol/5(˘leo corte-L)- Emb.25Lt',unidade='',com_iva='',quantidade=25.000000,preco_unit=5.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=135.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=25 LIMIT 1;
20210210 10:44 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'D',2,'N/ Fatura',8,20210210000000,20210210000000,'','',166.05,166.05,'D',166.05,0.00,0.00,31.05,0.00,1.000000,0,0,'A','');
20210210 10:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.0000,tot_desconto=0.0000,tot_liquido=135.0000,tot_iva=31.0500,tot_valor=166.0500,val_pago=0.0000,val_pend=166.0500,suj_valor0=135.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=8,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=166.05,pendente=166.05,deb_cred='D',debito=166.05,credito=0.00,acumulado=0.00,val_iva=31.05,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210210 10:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.0000,tot_desconto=0.0000,tot_liquido=135.0000,tot_iva=31.0500,tot_valor=166.0500,val_pago=0.0000,val_pend=166.0500,suj_valor0=135.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210210 10:50 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,9,0,'',0,0,'',20210210000000,20210210000000,20000101105000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210210 10:50 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210210 10:51 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'030','030','Metdesc(˘leo descofrante)-30Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210210 10:51 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='030',codigo2='030',designacao_1='Metdesc(˘leo descofrante)-30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=24 LIMIT 1;
20210210 10:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,9,'030','Metdesc(˘leo descofrante)-30Lt','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210210 10:51 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210210 10:53 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='030',designacao='Metdesc(˘leo descofrante)-(Emb.30Lt)x2',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=26 LIMIT 1;
20210210 10:53 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210210 10:53 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='030',codigo2='030',designacao_1='Metdesc(˘leo descofrante)-30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=24 LIMIT 1;
20210210 10:53 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='030',designacao='Metdesc(˘leo descofrante)-(Emb.30Lt)x2',unidade='',com_iva='',quantidade=60.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=26 LIMIT 1;
20210210 10:53 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210210 10:53 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='030',codigo2='030',designacao_1='Metdesc(˘leo descofrante)-30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=24 LIMIT 1;
20210210 10:53 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=9,codigo='030',designacao='Metdesc(˘leo descofrante)-(Emb.30Lt)x2',unidade='',com_iva='',quantidade=60.000000,preco_unit=3.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=210.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=26 LIMIT 1;
20210210 10:53 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,10,'D',2,'N/ Fatura',9,20210210000000,20210210000000,'','',258.30,258.30,'D',258.30,0.00,0.00,48.30,0.00,1.000000,0,0,'A','');
20210210 10:53 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=210.0000,tot_desconto=0.0000,tot_liquido=210.0000,tot_iva=48.3000,tot_valor=258.3000,val_pago=0.0000,val_pend=258.3000,suj_valor0=210.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210210 10:53 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='D',tp=2,document='N/ Fatura',no_doc=9,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=258.30,pendente=258.30,deb_cred='D',debito=258.30,credito=0.00,acumulado=0.00,val_iva=48.30,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210210 10:53 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=210.0000,tot_desconto=0.0000,tot_liquido=210.0000,tot_iva=48.3000,tot_valor=258.3000,val_pago=0.0000,val_pend=258.3000,suj_valor0=210.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210210 10:55 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,10,0,'',0,0,'',20210210000000,20210210000000,20000101105500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210210 10:55 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:55 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210210 10:55 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,10,'0020','QB.500(Massa MĆos)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210210 10:55 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:56 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210210 10:56 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210210 10:56 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='020',designacao='',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20210210 10:56 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:56 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:57 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='020',designacao='Pers/Tuti(Emb.20Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20210210 10:57 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=4443903475535293100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210210 10:57 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='020',designacao='Pers/Tuti(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20210210 10:57 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:57 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210210 10:57 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='020',designacao='Pers/Tuti(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=4.8000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=96.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20210210 10:57 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'D',2,'N/ Fatura',10,20210210000000,20210210000000,'','',118.08,118.08,'D',118.08,0.00,0.00,22.08,0.00,1.000000,0,0,'A','');
20210210 10:57 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=96.0000,tot_desconto=0.0000,tot_liquido=96.0000,tot_iva=22.0800,tot_valor=118.0800,val_pago=0.0000,val_pend=118.0800,suj_valor0=96.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=22.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:58 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=763604755150765080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210210 10:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=10,codigo='020',designacao='Pers/Tuti(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=4.8500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=97.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=27 LIMIT 1;
20210210 10:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='D',tp=2,document='N/ Fatura',no_doc=10,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=119.31,pendente=119.31,deb_cred='D',debito=119.31,credito=0.00,acumulado=0.00,val_iva=22.31,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210210 10:58 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=97.0000,tot_desconto=0.0000,tot_liquido=97.0000,tot_iva=22.3100,tot_valor=119.3100,val_pago=0.0000,val_pend=119.3100,suj_valor0=97.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=22.3100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 10:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='D',tp=2,document='N/ Fatura',no_doc=10,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=119.31,pendente=119.31,deb_cred='D',debito=119.31,credito=0.00,acumulado=0.00,val_iva=22.31,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210210 10:58 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=97.0000,tot_desconto=0.0000,tot_liquido=97.0000,tot_iva=22.3100,tot_valor=119.3100,val_pago=0.0000,val_pend=119.3100,suj_valor0=97.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=22.3100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210210 11:03 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,11,0,'',0,0,'',20210210000000,20210210000000,20000101110300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210211 09:08 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',20210211000000,00000000000000,20000101090800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210211000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210211 09:09 INSERT INTO documento_d1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20210211000000,20210211000000,20000101090900,4,'METALOTA‹DE - SERRALHARIA Lda',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210211 09:11 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'R',1,'Recibo',4,20210211000000,20210211000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210211 09:11 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101090800,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210211 09:12 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210211 09:12 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,4,'D',2,'N/ Fatura',3,20210112000000,20210112000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210211 09:12 UPDATE reciboslinhas01 SET linha=5,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=3,d_doc=20210112000000,d_venc=20210112000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=8 LIMIT 1;
20210211 09:12 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=15 LIMIT 1;
20210211 09:12 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101090800,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210211 09:12 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,4,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210211 09:12 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=15 LIMIT 1;
20210211 09:12 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101090800,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210211 09:13 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=00000000000000,h_doc=20000101090800,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210211 09:13 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='',tp=0,document='',n_doc=4,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 09:13 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='',tp=0,document='',n_doc=4,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 09:13 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=00000000000000,h_doc=20000101090800,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=6 LIMIT 1;
20210211 09:14 DELETE FROM reciboslinhas01 WHERE  no=4 
20210211 09:15 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',00000000000000,00000000000000,20000101091500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210211000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210211 09:15 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=00000000000000,h_doc=20000101091500,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210211 09:16 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'R',1,'Recibo',4,20210211000000,20210211000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210211 09:16 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091500,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=5 LIMIT 1;
20210211 09:16 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=0.00,pendente=0.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 09:16 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091500,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210211 09:17 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 09:17 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,4,'D',2,'N/ Fatura',4,20210114000000,20210114000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210211 09:17 UPDATE reciboslinhas01 SET linha=5,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=10 LIMIT 1;
20210211 09:17 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 09:17 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091500,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210211 09:17 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,4,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210211 09:17 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='',tp=0,document='N/Fatura',n_doc=0,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20210211 09:17 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 09:17 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091500,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210211 09:17 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='',tp=0,document='N/Fatura',n_doc=3,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='',tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20210211 09:17 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='',tp=0,document='N/Fatura',n_doc=3,d_doc=00000000000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20210211 09:17 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='',tp=0,document='N/Fatura',n_doc=3,d_doc=20210012000000,d_venc=00000000000000,ref='',deb_cred='',val_doc=0.00,val_pend=0.00,val_liqu=0.00,per_desc=0.000,val_desc=0.00,val_rec=0.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=0.00,tot_iva=0.00,tot_valor=0.00,suj_valor0=0.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=0.00,suj_taxa1=0.00,suj_taxa2=0.00,suj_taxa3=0.00,suj_iva0=0.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=11 LIMIT 1;
20210211 09:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 09:18 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091500,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210211 09:18 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,15,0,4,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210211 09:18 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 09:18 DELETE FROM reciboslinhas01 WHERE  no=4 
20210211 09:19 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',00000000000000,00000000000000,20000101091900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210211000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210211 09:19 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=00000000000000,h_doc=20000101091900,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210211 09:19 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'R',1,'Recibo',4,20210211000000,20210211000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210211 09:19 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091900,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210211 09:20 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 09:20 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,4,'D',2,'N/ Fatura',4,20210114000000,20210114000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210211 09:20 UPDATE reciboslinhas01 SET linha=5,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=13 LIMIT 1;
20210211 09:20 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 09:20 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101091900,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210211 09:20 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 09:20 DELETE FROM reciboslinhas01 WHERE  no=4 
20210211 09:21 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,4,0,'',0,0,'',00000000000000,00000000000000,20000101092100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210211000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210211 09:21 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=00000000000000,h_doc=20000101092100,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 10:36 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'R',1,'Recibo',4,20210211000000,20210211000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210211 10:36 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101092100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 10:36 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210211 10:36 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,4,'D',2,'N/ Fatura',3,20210112000000,20210112000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210211 10:36 UPDATE reciboslinhas01 SET linha=5,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=3,d_doc=20210112000000,d_venc=20210112000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=14 LIMIT 1;
20210211 10:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=15 LIMIT 1;
20210211 10:36 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101092100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 10:36 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,4,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210211 10:36 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 10:36 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20210211 10:36 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=15 LIMIT 1;
20210211 10:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=307.50,pendente=307.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=15 LIMIT 1;
20210211 10:36 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101092100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=307.5000,tot_desconto=0.0000,tot_liquido=307.5000,tot_iva=0.0000,tot_valor=307.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 10:36 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 10:36 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210211 10:37 UPDATE documento_d2 SET linhas=0,no_doc=3,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210112000000,d_venc=20210112000000,h_doc=20000101213300,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20210211 10:37 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,4,'D',2,'N/ Fatura',3,20210112000000,20210112000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210211 10:37 UPDATE reciboslinhas01 SET linha=5,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=3,d_doc=20210112000000,d_venc=20210112000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=16 LIMIT 1;
20210211 10:37 UPDATE historico_contas_correntes_clientes SET linha_f=9,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=307.50,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 10:37 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101092100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=307.5000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 10:37 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,4,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210211 10:37 UPDATE documento_d2 SET linhas=0,no_doc=4,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210114000000,d_venc=20210114000000,h_doc=20000101102700,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=4 LIMIT 1;
20210211 10:37 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20210211 10:37 UPDATE reciboslinhas01 SET linha=10,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',n_doc=4,d_doc=20210114000000,d_venc=20210114000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=17 LIMIT 1;
20210211 10:37 UPDATE historico_contas_correntes_clientes SET linha_f=9,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=307.50,pendente=307.50,deb_cred='C',debito=0.00,credito=307.50,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 10:37 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101092100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=307.5000,tot_desconto=0.0000,tot_liquido=307.5000,tot_iva=0.0000,tot_valor=307.5000,val_pago=0.0000,val_pend=307.5000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210211 10:38 UPDATE historico_contas_correntes_clientes SET linha_f=9,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=4,d_doc=20210211000000,d_venc=20210211000000,ref='',obs='',valor=307.50,pendente=307.50,deb_cred='C',debito=0.00,credito=307.50,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=14 LIMIT 1;
20210211 10:38 UPDATE documento_r1 SET linhas=0,no_doc=4,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210211000000,d_venc=20210211000000,h_doc=20000101092100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=307.5000,tot_desconto=0.0000,tot_liquido=307.5000,tot_iva=0.0000,tot_valor=307.5000,val_pago=0.0000,val_pend=307.5000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210211000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210217 10:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,13,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210217 10:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,14,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210217 10:11 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4274-850','','','');
20210217 10:12 UPDATE codigos_postais SET codigo='4274-850',concelho='TABUA€AS',distrito='VIEIRA DO MINHO',rsv='' WHERE IDX=22 LIMIT 1;
20210217 10:12 UPDATE codigos_postais SET codigo='4274-850',concelho='TABUA€AS',distrito='VIEIRA DO MINHO',rsv='' WHERE IDX=22 LIMIT 1;
20210217 10:12 UPDATE codigos_postais SET codigo='4274-850',concelho='TABUA€AS',distrito='VIEIRA DO MINHO',rsv='' WHERE IDX=22 LIMIT 1;
20210217 10:12 UPDATE codigos_postais SET codigo='4274-850',concelho='TABUA€AS',distrito='VIEIRA DO MINHO',rsv='' WHERE IDX=22 LIMIT 1;
20210217 10:12 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='RICARDO CARDOSO',nome_2='',morada='Avenida de Pepim, 120',localidade='TABUA€AS-VIEIRA DO MINHO',cod_post='4274-850',concelho='TABUA€AS',distrito='VIEIRA DO MINHO',zona='',n_pais=0,pais='',contribuinte='231224907',telefone='912625120',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=8,nome_1='RICARDO CARDOSO',nome_2='',morada='Avenida de Pepim, 120',localidade='TABUA€AS-VIEIRA DO MINHO',cod_post='4274-850',concelho='TABUA€AS',distrito='VIEIRA DO MINHO',zona='',n_pais=0,pais='',contribuinte='231224907',telefone='912625120',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:18 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:18 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'O10','O10','LIV/TV-Emb.10Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210217 10:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='O10',codigo2='O10',designacao_1='LIV/TV-Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=25 LIMIT 1;
20210217 10:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,11,'O10','LIV/TV-Emb.10Lt','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210217 10:19 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='O10',codigo2='O10',designacao_1='LIV/TV-Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=25 LIMIT 1;
20210217 10:19 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=11,codigo='O10',designacao='LIV/TV-Emb.10Lt',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=28 LIMIT 1;
20210217 10:19 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='O10',codigo2='O10',designacao_1='LIV/TV-Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=25 LIMIT 1;
20210217 10:19 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=11,codigo='O10',designacao='LIV/TV-Emb.10Lt',unidade='',com_iva='',quantidade=10.000000,preco_unit=7.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=70.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=28 LIMIT 1;
20210217 10:19 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'D',2,'N/ Fatura',11,20210210000000,20210210000000,'','',86.10,86.10,'D',86.10,0.00,0.00,16.10,0.00,1.000000,0,0,'A','');
20210217 10:19 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,11,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210217 10:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0010',codigo2='0010',designacao_1='Linox/S',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-11.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=20 LIMIT 1;
20210217 10:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=11,codigo='0010',designacao='Linox/S',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=29 LIMIT 1;
20210217 10:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=86.10,pendente=86.10,deb_cred='D',debito=86.10,credito=0.00,acumulado=0.00,val_iva=16.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210217 10:19 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:20 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'110','110','CS33/DESG.Emb.10Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210217 10:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0010',codigo2='0010',designacao_1='Linox/S',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=20 LIMIT 1;
20210217 10:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210217 10:20 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=11,codigo='110',designacao='CS33/DESG.Emb.10Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=29 LIMIT 1;
20210217 10:20 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=86.10,pendente=86.10,deb_cred='D',debito=86.10,credito=0.00,acumulado=0.00,val_iva=16.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210217 10:20 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210217 10:20 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=11,codigo='110',designacao='CS33/DESG.Emb.10Lt',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=29 LIMIT 1;
20210217 10:20 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=86.10,pendente=86.10,deb_cred='D',debito=86.10,credito=0.00,acumulado=0.00,val_iva=16.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210217 10:20 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=70.0000,tot_desconto=0.0000,tot_liquido=70.0000,tot_iva=16.1000,tot_valor=86.1000,val_pago=0.0000,val_pend=86.1000,suj_valor0=70.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=16.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-10.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210217 10:20 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=11,codigo='110',designacao='CS33/DESG.Emb.10Lt',unidade='',com_iva='',quantidade=10.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=29 LIMIT 1;
20210217 10:21 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=159.90,pendente=159.90,deb_cred='D',debito=159.90,credito=0.00,acumulado=0.00,val_iva=29.90,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210217 10:21 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=130.0000,tot_desconto=0.0000,tot_liquido=130.0000,tot_iva=29.9000,tot_valor=159.9000,val_pago=0.0000,val_pend=159.9000,suj_valor0=130.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=29.9000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:21 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='D',tp=2,document='N/ Fatura',no_doc=11,d_doc=20210210000000,d_venc=20210210000000,ref='',obs='',valor=159.90,pendente=159.90,deb_cred='D',debito=159.90,credito=0.00,acumulado=0.00,val_iva=29.90,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210217 10:21 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=130.0000,tot_desconto=0.0000,tot_liquido=130.0000,tot_iva=29.9000,tot_valor=159.9000,val_pago=0.0000,val_pend=159.9000,suj_valor0=130.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=29.9000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210217 10:24 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,8,'O10','LIV/TV-Emb.10Lt',7.00,0.00,'FA',11,20210210000000,0.00,'');
20210217 10:24 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,8,'110','CS33/DESG.Emb.10Lt',6.00,0.00,'FA',11,20210210000000,0.00,'');
20210301 09:20 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,12,0,'',0,0,'',20210301000000,20210301000000,20000101092000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210301 09:20 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:21 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'010','010','Persiusos/L-10Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',-34741063845246596000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','0','0.00','0.00','');
20210301 09:22 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='Persiusos/L-Emb-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210210000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-34741063845246596000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=22 LIMIT 1;
20210301 09:22 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'01010','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',-34741063845246596000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','','0.00','0.00','');
20210301 09:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='01010',codigo2='',designacao_1='ShowerGel(Gel Banho)-Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-34741063845246596000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=28 LIMIT 1;
20210301 09:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='01010',codigo2='',designacao_1='ShowerGel(Gel Banho)-Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-34741063845246596000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=28 LIMIT 1;
20210301 09:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='010',codigo2='010',designacao_1='Persiusos/L-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=27 LIMIT 1;
20210301 09:24 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,12,'010','Persiusos/L-10Lt','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210301 09:24 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='010',codigo2='010',designacao_1='Persiusos/L-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=27 LIMIT 1;
20210301 09:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=12,codigo='010',designacao='Persiusos/L-10Lt',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=30 LIMIT 1;
20210301 09:24 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=12,codigo='010',designacao='Persiusos/L-10Lt, 4x10lt',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=30 LIMIT 1;
20210301 09:25 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='010',codigo2='010',designacao_1='Persiusos/L-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=27 LIMIT 1;
20210301 09:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=12,codigo='010',designacao='Persiusos/L-10Lt, 4x10lt',unidade='',com_iva='',quantidade=40.000000,preco_unit=1.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=64.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=30 LIMIT 1;
20210301 09:26 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Fatura',12,20210301000000,20210301000000,'','',78.72,78.72,'D',78.72,0.00,0.00,14.72,0.00,1.000000,0,0,'A','');
20210301 09:26 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=64.0000,tot_desconto=0.0000,tot_liquido=64.0000,tot_iva=14.7200,tot_valor=78.7200,val_pago=0.0000,val_pend=78.7200,suj_valor0=64.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,12,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210301 09:27 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0110','0110','ShowerGel(Gel Banho) Emb.10Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210301 09:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0110',codigo2='0110',designacao_1='ShowerGel(Gel Banho) Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=29 LIMIT 1;
20210301 09:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0110',codigo2='0110',designacao_1='ShowerGel(Gel Banho) Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=29 LIMIT 1;
20210301 09:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=12,codigo='0110',designacao='ShowerGel(Gel Banho) Emb.10Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20210301 09:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=78.72,pendente=78.72,deb_cred='D',debito=78.72,credito=0.00,acumulado=0.00,val_iva=14.72,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210301 09:27 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=64.0000,tot_desconto=0.0000,tot_liquido=64.0000,tot_iva=14.7200,tot_valor=78.7200,val_pago=0.0000,val_pend=78.7200,suj_valor0=64.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=12,codigo='0110',designacao='ShowerGel(Gel Banho) Emb.10Lt,4x10Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20210301 09:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=78.72,pendente=78.72,deb_cred='D',debito=78.72,credito=0.00,acumulado=0.00,val_iva=14.72,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210301 09:27 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=64.0000,tot_desconto=0.0000,tot_liquido=64.0000,tot_iva=14.7200,tot_valor=78.7200,val_pago=0.0000,val_pend=78.7200,suj_valor0=64.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0110',codigo2='0110',designacao_1='ShowerGel(Gel Banho) Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=29 LIMIT 1;
20210301 09:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=12,codigo='0110',designacao='ShowerGel(Gel Banho) Emb.10Lt,4x10Lt',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20210301 09:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0110',codigo2='0110',designacao_1='ShowerGel(Gel Banho) Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=29 LIMIT 1;
20210301 09:28 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=12,codigo='0110',designacao='ShowerGel(Gel Banho) Emb.10Lt,4x10Lt',unidade='',com_iva='',quantidade=40.000000,preco_unit=3.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=132.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=31 LIMIT 1;
20210301 09:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210301 09:29 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='010',codigo2='010',designacao_1='Persiusos/L-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210301000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=27 LIMIT 1;
20210301 09:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=12,codigo='010',designacao='Persiusos/L-10Lt, 4x10lt',unidade='',com_iva='',quantidade=40.000000,preco_unit=1.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=60.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=30 LIMIT 1;
20210301 09:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='D',debito=236.16,credito=0.00,acumulado=0.00,val_iva=44.16,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210301 09:29 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=0.0000,val_pend=236.1600,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='D',debito=236.16,credito=0.00,acumulado=0.00,val_iva=44.16,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210301 09:29 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=0.0000,val_pend=236.1600,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='D',debito=236.16,credito=0.00,acumulado=0.00,val_iva=44.16,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210301 09:29 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=0.0000,val_pend=236.1600,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:31 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,7,'010','Persiusos/L-10Lt, 4x10lt',1.50,0.00,'FA',12,20210301000000,0.00,'');
20210301 09:31 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,7,'0110','ShowerGel(Gel Banho) Emb.10Lt,4x10Lt',3.30,0.00,'FA',12,20210301000000,0.00,'');
20210301 09:32 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,5,0,'',0,0,'',00000000000000,00000000000000,20000101093200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210301000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210301 09:32 UPDATE documento_r1 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=00000000000000,h_doc=20000101093200,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210301 09:33 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,8,'R',1,'Recibo',5,20210301000000,20210301000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210301 09:33 UPDATE documento_r1 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101093200,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210301 09:33 UPDATE documento_d2 SET linhas=0,no_doc=11,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101110300,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=130.0000,tot_desconto=0.0000,tot_liquido=130.0000,tot_iva=29.9000,tot_valor=159.9000,val_pago=159.9000,val_pend=0.0000,suj_valor0=130.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=29.9000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210301 09:33 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,5,'D',2,'N/ Fatura',11,20210210000000,20210210000000,'','D',159.90,159.90,159.90,0.000,0.00,159.90,0.00,0.00,0,'A',130.00,29.90,159.90,130.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,29.90,0.00,0.00,0.00,0,'');
20210301 09:33 UPDATE reciboslinhas01 SET linha=5,cor=0,no=5,doc_mov='D',tp=2,document='N/ Fatura',n_doc=11,d_doc=20210210000000,d_venc=20210210000000,ref='',deb_cred='D',val_doc=159.90,val_pend=159.90,val_liqu=159.90,per_desc=0.000,val_desc=0.00,val_rec=159.90,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=130.00,tot_iva=29.90,tot_valor=159.90,suj_valor0=130.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=29.90,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=18 LIMIT 1;
20210301 09:33 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='R',tp=1,document='Recibo',no_doc=5,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=159.90,pendente=159.90,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=16 LIMIT 1;
20210301 09:33 UPDATE documento_r1 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101093200,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=159.9000,tot_desconto=0.0000,tot_liquido=159.9000,tot_iva=0.0000,tot_valor=159.9000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210301 09:34 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=8,doc_mov='R',tp=1,document='Recibo',no_doc=5,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=159.90,pendente=159.90,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=16 LIMIT 1;
20210301 09:34 UPDATE documento_r1 SET linhas=0,no_doc=5,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101093200,no_cf=8,nome_cf='RICARDO CARDOSO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=159.9000,tot_desconto=0.0000,tot_liquido=159.9000,tot_iva=0.0000,tot_valor=159.9000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210301 09:39 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,6,0,'',0,0,'',20210301000000,00000000000000,20000101093900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210301000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210301 09:40 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,10,'R',1,'Recibo',6,20210301000000,20210301000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210301 09:40 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101093900,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210301 09:40 UPDATE documento_d2 SET linhas=0,no_doc=9,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=210.0000,tot_desconto=0.0000,tot_liquido=210.0000,tot_iva=48.3000,tot_valor=258.3000,val_pago=258.3000,val_pend=0.0000,suj_valor0=210.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.3000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=9 LIMIT 1;
20210301 09:40 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,6,'D',2,'N/ Fatura',9,20210210000000,20210210000000,'','D',258.30,258.30,258.30,0.000,0.00,258.30,0.00,0.00,0,'A',210.00,48.30,258.30,210.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,48.30,0.00,0.00,0.00,0,'');
20210301 09:40 UPDATE reciboslinhas01 SET linha=5,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',n_doc=9,d_doc=20210210000000,d_venc=20210210000000,ref='',deb_cred='D',val_doc=258.30,val_pend=258.30,val_liqu=258.30,per_desc=0.000,val_desc=0.00,val_rec=258.30,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=210.00,tot_iva=48.30,tot_valor=258.30,suj_valor0=210.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=48.30,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=19 LIMIT 1;
20210301 09:40 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=258.30,pendente=258.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=17 LIMIT 1;
20210301 09:40 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101093900,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=258.3000,tot_desconto=0.0000,tot_liquido=258.3000,tot_iva=0.0000,tot_valor=258.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210301 09:41 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='R',tp=1,document='Recibo',no_doc=6,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=258.30,pendente=258.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=17 LIMIT 1;
20210301 09:41 UPDATE documento_r1 SET linhas=0,no_doc=6,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101093900,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=258.3000,tot_desconto=0.0000,tot_liquido=258.3000,tot_iva=0.0000,tot_valor=258.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=11 LIMIT 1;
20210301 09:42 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,7,0,'',0,0,'',20210301000000,00000000000000,20000101094200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210301000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210301 09:42 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'R',1,'Recibo',7,20210301000000,20210301000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210301 09:42 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094200,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:42 UPDATE documento_d2 SET linhas=0,no_doc=10,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101105500,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=97.0000,tot_desconto=0.0000,tot_liquido=97.0000,tot_iva=22.3100,tot_valor=119.3100,val_pago=119.3100,val_pend=0.0000,suj_valor0=97.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=22.3100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=10 LIMIT 1;
20210301 09:42 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,7,'D',2,'N/ Fatura',10,20210210000000,20210210000000,'','D',119.31,119.31,119.31,0.000,0.00,119.31,0.00,0.00,0,'A',97.00,22.31,119.31,97.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,22.31,0.00,0.00,0.00,0,'');
20210301 09:42 UPDATE reciboslinhas01 SET linha=5,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',n_doc=10,d_doc=20210210000000,d_venc=20210210000000,ref='',deb_cred='D',val_doc=119.31,val_pend=119.31,val_liqu=119.31,per_desc=0.000,val_desc=0.00,val_rec=119.31,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=97.00,tot_iva=22.31,tot_valor=119.31,suj_valor0=97.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=22.31,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=20 LIMIT 1;
20210301 09:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='R',tp=1,document='Recibo',no_doc=7,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=119.31,pendente=119.31,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=18 LIMIT 1;
20210301 09:42 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094200,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=119.3100,tot_desconto=0.0000,tot_liquido=119.3100,tot_iva=0.0000,tot_valor=119.3100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='R',tp=1,document='Recibo',no_doc=7,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=119.31,pendente=119.31,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=18 LIMIT 1;
20210301 09:42 UPDATE documento_r1 SET linhas=0,no_doc=7,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094200,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=119.3100,tot_desconto=0.0000,tot_liquido=119.3100,tot_iva=0.0000,tot_valor=119.3100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210301 09:44 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,8,0,'',0,0,'',20210301000000,00000000000000,20000101094400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210301000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210301 09:44 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'R',1,'Recibo',8,20210301000000,20210301000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210301 09:44 UPDATE documento_r1 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210301 09:44 UPDATE documento_d2 SET linhas=0,no_doc=8,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210210000000,d_venc=20210210000000,h_doc=20000101104100,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=135.0000,tot_desconto=0.0000,tot_liquido=135.0000,tot_iva=31.0500,tot_valor=166.0500,val_pago=166.0500,val_pend=0.0000,suj_valor0=135.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.0500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=8 LIMIT 1;
20210301 09:44 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,8,'D',2,'N/ Fatura',8,20210210000000,20210210000000,'','D',166.05,166.05,166.05,0.000,0.00,166.05,0.00,0.00,0,'A',135.00,31.05,166.05,135.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,31.05,0.00,0.00,0.00,0,'');
20210301 09:44 UPDATE reciboslinhas01 SET linha=5,cor=0,no=8,doc_mov='D',tp=2,document='N/ Fatura',n_doc=8,d_doc=20210210000000,d_venc=20210210000000,ref='',deb_cred='D',val_doc=166.05,val_pend=166.05,val_liqu=166.05,per_desc=0.000,val_desc=0.00,val_rec=166.05,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=135.00,tot_iva=31.05,tot_valor=166.05,suj_valor0=135.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=31.05,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=21 LIMIT 1;
20210301 09:44 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=8,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=166.05,pendente=166.05,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=19 LIMIT 1;
20210301 09:44 UPDATE documento_r1 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=166.0500,tot_desconto=0.0000,tot_liquido=166.0500,tot_iva=0.0000,tot_valor=166.0500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210301 09:44 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=8,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=166.05,pendente=166.05,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=19 LIMIT 1;
20210301 09:44 UPDATE documento_r1 SET linhas=0,no_doc=8,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=166.0500,tot_desconto=0.0000,tot_liquido=166.0500,tot_iva=0.0000,tot_valor=166.0500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210301 09:46 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,9,0,'',0,0,'',20210301000000,00000000000000,20000101094600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210301000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210301 09:46 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'R',1,'Recibo',9,20210301000000,20210301000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210301 09:46 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210301 09:46 UPDATE documento_d2 SET linhas=0,no_doc=7,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210201000000,d_venc=20210201000000,h_doc=20000101100100,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.0000,tot_desconto=0.0000,tot_liquido=147.0000,tot_iva=33.8100,tot_valor=180.8100,val_pago=180.8100,val_pend=0.0000,suj_valor0=147.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=33.8100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=7 LIMIT 1;
20210301 09:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,9,'D',2,'N/ Fatura',7,20210201000000,20210201000000,'','D',180.81,180.81,180.81,0.000,0.00,180.81,0.00,0.00,0,'A',147.00,33.81,180.81,147.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,33.81,0.00,0.00,0.00,0,'');
20210301 09:46 UPDATE reciboslinhas01 SET linha=5,cor=0,no=9,doc_mov='D',tp=2,document='N/ Fatura',n_doc=7,d_doc=20210201000000,d_venc=20210201000000,ref='',deb_cred='D',val_doc=180.81,val_pend=180.81,val_liqu=180.81,per_desc=0.000,val_desc=0.00,val_rec=180.81,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=147.00,tot_iva=33.81,tot_valor=180.81,suj_valor0=147.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=33.81,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=22 LIMIT 1;
20210301 09:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=180.81,pendente=180.81,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=20 LIMIT 1;
20210301 09:46 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.8100,tot_desconto=0.0000,tot_liquido=180.8100,tot_iva=0.0000,tot_valor=180.8100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210301 09:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=9,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=180.81,pendente=180.81,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=20 LIMIT 1;
20210301 09:46 UPDATE documento_r1 SET linhas=0,no_doc=9,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101094600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.8100,tot_desconto=0.0000,tot_liquido=180.8100,tot_iva=0.0000,tot_valor=180.8100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210301 09:56 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,10,0,'',0,0,'',20210301000000,00000000000000,20000101095600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210301000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210301 10:27 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=7,nome_1='CASA DE TRABALHO DE FONTARCADA',nome_2='',morada='Av. Padre David Novais, n§ 335',localidade='POVOA DE LANHOSO',cod_post='4830-198',concelho='Fontarcada',distrito='P˘voa de Lanhoso',zona='P˘voa de Lanhoso',n_pais=0,pais='',contribuinte='500985472',telefone='253632569',fax='253635263',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='casadetrabalho@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=-236.16,saldo1=-236.16,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=10 LIMIT 1;
20210304 17:34 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,13,0,'',0,0,'',20210304000000,20210304000000,20000101173400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210304 17:34 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:34 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0320',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210304000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=18 LIMIT 1;
20210304 17:34 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,13,'0320','QB500/Esp.','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210304 17:34 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=13,codigo='0320',designacao='QB500/Esp.',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20210304 17:34 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=13,codigo='0320',designacao='QB500/Esp.(Emb.20Kg)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20210304 17:35 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0320',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210304000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-1.#QNAN00,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=18 LIMIT 1;
20210304 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=13,codigo='0320',designacao='QB500/Esp.(Emb.20Kg)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20210304 17:35 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0320',codigo2='',designacao_1='QB500/Esp.',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210304000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=18 LIMIT 1;
20210304 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=13,codigo='0320',designacao='QB500/Esp.(Emb.20Kg)',unidade='',com_iva='',quantidade=20.000000,preco_unit=6.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=139.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=32 LIMIT 1;
20210304 17:35 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'D',2,'N/ Fatura',13,20210304000000,20210304000000,'','',170.97,170.97,'D',170.97,0.00,0.00,31.97,0.00,1.000000,0,0,'A','');
20210304 17:35 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=139.0000,tot_desconto=0.0000,tot_liquido=139.0000,tot_iva=31.9700,tot_valor=170.9700,val_pago=0.0000,val_pend=170.9700,suj_valor0=139.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.9700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:35 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,13,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210304 17:36 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=170.97,pendente=170.97,deb_cred='D',debito=170.97,credito=0.00,acumulado=0.00,val_iva=31.97,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:36 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=139.0000,tot_desconto=0.0000,tot_liquido=139.0000,tot_iva=31.9700,tot_valor=170.9700,val_pago=0.0000,val_pend=170.9700,suj_valor0=139.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.9700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:36 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'100','100','RolosPapel/Ind','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210304 17:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210304000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:37 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=13,codigo='100',designacao='RolosPapel/Ind',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=33 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=170.97,pendente=170.97,deb_cred='D',debito=170.97,credito=0.00,acumulado=0.00,val_iva=31.97,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=139.0000,tot_desconto=0.0000,tot_liquido=139.0000,tot_iva=31.9700,tot_valor=170.9700,val_pago=0.0000,val_pend=170.9700,suj_valor0=139.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.9700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:37 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=13,codigo='100',designacao='RolosPapel/Ind(2Emb.)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=33 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=170.97,pendente=170.97,deb_cred='D',debito=170.97,credito=0.00,acumulado=0.00,val_iva=31.97,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=139.0000,tot_desconto=0.0000,tot_liquido=139.0000,tot_iva=31.9700,tot_valor=170.9700,val_pago=0.0000,val_pend=170.9700,suj_valor0=139.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.9700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-2.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210304000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-1.#QNAN00,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:37 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=13,codigo='100',designacao='RolosPapel/Ind(2Emb.)',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=33 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=170.97,pendente=170.97,deb_cred='D',debito=170.97,credito=0.00,acumulado=0.00,val_iva=31.97,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=139.0000,tot_desconto=0.0000,tot_liquido=139.0000,tot_iva=31.9700,tot_valor=170.9700,val_pago=0.0000,val_pend=170.9700,suj_valor0=139.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.9700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='100',codigo2='100',designacao_1='RolosPapel/Ind',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210304000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=60857420749546002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=30 LIMIT 1;
20210304 17:37 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=13,codigo='100',designacao='RolosPapel/Ind(2Emb.)',unidade='',com_iva='',quantidade=2.000000,preco_unit=36.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=72.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=33 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=259.53,pendente=259.53,deb_cred='D',debito=259.53,credito=0.00,acumulado=0.00,val_iva=48.53,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=211.0000,tot_desconto=0.0000,tot_liquido=211.0000,tot_iva=48.5300,tot_valor=259.5300,val_pago=0.0000,val_pend=259.5300,suj_valor0=211.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.5300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=259.53,pendente=259.53,deb_cred='D',debito=259.53,credito=0.00,acumulado=0.00,val_iva=48.53,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=211.0000,tot_desconto=0.0000,tot_liquido=211.0000,tot_iva=48.5300,tot_valor=259.5300,val_pago=0.0000,val_pend=259.5300,suj_valor0=211.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.5300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=259.53,pendente=259.53,deb_cred='D',debito=259.53,credito=0.00,acumulado=0.00,val_iva=48.53,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=211.0000,tot_desconto=0.0000,tot_liquido=211.0000,tot_iva=48.5300,tot_valor=259.5300,val_pago=0.0000,val_pend=259.5300,suj_valor0=211.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.5300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',obs='',valor=259.53,pendente=259.53,deb_cred='D',debito=259.53,credito=0.00,acumulado=0.00,val_iva=48.53,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210304 17:37 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=211.0000,tot_desconto=0.0000,tot_liquido=211.0000,tot_iva=48.5300,tot_valor=259.5300,val_pago=0.0000,val_pend=259.5300,suj_valor0=211.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.5300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210304 17:43 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,12,'0320','QB500/Esp.(Emb.20Kg)',6.95,0.00,'FA',13,20210304000000,0.00,'');
20210304 17:43 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,10,0,12,'100','RolosPapel/Ind(2Emb.)',36.00,0.00,'FA',13,20210304000000,0.00,'');
20210308 18:24 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4800-839','','','');
20210308 18:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='JOLISNATEX-F brica de confec‡”es Lda',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='S.Salvador de Souto-GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='508540810',telefone='253573597',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='jolisnatex@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='S.Salvador de Souto-GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='508540810',telefone='253573597',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='jolisnatex@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='S.Salvador de Souto-GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='508540810',telefone='253573597',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='jolisnatex@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:32 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='S.Salvador de Souto-GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='508540810',telefone='253573597',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='jolisnatex@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=13,nome_1='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',nome_2='',morada='Rua Eng. Duarte Amaral n§ 1460',localidade='S.Salvador de Souto-GuimarĆes',cod_post='4800-839',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='508540810',telefone='253573597',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='jolisnatex@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=17 LIMIT 1;
20210308 18:35 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4800-888','','','');
20210308 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=14,nome_1='PAUTA&EXIGENTE Lda',nome_2='',morada='Rua de Segade, n§ 2757',localidade='SĆo Torcato-GuimarĆes',cod_post='4800-888',concelho='',distrito='',zona='1',n_pais=1,pais='PORTUGAL',contribuinte='513 214 739',telefone='253 543 130',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=18 LIMIT 1;
20210308 18:39 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,15,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210308 18:42 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1011','1011','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0','0','0','0','0','');
20210308 18:42 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1030','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','','0.00','0.00','');
20210308 18:43 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=32 LIMIT 1;
20210308 18:43 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1031','1031','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0','0','0','0','0','');
20210308 18:44 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1025','','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','','0.00','0.00','');
20210308 18:44 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1025',codigo2='',designacao_1='Ferrocut/40-˘leo corte puro(Emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=34 LIMIT 1;
20210310 11:29 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-187','','','');
20210310 11:30 UPDATE codigos_postais SET codigo='4820-187',concelho='Fafe',distrito='',rsv='' WHERE IDX=25 LIMIT 1;
20210310 11:30 UPDATE codigos_postais SET codigo='4820-187',concelho='Fafe',distrito='',rsv='' WHERE IDX=25 LIMIT 1;
20210310 11:31 UPDATE documento_d2 SET convertido='0' WHERE no_doc='13' and serdoc='A' 
20210310 11:31 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,14,0,'',0,0,'',20210310000000,20210310000000,20000101113100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210310 11:32 UPDATE documento_d2 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210310000000,d_venc=20210310000000,h_doc=20000101113100,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210310 11:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1025',codigo2='',designacao_1='Ferrocut/40-˘leo corte puro(Emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210310000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=46450569521189058000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=34 LIMIT 1;
20210310 11:33 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,14,'1025','Ferrocut/40-˘leo corte puro(Emb.25Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210310 11:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1025',codigo2='',designacao_1='Ferrocut/40-˘leo corte puro(Emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210310000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=34 LIMIT 1;
20210310 11:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=14,codigo='1025',designacao='Ferrocut/40-˘leo corte puro(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=34 LIMIT 1;
20210310 11:33 UPDATE documento_d2 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210310000000,d_venc=20210310000000,h_doc=20000101113100,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210310 11:33 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1025',codigo2='',designacao_1='Ferrocut/40-˘leo corte puro(Emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210310000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=34 LIMIT 1;
20210310 11:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=14,codigo='1025',designacao='Ferrocut/40-˘leo corte puro(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=34 LIMIT 1;
20210310 11:33 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,15,'D',2,'N/ Fatura',14,20210310000000,20210310000000,'','',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210310 11:33 UPDATE documento_d2 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210310000000,d_venc=20210310000000,h_doc=20000101113100,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210310 11:33 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=15,doc_mov='D',tp=2,document='N/ Fatura',no_doc=14,d_doc=20210310000000,d_venc=20210310000000,ref='',obs='',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210310 11:33 UPDATE documento_d2 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210310000000,d_venc=20210310000000,h_doc=20000101113100,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210310 11:35 UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20210310 11:35 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,15,'1025','Ferrocut/40-˘leo corte puro(Emb.25Lt)',6.00,0.00,'FA',14,20210310000000,0.00,'');
20210310 11:35 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=15,nome_1='FRANCISCO & NOBRE',nome_2='',morada='Rua da Guin‚ n§ 280',localidade='Fafe',cod_post='4820-187',concelho='Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='509 500 838',telefone='253 595 783',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='c.gruponobre@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=19 LIMIT 1;
20210310 11:35 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=15,nome_1='FRANCISCO & NOBRE',nome_2='',morada='Rua da Guin‚ n§ 280',localidade='Fafe',cod_post='4820-187',concelho='Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='509 500 838',telefone='253 595 783',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='c.gruponobre@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=19 LIMIT 1;
20210310 11:36 UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20210310 11:36 UPDATE documento_d2 SET convertido='0' WHERE no_doc='14' and serdoc='A' 
20210311 11:21 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,16,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210311 11:35 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820 570','','','');
20210311 11:37 UPDATE codigos_postais SET codigo='4820 570',concelho='QinchĆes - Fafe',distrito='',rsv='' WHERE IDX=26 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:40 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210311 11:40 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=16,nome_1='JOMACOL-SERRALHARIA CIVIL, Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 89',localidade='QuinchĆes - Fafe',cod_post='4820 570',concelho='QinchĆes - Fafe',distrito='',zona='',n_pais=0,pais='',contribuinte='502 286 008',telefone='253 599 343',fax='253 599 343',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=20 LIMIT 1;
20210312 07:18 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,15,0,'',0,0,'',20210312000000,20210312000000,20000101071800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210312 07:18 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210312 07:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=3783499245020864700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:19 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210312 07:19 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,15,'1030','Persinoa/A-Tira N˘doas/Emb.30Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210312 07:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3000.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=15,codigo='1030',designacao='Persinoa/A-Tira N˘doas/Emb.30Lt)',unidade='',com_iva='',quantidade=3000.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=35 LIMIT 1;
20210312 07:20 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210312 07:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=15,codigo='1030',designacao='Persinoa/A-Tira N˘doas/Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=35 LIMIT 1;
20210312 07:20 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210312 07:20 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=15,codigo='1030',designacao='Persinoa/A-Tira N˘doas/Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=168.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=35 LIMIT 1;
20210312 07:20 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,13,'D',2,'N/ Fatura',15,20210312000000,20210312000000,'','',206.64,206.64,'D',206.64,0.00,0.00,38.64,0.00,1.000000,0,0,'A','');
20210312 07:20 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210312 07:20 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=13,doc_mov='D',tp=2,document='N/ Fatura',no_doc=15,d_doc=20210312000000,d_venc=20210312000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='D',debito=206.64,credito=0.00,acumulado=0.00,val_iva=38.64,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210312 07:20 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210312 07:23 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,16,0,'',0,0,'',20210312000000,20210312000000,20000101072300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210312 07:23 UPDATE documento_d2 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101072300,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210312 07:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-31.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:23 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,16,'1030','Persinoa/A-Tira N˘doas/Emb.30Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210312 07:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=1828641226106004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:23 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=16,codigo='1030',designacao='Persinoa/A-Tira N˘doas/Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=36 LIMIT 1;
20210312 07:23 UPDATE documento_d2 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101072300,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210312 07:23 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1030',codigo2='',designacao_1='Persinoa/A-Tira N˘doas/Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=0,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210312000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-26006775296817977000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=32 LIMIT 1;
20210312 07:23 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=16,codigo='1030',designacao='Persinoa/A-Tira N˘doas/Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.7500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=172.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=36 LIMIT 1;
20210312 07:24 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,14,'D',2,'N/ Fatura',16,20210312000000,20210312000000,'','',212.18,212.18,'D',212.18,0.00,0.00,39.68,0.00,1.000000,1,0,'A','');
20210312 07:24 UPDATE documento_d2 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101072300,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=172.5000,tot_desconto=0.0000,tot_liquido=172.5000,tot_iva=39.6800,tot_valor=212.1800,val_pago=0.0000,val_pend=212.1800,suj_valor0=172.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.6800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210312 07:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=14,doc_mov='D',tp=2,document='N/ Fatura',no_doc=16,d_doc=20210312000000,d_venc=20210312000000,ref='',obs='',valor=212.18,pendente=212.18,deb_cred='D',debito=212.18,credito=0.00,acumulado=0.00,val_iva=39.68,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210312 07:24 UPDATE documento_d2 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101072300,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=172.5000,tot_desconto=0.0000,tot_liquido=172.5000,tot_iva=39.6800,tot_valor=212.1800,val_pago=0.0000,val_pend=212.1800,suj_valor0=172.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.6800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210319 17:33 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,17,0,'',0,0,'',20210319000000,20210319000000,20000101173300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210319 17:33 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:35 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1020','1020','UltraMF 10-źleo/Emb.20Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210319 17:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:35 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:35 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,17,'1020','UltraMF 10-źleo/Emb.20Lt','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:35 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:36 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=17,codigo='1020',designacao='UltraMF 10-źleo/Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=37 LIMIT 1;
20210319 17:36 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:36 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=17,codigo='1020',designacao='UltraMF 10-źleo/Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=160.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=37 LIMIT 1;
20210319 17:36 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,16,'D',2,'N/ Fatura',17,20210319000000,20210319000000,'','',196.80,196.80,'D',196.80,0.00,0.00,36.80,0.00,1.000000,0,0,'A','');
20210319 17:36 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=160.0000,tot_desconto=0.0000,tot_liquido=160.0000,tot_iva=36.8000,tot_valor=196.8000,val_pago=0.0000,val_pend=196.8000,suj_valor0=160.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=36.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:36 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='1020',designacao='UltraMF 10-źleo/Emb.20Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:36 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:36 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='1020',designacao='UltraMF 10-źleo/Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:36 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=196.80,pendente=196.80,deb_cred='D',debito=196.80,credito=0.00,acumulado=0.00,val_iva=36.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:36 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=160.0000,tot_desconto=0.0000,tot_liquido=160.0000,tot_iva=36.8000,tot_valor=196.8000,val_pago=0.0000,val_pend=196.8000,suj_valor0=160.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=36.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:37 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='1020',designacao='UltraMF 10-źleo/Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=168.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=403.44,pendente=403.44,deb_cred='D',debito=403.44,credito=0.00,acumulado=0.00,val_iva=75.44,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:37 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.0000,tot_desconto=0.0000,tot_liquido=328.0000,tot_iva=75.4400,tot_valor=403.4400,val_pago=0.0000,val_pend=403.4400,suj_valor0=328.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=75.4400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=403.44,pendente=403.44,deb_cred='D',debito=403.44,credito=0.00,acumulado=0.00,val_iva=75.44,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:37 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.0000,tot_desconto=0.0000,tot_liquido=328.0000,tot_iva=75.4400,tot_valor=403.4400,val_pago=0.0000,val_pend=403.4400,suj_valor0=328.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=75.4400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:37 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.0000,tot_desconto=0.0000,tot_liquido=328.0000,tot_iva=75.4400,tot_valor=403.4400,val_pago=0.0000,val_pend=403.4400,suj_valor0=328.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=75.4400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:37 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:37 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,16,'1020','UltraMF 10-źleo/Emb.20Lt',8.00,0.00,'FA',17,20210319000000,0.00,'');
20210319 17:38 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='1020',designacao='',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=168.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=403.44,pendente=403.44,deb_cred='D',debito=403.44,credito=0.00,acumulado=0.00,val_iva=75.44,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:38 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.0000,tot_desconto=0.0000,tot_liquido=328.0000,tot_iva=75.4400,tot_valor=403.4400,val_pago=0.0000,val_pend=403.4400,suj_valor0=328.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=75.4400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:38 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-3678360220357418800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:38 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='',designacao='',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=168.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=403.44,pendente=403.44,deb_cred='D',debito=403.44,credito=0.00,acumulado=0.00,val_iva=75.44,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:38 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.0000,tot_desconto=0.0000,tot_liquido=328.0000,tot_iva=75.4400,tot_valor=403.4400,val_pago=0.0000,val_pend=403.4400,suj_valor0=328.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=75.4400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:38 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=8.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=196.80,pendente=196.80,deb_cred='D',debito=196.80,credito=0.00,acumulado=0.00,val_iva=36.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:38 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=160.0000,tot_desconto=0.0000,tot_liquido=160.0000,tot_iva=36.8000,tot_valor=196.8000,val_pago=0.0000,val_pend=196.8000,suj_valor0=160.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=36.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:38 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=196.80,pendente=196.80,deb_cred='D',debito=196.80,credito=0.00,acumulado=0.00,val_iva=36.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:38 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=160.0000,tot_desconto=0.0000,tot_liquido=160.0000,tot_iva=36.8000,tot_valor=196.8000,val_pago=0.0000,val_pend=196.8000,suj_valor0=160.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=36.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:38 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=17,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=40 LIMIT 1;
20210319 17:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=196.80,pendente=196.80,deb_cred='D',debito=196.80,credito=0.00,acumulado=0.00,val_iva=36.80,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:38 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=160.0000,tot_desconto=0.0000,tot_liquido=160.0000,tot_iva=36.8000,tot_valor=196.8000,val_pago=0.0000,val_pend=196.8000,suj_valor0=160.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=36.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:39 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:39 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:39 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:39 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,40,0,17,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210319 17:39 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:39 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=17,codigo='1020',designacao='UltraMF 10-źleo/Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=168.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=37 LIMIT 1;
20210319 17:39 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='D',debito=206.64,credito=0.00,acumulado=0.00,val_iva=38.64,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:39 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:39 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='D',debito=206.64,credito=0.00,acumulado=0.00,val_iva=38.64,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:39 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210319 17:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210319 17:42 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210319 17:45 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210319 17:45 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210319 17:49 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,18,0,'',0,0,'',20210319000000,20210319000000,20000101174900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210319 17:49 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210319 17:49 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='D',debito=206.64,credito=0.00,acumulado=0.00,val_iva=38.64,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210319 17:49 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1020',codigo2='1020',designacao_1='UltraMF 10-źleo/Emb.20Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=35 LIMIT 1;
20210319 17:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210319 17:49 UPDATE documento_d2 SET convertido='0' WHERE no_doc='17' and serdoc='A' 
20210322 09:05 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210322 09:06 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'22','22','Fortex/S-Desf(Emb.22kl)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',1254455029042442700000000000000000000000000000.0000000,'0.00','0.00','0','0.00','0.00','');
20210322 09:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='22',codigo2='22',designacao_1='Fortex/S-Desf(Emb.22kl)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=1254455029042442700000000000000000000000000000.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=36 LIMIT 1;
20210322 09:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='22',codigo2='22',designacao_1='Fortex/S-Desf(Emb.22kl)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-167708704870730120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=36 LIMIT 1;
20210322 09:06 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,18,'22','Fortex/S-Desf(Emb.22kl)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210322 09:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='22',codigo2='22',designacao_1='Fortex/S-Desf(Emb.22kl)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-22.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=36 LIMIT 1;
20210322 09:06 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=18,codigo='22',designacao='Fortex/S-Desf(Emb.22kl)',unidade='',com_iva='',quantidade=22.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=45 LIMIT 1;
20210322 09:06 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210322 09:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='22',codigo2='22',designacao_1='Fortex/S-Desf(Emb.22kl)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-22.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-167708704870730120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=36 LIMIT 1;
20210322 09:06 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=18,codigo='22',designacao='Fortex/S-Desf(Emb.22kl)',unidade='',com_iva='',quantidade=22.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=132.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=45 LIMIT 1;
20210322 09:07 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',18,20210319000000,20210319000000,'','',162.36,162.36,'D',162.36,0.00,0.00,30.36,0.00,1.000000,1,0,'A','');
20210322 09:07 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210322 09:07 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,18,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210322 09:09 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'30','30','Persisc.LIN/S-Lav.L(Emb.30Lt)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',69363024796804696000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','0','0.00','0.00','');
20210322 09:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='30',codigo2='30',designacao_1='Persisc.LIN/S-Lav.L(Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=37 LIMIT 1;
20210322 09:09 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=18,codigo='30',designacao='Persisc.LIN/S-Lav.L(Emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=46 LIMIT 1;
20210322 09:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='30',codigo2='30',designacao_1='Persisc.LIN/S-Lav.L(Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-167709024205179640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=37 LIMIT 1;
20210322 09:10 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=18,codigo='30',designacao='Persisc.LIN/S-Lav.L(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=46 LIMIT 1;
20210322 09:10 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=18,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=162.36,pendente=162.36,deb_cred='D',debito=162.36,credito=0.00,acumulado=0.00,val_iva=30.36,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210322 09:10 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210322 09:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='30',codigo2='30',designacao_1='Persisc.LIN/S-Lav.L(Emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210319000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-599027351805937730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=37 LIMIT 1;
20210322 09:10 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=18,codigo='30',designacao='Persisc.LIN/S-Lav.L(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=46 LIMIT 1;
20210322 09:10 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=18,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='D',debito=346.86,credito=0.00,acumulado=0.00,val_iva=64.86,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210322 09:10 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=282.0000,tot_desconto=0.0000,tot_liquido=282.0000,tot_iva=64.8600,tot_valor=346.8600,val_pago=0.0000,val_pend=346.8600,suj_valor0=282.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=64.8600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210322 09:10 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=18,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='D',debito=346.86,credito=0.00,acumulado=0.00,val_iva=64.86,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210322 09:10 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=282.0000,tot_desconto=0.0000,tot_liquido=282.0000,tot_iva=64.8600,tot_valor=346.8600,val_pago=0.0000,val_pend=346.8600,suj_valor0=282.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=64.8600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210322 09:10 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=18,d_doc=20210319000000,d_venc=20210319000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='D',debito=346.86,credito=0.00,acumulado=0.00,val_iva=64.86,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210322 09:10 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=282.0000,tot_desconto=0.0000,tot_liquido=282.0000,tot_iva=64.8600,tot_valor=346.8600,val_pago=0.0000,val_pend=346.8600,suj_valor0=282.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=64.8600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210331 11:54 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,15,0,6,'22','Fortex/S-Desf(Emb.22kl)',6.00,0.00,'FA',18,20210319000000,0.00,'');
20210331 11:54 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,20,0,6,'30','Persisc.LIN/S-Lav.L(Emb.30Lt)',5.00,0.00,'FA',18,20210319000000,0.00,'');
20210401 11:59 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'R',1,'Recibo',10,20210301000000,20210301000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 11:59 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101095600,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210401 12:00 UPDATE documento_d2 SET linhas=0,no_doc=12,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101092000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=236.1600,val_pend=0.0000,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=12 LIMIT 1;
20210401 12:00 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,10,'D',2,'N/ Fatura',12,20210301000000,20210301000000,'','D',236.16,236.16,236.16,0.000,0.00,236.16,0.00,0.00,0,'A',192.00,44.16,236.16,192.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,44.16,0.00,0.00,0.00,0,'');
20210401 12:00 UPDATE reciboslinhas01 SET linha=5,cor=0,no=10,doc_mov='D',tp=2,document='N/ Fatura',n_doc=12,d_doc=20210301000000,d_venc=20210301000000,ref='',deb_cred='D',val_doc=236.16,val_pend=236.16,val_liqu=236.16,per_desc=0.000,val_desc=0.00,val_rec=236.16,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=192.00,tot_iva=44.16,tot_valor=236.16,suj_valor0=192.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=44.16,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=23 LIMIT 1;
20210401 12:00 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=27 LIMIT 1;
20210401 12:00 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101095600,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=236.1600,tot_desconto=0.0000,tot_liquido=236.1600,tot_iva=0.0000,tot_valor=236.1600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210401 12:00 UPDATE historico_contas_correntes_clientes SET linha_f=15,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=10,d_doc=20210301000000,d_venc=20210301000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=27 LIMIT 1;
20210401 12:00 UPDATE documento_r1 SET linhas=0,no_doc=10,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210301000000,d_venc=20210301000000,h_doc=20000101095600,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=236.1600,tot_desconto=0.0000,tot_liquido=236.1600,tot_iva=0.0000,tot_valor=236.1600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210301000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210401 12:03 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,11,0,'',0,0,'',20210401000000,00000000000000,20000101120300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210401000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210401 12:03 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'R',1,'Recibo',11,20210401000000,20210401000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 12:03 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120300,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210401 12:03 UPDATE documento_d2 SET linhas=0,no_doc=13,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210304000000,d_venc=20210304000000,h_doc=20000101173400,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=211.0000,tot_desconto=0.0000,tot_liquido=211.0000,tot_iva=48.5300,tot_valor=259.5300,val_pago=259.5300,val_pend=0.0000,suj_valor0=211.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.5300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=13 LIMIT 1;
20210401 12:03 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,11,'D',2,'N/ Fatura',13,20210304000000,20210304000000,'','D',259.53,259.53,259.53,0.000,0.00,259.53,0.00,0.00,0,'A',211.00,48.53,259.53,211.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,48.53,0.00,0.00,0.00,0,'');
20210401 12:03 UPDATE reciboslinhas01 SET linha=5,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',n_doc=13,d_doc=20210304000000,d_venc=20210304000000,ref='',deb_cred='D',val_doc=259.53,val_pend=259.53,val_liqu=259.53,per_desc=0.000,val_desc=0.00,val_rec=259.53,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=211.00,tot_iva=48.53,tot_valor=259.53,suj_valor0=211.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=48.53,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=24 LIMIT 1;
20210401 12:03 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=259.53,pendente=259.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=28 LIMIT 1;
20210401 12:03 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120300,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=259.5300,tot_desconto=0.0000,tot_liquido=259.5300,tot_iva=0.0000,tot_valor=259.5300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210401 12:03 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=11,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=259.53,pendente=259.53,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=28 LIMIT 1;
20210401 12:03 UPDATE documento_r1 SET linhas=0,no_doc=11,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120300,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=259.5300,tot_desconto=0.0000,tot_liquido=259.5300,tot_iva=0.0000,tot_valor=259.5300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210401 12:06 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,12,0,'',0,0,'',20210401000000,00000000000000,20000101120600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210401000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210401 12:06 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,15,'R',1,'Recibo',12,20210401000000,20210401000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 12:06 UPDATE documento_r1 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120600,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210401 12:06 UPDATE documento_d2 SET linhas=0,no_doc=14,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210310000000,d_venc=20210310000000,h_doc=20000101113100,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=184.5000,val_pend=0.0000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=14 LIMIT 1;
20210401 12:06 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,12,'D',2,'N/ Fatura',14,20210310000000,20210310000000,'','D',184.50,184.50,184.50,0.000,0.00,184.50,0.00,0.00,0,'A',150.00,34.50,184.50,150.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,34.50,0.00,0.00,0.00,0,'');
20210401 12:06 UPDATE reciboslinhas01 SET linha=5,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',n_doc=14,d_doc=20210310000000,d_venc=20210310000000,ref='',deb_cred='D',val_doc=184.50,val_pend=184.50,val_liqu=184.50,per_desc=0.000,val_desc=0.00,val_rec=184.50,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=150.00,tot_iva=34.50,tot_valor=184.50,suj_valor0=150.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=34.50,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=25 LIMIT 1;
20210401 12:06 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=15,doc_mov='R',tp=1,document='Recibo',no_doc=12,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=184.50,pendente=184.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=29 LIMIT 1;
20210401 12:06 UPDATE documento_r1 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120600,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=184.5000,tot_desconto=0.0000,tot_liquido=184.5000,tot_iva=0.0000,tot_valor=184.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210401 12:06 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=15,doc_mov='R',tp=1,document='Recibo',no_doc=12,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=184.50,pendente=184.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=29 LIMIT 1;
20210401 12:06 UPDATE documento_r1 SET linhas=0,no_doc=12,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120600,no_cf=15,nome_cf='FRANCISCO & NOBRE',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=184.5000,tot_desconto=0.0000,tot_liquido=184.5000,tot_iva=0.0000,tot_valor=184.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210401 12:09 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,13,0,'',0,0,'',20210401000000,00000000000000,20000101120900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210401000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210401 12:10 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'R',1,'Recibo',13,20210401000000,20210401000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 12:10 UPDATE documento_r1 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210401 12:10 UPDATE documento_d2 SET linhas=0,no_doc=18,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101174900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=282.0000,tot_desconto=0.0000,tot_liquido=282.0000,tot_iva=64.8600,tot_valor=346.8600,val_pago=346.8600,val_pend=0.0000,suj_valor0=282.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=64.8600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210401 12:10 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,13,'D',2,'N/ Fatura',18,20210319000000,20210319000000,'','D',346.86,346.86,346.86,0.000,0.00,346.86,0.00,0.00,0,'A',282.00,64.86,346.86,282.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,64.86,0.00,0.00,0.00,0,'');
20210401 12:10 UPDATE reciboslinhas01 SET linha=5,cor=0,no=13,doc_mov='D',tp=2,document='N/ Fatura',n_doc=18,d_doc=20210319000000,d_venc=20210319000000,ref='',deb_cred='D',val_doc=346.86,val_pend=346.86,val_liqu=346.86,per_desc=0.000,val_desc=0.00,val_rec=346.86,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=282.00,tot_iva=64.86,tot_valor=346.86,suj_valor0=282.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=64.86,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=26 LIMIT 1;
20210401 12:10 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=13,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=30 LIMIT 1;
20210401 12:10 UPDATE documento_r1 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=346.8600,tot_desconto=0.0000,tot_liquido=346.8600,tot_iva=0.0000,tot_valor=346.8600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210401 12:10 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=13,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=30 LIMIT 1;
20210401 12:10 UPDATE documento_r1 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=346.8600,tot_desconto=0.0000,tot_liquido=346.8600,tot_iva=0.0000,tot_valor=346.8600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210401 12:10 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=13,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=30 LIMIT 1;
20210401 12:10 UPDATE documento_r1 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=346.8600,tot_desconto=0.0000,tot_liquido=346.8600,tot_iva=0.0000,tot_valor=346.8600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210401 12:10 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=13,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=346.86,pendente=346.86,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=30 LIMIT 1;
20210401 12:10 UPDATE documento_r1 SET linhas=0,no_doc=13,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101120900,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=346.8600,tot_desconto=0.0000,tot_liquido=346.8600,tot_iva=0.0000,tot_valor=346.8600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=18 LIMIT 1;
20210401 12:16 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,14,0,'',0,0,'',20210401000000,00000000000000,20000101121600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210401000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210401 12:16 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,13,'R',1,'Recibo',14,20210401000000,20210401000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 12:16 UPDATE documento_r1 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121600,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210401 12:16 UPDATE documento_d2 SET linhas=0,no_doc=15,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101071800,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=206.6400,val_pend=0.0000,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=15 LIMIT 1;
20210401 12:16 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,14,'D',2,'N/ Fatura',15,20210312000000,20210312000000,'','D',206.64,206.64,206.64,0.000,0.00,206.64,0.00,0.00,0,'A',168.00,38.64,206.64,168.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,38.64,0.00,0.00,0.00,0,'');
20210401 12:16 UPDATE reciboslinhas01 SET linha=5,cor=0,no=14,doc_mov='D',tp=2,document='N/ Fatura',n_doc=15,d_doc=20210312000000,d_venc=20210312000000,ref='',deb_cred='D',val_doc=206.64,val_pend=206.64,val_liqu=206.64,per_desc=0.000,val_desc=0.00,val_rec=206.64,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=168.00,tot_iva=38.64,tot_valor=206.64,suj_valor0=168.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=38.64,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=27 LIMIT 1;
20210401 12:16 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=13,doc_mov='R',tp=1,document='Recibo',no_doc=14,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=31 LIMIT 1;
20210401 12:16 UPDATE documento_r1 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121600,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.6400,tot_desconto=0.0000,tot_liquido=206.6400,tot_iva=0.0000,tot_valor=206.6400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210401 12:16 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=13,doc_mov='R',tp=1,document='Recibo',no_doc=14,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=31 LIMIT 1;
20210401 12:16 UPDATE documento_r1 SET linhas=0,no_doc=14,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121600,no_cf=13,nome_cf='JOLISNATE - F†BRICA DE CONFEC€™ES Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.6400,tot_desconto=0.0000,tot_liquido=206.6400,tot_iva=0.0000,tot_valor=206.6400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210401 12:18 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,15,0,'',0,0,'',20210401000000,00000000000000,20000101121800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210401000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210401 12:18 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,14,'R',1,'Recibo',15,20210401000000,20210401000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 12:18 UPDATE documento_r1 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121800,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210401 12:18 UPDATE documento_d2 SET linhas=0,no_doc=16,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210312000000,d_venc=20210312000000,h_doc=20000101072300,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=172.5000,tot_desconto=0.0000,tot_liquido=172.5000,tot_iva=39.6800,tot_valor=212.1800,val_pago=212.1800,val_pend=0.0000,suj_valor0=172.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.6800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=16 LIMIT 1;
20210401 12:18 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,15,'D',2,'N/ Fatura',16,20210312000000,20210312000000,'','D',212.18,212.18,212.18,0.000,0.00,212.18,0.00,0.00,0,'A',172.50,39.68,212.18,172.50,0.00,0.00,0.00,23.00,13.00,6.00,0.00,39.68,0.00,0.00,0.00,0,'');
20210401 12:18 UPDATE reciboslinhas01 SET linha=5,cor=0,no=15,doc_mov='D',tp=2,document='N/ Fatura',n_doc=16,d_doc=20210312000000,d_venc=20210312000000,ref='',deb_cred='D',val_doc=212.18,val_pend=212.18,val_liqu=212.18,per_desc=0.000,val_desc=0.00,val_rec=212.18,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=172.50,tot_iva=39.68,tot_valor=212.18,suj_valor0=172.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=39.68,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=28 LIMIT 1;
20210401 12:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=14,doc_mov='R',tp=1,document='Recibo',no_doc=15,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=212.18,pendente=212.18,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=32 LIMIT 1;
20210401 12:18 UPDATE documento_r1 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121800,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=212.1800,tot_desconto=0.0000,tot_liquido=212.1800,tot_iva=0.0000,tot_valor=212.1800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210401 12:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=14,doc_mov='R',tp=1,document='Recibo',no_doc=15,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=212.18,pendente=212.18,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=32 LIMIT 1;
20210401 12:18 UPDATE documento_r1 SET linhas=0,no_doc=15,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121800,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=212.1800,tot_desconto=0.0000,tot_liquido=212.1800,tot_iva=0.0000,tot_valor=212.1800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210401 12:19 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,16,0,'',0,0,'',20210401000000,00000000000000,20000101121900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210401000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210401 12:20 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,16,'R',1,'Recibo',16,20210401000000,20210401000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210401 12:20 UPDATE documento_r1 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121900,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210401 12:20 UPDATE documento_d2 SET linhas=0,no_doc=17,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210319000000,d_venc=20210319000000,h_doc=20000101173300,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=206.6400,val_pend=0.0000,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=17 LIMIT 1;
20210401 12:20 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,16,'D',2,'N/ Fatura',17,20210319000000,20210319000000,'','D',206.64,206.64,206.64,0.000,0.00,206.64,0.00,0.00,0,'A',168.00,38.64,206.64,168.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,38.64,0.00,0.00,0.00,0,'');
20210401 12:20 UPDATE reciboslinhas01 SET linha=5,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',n_doc=17,d_doc=20210319000000,d_venc=20210319000000,ref='',deb_cred='D',val_doc=206.64,val_pend=206.64,val_liqu=206.64,per_desc=0.000,val_desc=0.00,val_rec=206.64,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=168.00,tot_iva=38.64,tot_valor=206.64,suj_valor0=168.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=38.64,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=29 LIMIT 1;
20210401 12:20 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='R',tp=1,document='Recibo',no_doc=16,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=33 LIMIT 1;
20210401 12:20 UPDATE documento_r1 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121900,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.6400,tot_desconto=0.0000,tot_liquido=206.6400,tot_iva=0.0000,tot_valor=206.6400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210401 12:20 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='R',tp=1,document='Recibo',no_doc=16,d_doc=20210401000000,d_venc=20210401000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=33 LIMIT 1;
20210401 12:20 UPDATE documento_r1 SET linhas=0,no_doc=16,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210401000000,d_venc=20210401000000,h_doc=20000101121900,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.6400,tot_desconto=0.0000,tot_liquido=206.6400,tot_iva=0.0000,tot_valor=206.6400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210401000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 13:56 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,17,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210412 14:03 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-583','','','');
20210412 14:04 UPDATE codigos_postais SET codigo='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',rsv='' WHERE IDX=27 LIMIT 1;
20210412 14:04 UPDATE codigos_postais SET codigo='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',rsv='' WHERE IDX=27 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=17,nome_1='Bernardino Teixeira&Ca.,Soc. Const.Lda',nome_2='',morada='Trv. de Sto Amaro N§ 67',localidade='QuinchĆes-Fafe',cod_post='4820-583',concelho='QuinchĆes-Fafe',distrito='Fafe',zona='',n_pais=0,pais='',contribuinte='505 138 026',telefone='253 597 882',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@bernardinoteixeira.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Eng.JoĆo(913 875 146)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=21 LIMIT 1;
20210412 14:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,18,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210412 14:12 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4870-129','','','');
20210412 14:13 UPDATE codigos_postais SET codigo='4870-129',concelho='Ribeira de Pena',distrito='Ribeira de Pena',rsv='' WHERE IDX=28 LIMIT 1;
20210412 14:13 UPDATE codigos_postais SET codigo='4870-129',concelho='Ribeira de Pena',distrito='Ribeira de Pena',rsv='' WHERE IDX=28 LIMIT 1;
20210412 14:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=18,nome_1='Ferriforte-Miguel Brites Marta,Unip.Lda',nome_2='',morada='Zona Industrial 18- Portela de Santa Eul lia',localidade='RIBEIRA de PENA',cod_post='4870-129',concelho='Ribeira de Pena',distrito='Ribeira de Pena',zona='',n_pais=0,pais='',contribuinte='514 347 414',telefone='259 494 582',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='ferriforte@hotmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20210412 14:16 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=18,nome_1='Ferriforte-Miguel Brites Marta,Unip.Lda',nome_2='',morada='Zona Industrial 18- Portela de Santa Eul lia',localidade='RIBEIRA de PENA',cod_post='4870-129',concelho='Ribeira de Pena',distrito='Ribeira de Pena',zona='',n_pais=0,pais='',contribuinte='514 347 414',telefone='259 494 582',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='ferriforte@hotmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr.Miguel (936 905 416)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=22 LIMIT 1;
20210412 14:19 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,19,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210412 14:21 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-277','','','');
20210412 14:22 UPDATE codigos_postais SET codigo='4860-277',concelho='PEDRA€A',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=29 LIMIT 1;
20210412 14:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=19,nome_1='GASPAR RIBEIRO MESQUITA',nome_2='',morada='Carrapata',localidade='Pedra‡a- Cabeceiras de Basto',cod_post='4860-277',concelho='PEDRA€A',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='219 250 294',telefone='965878761',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=23 LIMIT 1;
20210412 14:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=19,nome_1='GASPAR RIBEIRO MESQUITA',nome_2='',morada='Carrapata',localidade='Pedra‡a- Cabeceiras de Basto',cod_post='4860-277',concelho='PEDRA€A',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='219 250 294',telefone='965878761',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=23 LIMIT 1;
20210412 14:23 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,20,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210412 14:26 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-272','','','');
20210412 14:27 UPDATE codigos_postais SET codigo='4860-272',concelho='Pedra‡a',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=30 LIMIT 1;
20210412 14:27 UPDATE codigos_postais SET codigo='4860-272',concelho='Pedra‡a',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=30 LIMIT 1;
20210412 14:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=20,nome_1='Sociedade de Madeiras Leite, Lda',nome_2='',morada='Boadela',localidade='Pedra‡a - Cabeceiras de Basto',cod_post='4860-272',concelho='Pedra‡a',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='504 850 032',telefone='253 662 170',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Miguel(967843175)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=24 LIMIT 1;
20210412 14:28 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=20,nome_1='Sociedade de Madeiras Leite, Lda',nome_2='',morada='Boadela',localidade='Pedra‡a - Cabeceiras de Basto',cod_post='4860-272',concelho='Pedra‡a',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='504 850 032',telefone='253 662 170',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Miguel(967843175)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=24 LIMIT 1;
20210412 14:29 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,21,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210412 14:34 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4805-157','','','');
20210412 14:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=21,nome_1='CARLOS MANUEL LOPES',nome_2='',morada='Rua de Santa Marta, n§ 1757- Caldelas',localidade='Caldas das Taipas-GuimarĆes',cod_post='4805-157',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='180 156 357',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=25 LIMIT 1;
20210412 14:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=21,nome_1='CARLOS MANUEL LOPES',nome_2='',morada='Rua de Santa Marta, n§ 1757- Caldelas',localidade='Caldas das Taipas-GuimarĆes',cod_post='4805-157',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='180 156 357',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=25 LIMIT 1;
20210412 14:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=21,nome_1='CARLOS MANUEL LOPES',nome_2='',morada='Rua de Santa Marta, n§ 1757- Caldelas',localidade='Caldas das Taipas-GuimarĆes',cod_post='4805-157',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='180 156 357',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=25 LIMIT 1;
20210412 14:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=21,nome_1='CARLOS MANUEL LOPES',nome_2='',morada='Rua de Santa Marta, n§ 1757- Caldelas',localidade='Caldas das Taipas-GuimarĆes',cod_post='4805-157',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='180 156 357',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=25 LIMIT 1;
20210412 14:38 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=21,nome_1='CARLOS MANUEL LOPES MARTINHO',nome_2='',morada='Rua de Santa Marta, n§ 1757- Caldelas',localidade='Caldas das Taipas-GuimarĆes',cod_post='4805-157',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='180 156 357',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=25 LIMIT 1;
20210412 14:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=21,nome_1='CARLOS MANUEL LOPES MARTINHO',nome_2='',morada='Rua de Santa Marta, n§ 1757- Caldelas',localidade='Caldas das Taipas-GuimarĆes',cod_post='4805-157',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='180 156 357',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=25 LIMIT 1;
20210412 21:00 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,19,0,'',0,0,'',20210412000000,20210412000000,20000101210000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210412 21:00 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:01 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-11.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:01 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,19,'110','CS33/DESG.Emb.10Lt','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210412 21:01 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=19,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb30L)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=47 LIMIT 1;
20210412 21:02 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3010.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=19,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb30L)',unidade='',com_iva='',quantidade=3000.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=47 LIMIT 1;
20210412 21:02 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=19,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb30L)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=47 LIMIT 1;
20210412 21:02 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:02 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-40.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=19,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb30L)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=47 LIMIT 1;
20210412 21:02 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,19,'D',2,'N/ Fatura',19,20210412000000,20210412000000,'','',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,0,0,'A','');
20210412 21:02 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,19,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210412 21:03 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'LMS','LMS','LMS(SOLV)-Emb30Lt','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210412 21:03 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:04 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=19,codigo='LMS',designacao='LMS(SOLV)-Emb30Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=48 LIMIT 1;
20210412 21:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='D',tp=2,document='N/ Fatura',no_doc=19,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210412 21:04 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:04 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=19,codigo='LMS',designacao='LMS(SOLV)-Emb30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=48 LIMIT 1;
20210412 21:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='D',tp=2,document='N/ Fatura',no_doc=19,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210412 21:04 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:04 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=19,codigo='LMS',designacao='LMS(SOLV)-Emb30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=8.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=240.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=48 LIMIT 1;
20210412 21:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='D',tp=2,document='N/ Fatura',no_doc=19,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210412 21:04 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='D',tp=2,document='N/ Fatura',no_doc=19,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210412 21:04 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='D',tp=2,document='N/ Fatura',no_doc=19,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210412 21:04 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210412 21:08 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,20,0,'',0,0,'',20210412000000,20210412000000,20000101210800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210412 21:09 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:09 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-41.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:09 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,20,'110','CS33/DESG.Emb.10Lt','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210412 21:09 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:09 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=20,codigo='110',designacao='CS33/DESG.(Emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=49 LIMIT 1;
20210412 21:09 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:10 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=20,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=49 LIMIT 1;
20210412 21:10 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-70.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:10 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=20,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=49 LIMIT 1;
20210412 21:10 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='110',codigo2='110',designacao_1='CS33/DESG.Emb.10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-70.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=26 LIMIT 1;
20210412 21:10 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=20,codigo='110',designacao='CS33/DS.QUIM/ESP(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=49 LIMIT 1;
20210412 21:10 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,20,'D',2,'N/ Fatura',20,20210412000000,20210412000000,'','',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,0,0,'A','');
20210412 21:10 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:10 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,20,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210412 21:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-31.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:10 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=20,codigo='LMS',designacao='LMS(SOLV)-Emb30Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=50 LIMIT 1;
20210412 21:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:10 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=20,codigo='LMS',designacao='LMS(SOLV)-Emb30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=50 LIMIT 1;
20210412 21:10 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210412 21:10 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:10 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='LMS',codigo2='LMS',designacao_1='LMS(SOLV)-Emb30Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210412000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=38 LIMIT 1;
20210412 21:10 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=20,codigo='LMS',designacao='LMS(SOLV)-Emb30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=8.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=240.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=50 LIMIT 1;
20210412 21:11 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210412 21:11 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,20,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210412 21:11 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=20,codigo='',designacao='Oferta/2 Pulv.',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=51 LIMIT 1;
20210412 21:11 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210412 21:11 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210412 21:12 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210412 21:12 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210412 21:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210412 21:12 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210414 21:48 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,21,0,'',0,0,'',20210414000000,20210414000000,20000101214800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210414 21:49 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,21,'','Euro 100(Resina)-Emb.15Kg','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210414 21:50 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:50 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=21,codigo='',designacao='Euro 100(Resina)-Emb.15Kg',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=52 LIMIT 1;
20210414 21:50 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:50 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:51 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'15','15','Euro100(Resina)Emb.15Kg','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210414 21:51 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1032','1032','','','',0,'','','',0.0000000,0.0000000,0.0000000,0,0.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'','',0.0000,'','',0,0,0,'',0,'',0.0000000,'0','0','0','0','0','');
20210414 21:51 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='15',codigo2='15',designacao_1='Euro100(Resina)Emb.15Kg',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210415000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=39 LIMIT 1;
20210414 21:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=21,codigo='15',designacao='Euro100(Resina)Emb.15Kg',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=52 LIMIT 1;
20210414 21:51 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:52 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='15',codigo2='15',designacao_1='Euro100(Resina)Emb.15Kg',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210415000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=39 LIMIT 1;
20210414 21:52 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=21,codigo='15',designacao='Euro100(Resina)Emb.15Kg',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=52 LIMIT 1;
20210414 21:52 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:52 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=21,codigo='15',designacao='Euro100(Resina)Emb.15Kg',unidade='',com_iva='',quantidade=0.000000,preco_unit=14.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=52 LIMIT 1;
20210414 21:52 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:52 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='15',codigo2='15',designacao_1='Euro100(Resina)Emb.15Kg',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210415000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=39 LIMIT 1;
20210414 21:52 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=21,codigo='15',designacao='Euro100(Resina)Emb.15Kg',unidade='',com_iva='',quantidade=30.000000,preco_unit=14.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=420.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=52 LIMIT 1;
20210414 21:52 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,17,'D',2,'N/ Fatura',21,20210415000000,20210415000000,'','Eng.JoĆo(913 875 146)',516.60,516.60,'D',516.60,0.00,0.00,96.60,0.00,1.000000,0,0,'A','');
20210414 21:52 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=21,d_doc=20210415000000,d_venc=20210415000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210414 21:52 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210414 21:52 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=21,d_doc=20210415000000,d_venc=20210415000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210414 21:52 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210417 16:37 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,22,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210417 16:42 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4850-542','','','');
20210417 16:43 UPDATE codigos_postais SET codigo='4850-542',concelho='Vieira do Minho',distrito='VIEIRA DO MINHO',rsv='' WHERE IDX=32 LIMIT 1;
20210417 16:45 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=22,nome_1='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',nome_2='',morada='Travessa Entre as Devezas, n§ 140',localidade='Vieira do Minho',cod_post='4850-542',concelho='Vieira do Minho',distrito='VIEIRA DO MINHO',zona='',n_pais=0,pais='',contribuinte='503 617 555',telefone='253 648 986',fax='253 648 986',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@serralhariavieirense.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Luis (935 877 274)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=26 LIMIT 1;
20210417 16:45 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,23,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210417 16:45 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=23,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=27 LIMIT 1;
20210417 16:49 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-313','','','');
20210417 16:50 UPDATE codigos_postais SET codigo='4860-313',concelho='REFOJOS',distrito='CABECEIRAS DE BASTO',rsv='' WHERE IDX=33 LIMIT 1;
20210417 16:52 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=23,nome_1='M.REIS CONSTRU€ŽO SEGURA, Lda',nome_2='',morada='Rua do Alto do Monte',localidade='REFOJOS- CABECEIRAS DE BASTO',cod_post='4860-313',concelho='REFOJOS',distrito='CABECEIRAS DE BASTO',zona='CABECEIRAS DE BASTO',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=27 LIMIT 1;
20210417 16:53 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=23,nome_1='M.REIS CONSTRU€ŽO SEGURA, Lda',nome_2='',morada='Rua do Alto do Monte',localidade='REFOJOS- CABECEIRAS DE BASTO',cod_post='4860-313',concelho='REFOJOS',distrito='CABECEIRAS DE BASTO',zona='CABECEIRAS DE BASTO',n_pais=0,pais='',contribuinte='513 193 324',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=27 LIMIT 1;
20210417 16:54 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,24,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210421 21:04 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,22,0,'',0,0,'',20210421000000,20210421000000,20000101210400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210421 21:05 UPDATE documento_d2 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210400,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210421 21:06 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0025','0025','Alinox/Esp.(emb.25Lt)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000001,'0.00','0.00','0','0.00','0.00','');
20210421 21:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0025',codigo2='0025',designacao_1='Alinox/Esp.(emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210421000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=10949470351199164000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=41 LIMIT 1;
20210421 21:06 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,22,'0025','Alinox/Esp.(emb.25Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0025',codigo2='0025',designacao_1='Alinox/Esp.(emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210421000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=41 LIMIT 1;
20210421 21:06 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=22,codigo='0025',designacao='Alinox/Esp.(emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=53 LIMIT 1;
20210421 21:06 UPDATE documento_d2 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210400,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210421 21:06 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0025',codigo2='0025',designacao_1='Alinox/Esp.(emb.25Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-25.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210421000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=13994055202054024000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=41 LIMIT 1;
20210421 21:06 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=22,codigo='0025',designacao='Alinox/Esp.(emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=8.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=212.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=53 LIMIT 1;
20210421 21:07 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,21,'D',2,'N/ Fatura',22,20210421000000,20210421000000,'','',261.38,261.38,'D',261.38,0.00,0.00,48.88,0.00,1.000000,0,0,'A','');
20210421 21:07 UPDATE documento_d2 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210400,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=212.5000,tot_desconto=0.0000,tot_liquido=212.5000,tot_iva=48.8800,tot_valor=261.3800,val_pago=0.0000,val_pend=261.3800,suj_valor0=212.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.8800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210421 21:07 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='D',tp=2,document='N/ Fatura',no_doc=22,d_doc=20210421000000,d_venc=20210421000000,ref='',obs='',valor=261.38,pendente=261.38,deb_cred='D',debito=261.38,credito=0.00,acumulado=0.00,val_iva=48.88,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210421 21:07 UPDATE documento_d2 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210400,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=212.5000,tot_desconto=0.0000,tot_liquido=212.5000,tot_iva=48.8800,tot_valor=261.3800,val_pago=0.0000,val_pend=261.3800,suj_valor0=212.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.8800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210421 21:07 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='D',tp=2,document='N/ Fatura',no_doc=22,d_doc=20210421000000,d_venc=20210421000000,ref='',obs='',valor=261.38,pendente=261.38,deb_cred='D',debito=261.38,credito=0.00,acumulado=0.00,val_iva=48.88,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210421 21:07 UPDATE documento_d2 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210400,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=212.5000,tot_desconto=0.0000,tot_liquido=212.5000,tot_iva=48.8800,tot_valor=261.3800,val_pago=0.0000,val_pend=261.3800,suj_valor0=212.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.8800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210421 21:09 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,23,0,'',0,0,'',20210421000000,20210421000000,20000101210900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210421 21:09 UPDATE documento_d2 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210900,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210421 21:10 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'0030','0030','Abrinox (emb.30Lt)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210421 21:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0030',codigo2='0030',designacao_1='Abrinox (emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210421000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=42 LIMIT 1;
20210421 21:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,23,'0030','Abrinox (emb.30Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0030',codigo2='0030',designacao_1='Abrinox (emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210421000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-3746454638349372900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=42 LIMIT 1;
20210421 21:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=23,codigo='0030',designacao='Abrinox (emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=54 LIMIT 1;
20210421 21:11 UPDATE documento_d2 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210900,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210421 21:11 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0030',codigo2='0030',designacao_1='Abrinox (emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210421000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=42 LIMIT 1;
20210421 21:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=23,codigo='0030',designacao='Abrinox (emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=9.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=288.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=54 LIMIT 1;
20210421 21:12 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,18,'D',2,'N/ Fatura',23,20210422000000,20210422000000,'','Sr.Miguel (936 905 416)',354.24,354.24,'D',354.24,0.00,0.00,66.24,0.00,1.000000,0,0,'A','');
20210421 21:12 UPDATE documento_d2 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101210900,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=0.0000,val_pend=354.2400,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210421 21:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='D',tp=2,document='N/ Fatura',no_doc=23,d_doc=20210422000000,d_venc=20210422000000,ref='',obs='Sr.Miguel (936 905 416)',valor=354.24,pendente=354.24,deb_cred='D',debito=354.24,credito=0.00,acumulado=0.00,val_iva=66.24,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210421 21:12 UPDATE documento_d2 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101210900,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=0.0000,val_pend=354.2400,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210421 21:12 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='D',tp=2,document='N/ Fatura',no_doc=23,d_doc=20210422000000,d_venc=20210422000000,ref='',obs='Sr.Miguel (936 905 416)',valor=354.24,pendente=354.24,deb_cred='D',debito=354.24,credito=0.00,acumulado=0.00,val_iva=66.24,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210421 21:12 UPDATE documento_d2 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101210900,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=0.0000,val_pend=354.2400,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210421 21:15 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,24,0,'',0,0,'',20210421000000,20210421000000,20000101211500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210421 21:15 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,24,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:17 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:17 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'031','031','Persiusos/A(emb.30Lt)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210421 21:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210422000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210421 21:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=24,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=55 LIMIT 1;
20210421 21:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210422000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210421 21:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=24,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=55 LIMIT 1;
20210421 21:18 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210422000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=267193425684847790000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210421 21:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=24,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=55 LIMIT 1;
20210421 21:18 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,22,'D',2,'N/ Fatura',24,20210422000000,20210422000000,'','Luis (935 877 274)',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210421 21:18 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,24,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:18 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=24,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=56 LIMIT 1;
20210421 21:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=24,d_doc=20210422000000,d_venc=20210422000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210421 21:18 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=24,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=56 LIMIT 1;
20210421 21:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,24,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,24,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:19 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,22,'D',2,'N/ Fatura',24,20210423000000,20210423000000,'','Luis (935 877 274)',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210421 21:19 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=24,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210421 21:19 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=24,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=56 LIMIT 1;
20210421 21:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=24,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210421 21:19 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,24,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,24,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210421 21:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=24,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210421 21:19 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=24,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=1.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=56 LIMIT 1;
20210421 21:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=24,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=185.73,pendente=185.73,deb_cred='D',debito=185.73,credito=0.00,acumulado=0.00,val_iva=34.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210421 21:19 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=151.0000,tot_desconto=0.0000,tot_liquido=151.0000,tot_iva=34.7300,tot_valor=185.7300,val_pago=0.0000,val_pend=185.7300,suj_valor0=151.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.7300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210421 21:20 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:21 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:22 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,22,'031','Persiusos/A(emb.30Lt)',5.00,0.00,'FA',24,20210423000000,0.00,'');
20210421 21:23 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:24 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:25 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:25 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:25 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:25 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:26 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:27 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:27 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:28 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210421 21:28 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210422 21:13 UPDATE documento_d2 SET linhas=0,no_doc=24,emitido=3,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101211500,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=151.0000,tot_desconto=0.0000,tot_liquido=151.0000,tot_iva=34.7300,tot_valor=185.7300,val_pago=0.0000,val_pend=185.7300,suj_valor0=151.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.7300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210422 21:13 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210422000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:24 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,25,0,'',0,0,'',20210422000000,20210422000000,20000101212400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210422 21:25 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=6565006217099071500000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,25,'031','Persiusos/A(emb.30Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=6565006217099071500000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=61 LIMIT 1;
20210422 21:25 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:25 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=6565006217099071500000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:25 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=61 LIMIT 1;
20210422 21:25 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,22,'D',2,'N/ Fatura',25,20210423000000,20210423000000,'','Luis (935 877 274)',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210422 21:25 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:25 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:26 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=25,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=62 LIMIT 1;
20210422 21:26 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:26 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:26 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=25,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=62 LIMIT 1;
20210422 21:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:26 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:26 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:26 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=25,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=62 LIMIT 1;
20210422 21:26 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:26 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:26 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=25,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=62 LIMIT 1;
20210422 21:26 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:26 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:26 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:26 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,40,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,45,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,50,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,55,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,60,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,65,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,70,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,75,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,80,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,85,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,90,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,95,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,100,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,105,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,110,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,115,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,120,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,125,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,130,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,135,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,140,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,145,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,150,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,155,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,160,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,165,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,170,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,175,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,180,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,185,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,190,0,25,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-31.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:27 UPDATE documento_linhas_d2 SET lnh_f=190,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=98 LIMIT 1;
20210422 21:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:27 UPDATE documento_linhas_d2 SET lnh_f=190,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=98 LIMIT 1;
20210422 21:27 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:27 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=93111047516693384000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:27 UPDATE documento_linhas_d2 SET lnh_f=190,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=98 LIMIT 1;
20210422 21:27 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=25,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=62 LIMIT 1;
20210422 21:28 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:28 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101212400,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210422 21:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210422 21:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-30.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-60.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:28 DELETE FROM documento_linhas_d2 WHERE  num_doc=25  AND  serdoc='a' 
20210422 21:28 DELETE FROM documento_linhas_d2 WHERE  num_doc=25  AND  serdoc='a' 
20210422 21:30 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,25,0,'',0,0,'',20210423000000,20210423000000,20000101213000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210422 21:30 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101213000,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210422 21:30 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101213000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210422 21:30 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-61.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:30 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,25,'031','Persiusos/A(emb.30Lt)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210422 21:30 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-90.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:30 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=99 LIMIT 1;
20210422 21:30 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101213000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210422 21:30 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-90.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210423000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210422 21:30 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=25,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=99 LIMIT 1;
20210422 21:30 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,22,'D',2,'N/ Fatura',25,20210423000000,20210423000000,'','Luis (935 877 274)',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210422 21:30 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101213000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210422 21:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',no_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210422 21:30 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101213000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210424 17:06 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,25,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210424 17:10 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4830-327','','','');
20210424 17:12 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=25,nome_1='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',nome_2='',morada='Rua dos Barreiros n§ 125',localidade='Geraz do Minho-P˘voa Lanhoso',cod_post='4830-327',concelho='',distrito='',zona='1',n_pais=0,pais='',contribuinte='510 956 335',telefone='253 634151',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='serralhariagoncalves@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Andr‚(962 058 200',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=29 LIMIT 1;
20210424 17:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=25,nome_1='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',nome_2='',morada='Rua dos Barreiros n§ 125',localidade='Geraz do Minho-P˘voa Lanhoso',cod_post='4830-327',concelho='',distrito='',zona='1',n_pais=0,pais='',contribuinte='510 956 335',telefone='253 634151',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='serralhariagoncalves@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Andr‚(962 058 200',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=29 LIMIT 1;
20210424 17:13 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,26,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210424 17:15 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4850-076','','','');
20210424 17:15 UPDATE codigos_postais SET codigo='4850-076',concelho='Fares-CantelĆes',distrito='Vieira do Minho',rsv='' WHERE IDX=35 LIMIT 1;
20210424 17:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=26,nome_1='Serralharia Javieira, Unipessoal Lda',nome_2='',morada='Fares- CantelĆs',localidade='Vieira do Minho',cod_post='4850-076',concelho='Fares-CantelĆes',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='505 941 406',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Jaime(934 520 216)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=30 LIMIT 1;
20210426 18:16 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,26,0,'',0,0,'',20210426000000,20210426000000,20000101181600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210426 18:16 UPDATE documento_d2 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210426000000,d_venc=20210426000000,h_doc=20000101181600,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210426 18:17 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,26,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210426 18:17 UPDATE documento_d2 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210426000000,d_venc=20210426000000,h_doc=20000101181600,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210426 18:17 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'1cxs(papel)','1cxs(papel)','1cxs(papel)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210426 18:17 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1cxs(papel)',codigo2='1cxs(papel)',designacao_1='1cxs(papel)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210426000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-941655432345766140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=44 LIMIT 1;
20210426 18:17 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=26,codigo='1cxs(papel)',designacao='1cxs(papel)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=100 LIMIT 1;
20210426 18:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1cxs(papel)',codigo2='1cxs(papel)',designacao_1='1cxs(papel)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210426000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-940814632793180180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=44 LIMIT 1;
20210426 18:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=26,codigo='1cxs(papel)',designacao='1cxs(papel)',unidade='',com_iva='',quantidade=3.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=100 LIMIT 1;
20210426 18:18 UPDATE documento_d2 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210426000000,d_venc=20210426000000,h_doc=20000101181600,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210426 18:18 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='1cxs(papel)',codigo2='1cxs(papel)',designacao_1='1cxs(papel)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-3.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210426000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=-940814632793180180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=44 LIMIT 1;
20210426 18:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=26,codigo='1cxs(papel)',designacao='1cxs(papel)',unidade='',com_iva='',quantidade=3.000000,preco_unit=38.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=114.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=100 LIMIT 1;
20210426 18:18 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,25,'D',2,'N/ Fatura',26,20210426000000,20210426000000,'','Andr‚(962 058 200',140.22,140.22,'D',140.22,0.00,0.00,26.22,0.00,1.000000,0,0,'A','');
20210426 18:18 UPDATE documento_d2 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210426000000,d_venc=20210426000000,h_doc=20000101181600,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=114.0000,tot_desconto=0.0000,tot_liquido=114.0000,tot_iva=26.2200,tot_valor=140.2200,val_pago=0.0000,val_pend=140.2200,suj_valor0=114.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=26.2200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210426 18:18 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=25,doc_mov='D',tp=2,document='N/ Fatura',no_doc=26,d_doc=20210426000000,d_venc=20210426000000,ref='',obs='Andr‚(962 058 200',valor=140.22,pendente=140.22,deb_cred='D',debito=140.22,credito=0.00,acumulado=0.00,val_iva=26.22,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210426 18:18 UPDATE documento_d2 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210426000000,d_venc=20210426000000,h_doc=20000101181600,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=114.0000,tot_desconto=0.0000,tot_liquido=114.0000,tot_iva=26.2200,tot_valor=140.2200,val_pago=0.0000,val_pend=140.2200,suj_valor0=114.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=26.2200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210427 21:04 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,27,0,'',0,0,'',20210427000000,20210427000000,20000101210400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210427 21:07 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210427000000,d_venc=20210427000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:07 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,27,'','Cuttinsol','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210427 21:07 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210427000000,d_venc=20210427000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:07 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210427000000,d_venc=20210427000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=27,codigo='',designacao='Cuttinsol/5(˘leo corte)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=101 LIMIT 1;
20210427 21:08 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210427000000,d_venc=20210427000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=27,codigo='',designacao='Cuttinsol/5(˘leo corte)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=101 LIMIT 1;
20210427 21:08 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210427000000,d_venc=20210427000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:08 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=27,codigo='',designacao='Cuttinsol/5(˘leo corte)',unidade='',com_iva='',quantidade=25.000000,preco_unit=5.6500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=141.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=101 LIMIT 1;
20210427 21:13 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'D',2,'N/ Fatura',27,20210428000000,20210428000000,'','',173.74,173.74,'D',173.74,0.00,0.00,32.49,0.00,1.000000,0,0,'A','');
20210427 21:13 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210428000000,d_venc=20210428000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=0.0000,val_pend=173.7400,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=27,d_doc=20210428000000,d_venc=20210428000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='D',debito=173.74,credito=0.00,acumulado=0.00,val_iva=32.49,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210427 21:13 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210428000000,d_venc=20210428000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=0.0000,val_pend=173.7400,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210427 21:13 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=27,d_doc=20210428000000,d_venc=20210428000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='D',debito=173.74,credito=0.00,acumulado=0.00,val_iva=32.49,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210427 21:13 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210428000000,d_venc=20210428000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=0.0000,val_pend=173.7400,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210428 18:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,27,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210428 18:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,28,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210428 18:07 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=28,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=32 LIMIT 1;
20210428 18:10 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-204','','','');
20210428 18:11 UPDATE codigos_postais SET codigo='4860-204',concelho='Faia-Cabeceiras de Basto',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=36 LIMIT 1;
20210428 18:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=27,nome_1='Jos‚ Leonardo M.Pereira Machado',nome_2='',morada='Travessa da Breia',localidade='Faia',cod_post='4860-204',concelho='Faia-Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='191 825 913',telefone='926603090',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Machado',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=31 LIMIT 1;
20210428 18:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=27,nome_1='Jos‚ Leonardo M.Pereira Machado',nome_2='',morada='Travessa da Breia',localidade='Faia',cod_post='4860-204',concelho='Faia-Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='191 825 913',telefone='926603090',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Machado',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=31 LIMIT 1;
20210428 18:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=27,nome_1='Jos‚ Leonardo M.Pereira Machado',nome_2='',morada='Travessa da Breia',localidade='Faia',cod_post='4860-204',concelho='Faia-Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='191 825 913',telefone='926603090',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Machado',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=31 LIMIT 1;
20210429 13:25 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,28,0,'',0,0,'',20210429000000,20210429000000,20000101132500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210429 13:25 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210429000000,d_venc=20210429000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,28,'','Persiusos/A','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210429 13:26 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210429000000,d_venc=20210429000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:26 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'20','20','20(Persiusos/A)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210429 13:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='20',codigo2='20',designacao_1='20(Persiusos/A)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=0.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=00000000000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0.00',prc_c_iva_3='0.00',marg_4='0',prc_s_iva_4='0.00',prc_c_iva_4='0.00',peso='' WHERE IDX=45 LIMIT 1;
20210429 13:26 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='20',codigo2='20',designacao_1='20(Persiusos/A)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210429000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=45 LIMIT 1;
20210429 13:26 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=28,codigo='20',designacao='20(Persiusos/A)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=102 LIMIT 1;
20210429 13:26 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210429000000,d_venc=20210429000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=28,codigo='20',designacao='(Persiusos/A)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=102 LIMIT 1;
20210429 13:27 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210429000000,d_venc=20210429000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=28,codigo='20',designacao='Persiusos/A',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=102 LIMIT 1;
20210429 13:27 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210429000000,d_venc=20210429000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='20',codigo2='20',designacao_1='20(Persiusos/A)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210429000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=45 LIMIT 1;
20210429 13:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=28,codigo='20',designacao='Persiusos/A',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=102 LIMIT 1;
20210429 13:27 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210429000000,d_venc=20210429000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:27 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='20',codigo2='20',designacao_1='20(Persiusos/A)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210429000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=45 LIMIT 1;
20210429 13:27 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=28,codigo='20',designacao='Persiusos/A',unidade='',com_iva='',quantidade=20.000000,preco_unit=6.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=102 LIMIT 1;
20210429 13:28 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,26,'D',2,'N/ Fatura',28,20210430000000,20210430000000,'','Jaime(934 520 216)',153.75,153.75,'D',153.75,0.00,0.00,28.75,0.00,1.000000,0,0,'A','');
20210429 13:28 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210430000000,d_venc=20210430000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=26,doc_mov='D',tp=2,document='N/ Fatura',no_doc=28,d_doc=20210430000000,d_venc=20210430000000,ref='',obs='Jaime(934 520 216)',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210429 13:28 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210430000000,d_venc=20210430000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 13:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=26,doc_mov='D',tp=2,document='N/ Fatura',no_doc=28,d_doc=20210430000000,d_venc=20210430000000,ref='',obs='Jaime(934 520 216)',valor=153.75,pendente=153.75,deb_cred='D',debito=153.75,credito=0.00,acumulado=0.00,val_iva=28.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210429 13:28 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210430000000,d_venc=20210430000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=0.0000,val_pend=153.7500,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210429 17:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210429 17:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210429 17:22 UPDATE documento_d2 SET convertido='0' WHERE no_doc='24' and serdoc='A' 
20210503 18:26 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,29,0,'',0,0,'',20210503000000,20210503000000,20000101182600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210503 18:27 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:28 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'35','35','35-Braval 35(Hidrofugante)','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',3444014369733183600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000000,'0.00','0.00','0','0.00','0.00','');
20210503 18:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='35',codigo2='35',designacao_1='35-Braval 35(Hidrofugante)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210503000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=46 LIMIT 1;
20210503 18:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,29,'35','35-Braval 35(Hidrofugante)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210503 18:28 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=29,codigo='35',designacao='35-Braval 35(Hidrofugante),Emb.30Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=103 LIMIT 1;
20210503 18:28 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:28 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='35',codigo2='35',designacao_1='35-Braval 35(Hidrofugante)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-150.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210503000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=46 LIMIT 1;
20210503 18:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=29,codigo='35',designacao='35-Braval 35(Hidrofugante),Emb.30Lt',unidade='',com_iva='',quantidade=150.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=103 LIMIT 1;
20210503 18:28 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:29 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='35',codigo2='35',designacao_1='35-Braval 35(Hidrofugante)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-150.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210503000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=46 LIMIT 1;
20210503 18:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=29,codigo='35',designacao='35-Braval 35(Hidrofugante),Emb.30Lt',unidade='',com_iva='',quantidade=150.000000,preco_unit=7.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=103 LIMIT 1;
20210503 18:29 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,27,'D',2,'N/ Fatura',29,20210503000000,20210503000000,'','Sr. Machado',1383.75,1383.75,'D',1383.75,0.00,0.00,258.75,0.00,1.000000,0,0,'A','');
20210503 18:29 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:29 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,29,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210503 18:30 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=29,codigo='',designacao='Braval 35(Oferta Emb)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=104 LIMIT 1;
20210503 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210503 18:30 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:30 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=29,codigo='',designacao='Braval 35(Oferta Emb)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=104 LIMIT 1;
20210503 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210503 18:30 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:30 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=29,codigo='',designacao='Braval 35(Oferta Emb)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=104 LIMIT 1;
20210503 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210503 18:30 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:30 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=29,codigo='',designacao='Braval 35(Oferta Emb)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=104 LIMIT 1;
20210503 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210503 18:30 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:31 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=29,codigo='',designacao='Braval 35(Oferta Emb)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=104 LIMIT 1;
20210503 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,29,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210503 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,29,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210503 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,29,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210503 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210503 18:31 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=29,codigo='35',designacao='Braval 35(Hidrofugante),Emb.30Lt',unidade='',com_iva='',quantidade=150.000000,preco_unit=7.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=1125.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=103 LIMIT 1;
20210503 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210503 18:31 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:32 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,27,'D',2,'N/ Fatura',29,20210504000000,20210504000000,'','Sr. Machado',1383.75,1383.75,'D',1383.75,0.00,0.00,258.75,0.00,1.000000,0,0,'A','');
20210503 18:32 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210504000000,d_venc=20210504000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:32 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',no_doc=29,d_doc=20210504000000,d_venc=20210504000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='D',debito=1383.75,credito=0.00,acumulado=0.00,val_iva=258.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210503 18:32 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210504000000,d_venc=20210504000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=0.0000,val_pend=1383.7500,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:39 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,27,'35','Braval 35(Hidrofugante),Emb.30Lt',7.50,0.00,'FA',29,20210504000000,0.00,'');
20210503 18:46 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,17,0,'',0,0,'',20210503000000,00000000000000,20000101184600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 18:47 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'R',1,'Recibo',17,20210503000000,20210503000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 18:47 UPDATE documento_r1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101184600,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210503 18:47 UPDATE documento_d2 SET linhas=0,no_doc=27,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210428000000,d_venc=20210428000000,h_doc=20000101210400,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=173.7400,val_pend=0.0000,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210503 18:47 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,17,'D',2,'N/ Fatura',27,20210428000000,20210428000000,'','D',173.74,173.74,173.74,0.000,0.00,173.74,0.00,0.00,0,'A',141.25,32.49,173.74,141.25,0.00,0.00,0.00,23.00,13.00,6.00,0.00,32.49,0.00,0.00,0.00,0,'');
20210503 18:47 UPDATE reciboslinhas01 SET linha=5,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',n_doc=27,d_doc=20210428000000,d_venc=20210428000000,ref='',deb_cred='D',val_doc=173.74,val_pend=173.74,val_liqu=173.74,per_desc=0.000,val_desc=0.00,val_rec=173.74,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=141.25,tot_iva=32.49,tot_valor=173.74,suj_valor0=141.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=32.49,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 18:47 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=17,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=44 LIMIT 1;
20210503 18:47 UPDATE documento_r1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101184600,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=173.7400,tot_desconto=0.0000,tot_liquido=173.7400,tot_iva=0.0000,tot_valor=173.7400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210503 18:48 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=17,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=44 LIMIT 1;
20210503 18:48 UPDATE documento_r1 SET linhas=0,no_doc=17,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101184600,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=173.7400,tot_desconto=0.0000,tot_liquido=173.7400,tot_iva=0.0000,tot_valor=173.7400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210503 18:49 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,18,0,'',0,0,'',20210503000000,00000000000000,20000101184900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 18:49 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,17,'R',1,'Recibo',18,20210503000000,20210503000000,'','Eng.JoĆo(913 875 146)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 18:49 UPDATE documento_r1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101184900,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210503 18:50 UPDATE documento_d2 SET linhas=0,no_doc=21,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210415000000,d_venc=20210415000000,h_doc=20000101214800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=516.6000,val_pend=0.0000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=21 LIMIT 1;
20210503 18:50 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,18,'D',2,'N/ Fatura',21,20210415000000,20210415000000,'','D',516.60,516.60,516.60,0.000,0.00,516.60,0.00,0.00,0,'A',420.00,96.60,516.60,420.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,96.60,0.00,0.00,0.00,0,'');
20210503 18:50 UPDATE reciboslinhas01 SET linha=5,cor=0,no=18,doc_mov='D',tp=2,document='N/ Fatura',n_doc=21,d_doc=20210415000000,d_venc=20210415000000,ref='',deb_cred='D',val_doc=516.60,val_pend=516.60,val_liqu=516.60,per_desc=0.000,val_desc=0.00,val_rec=516.60,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=420.00,tot_iva=96.60,tot_valor=516.60,suj_valor0=420.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=96.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=31 LIMIT 1;
20210503 18:50 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='R',tp=1,document='Recibo',no_doc=18,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=45 LIMIT 1;
20210503 18:50 UPDATE documento_r1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101184900,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210503 18:50 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='R',tp=1,document='Recibo',no_doc=18,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=45 LIMIT 1;
20210503 18:50 UPDATE documento_r1 SET linhas=0,no_doc=18,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101184900,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210503 18:52 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,19,0,'',0,0,'',20210503000000,00000000000000,20000101185200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 18:53 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,18,'R',1,'Recibo',19,20210503000000,20210503000000,'','Sr.Miguel (936 905 416)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 18:53 UPDATE documento_r1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185200,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210503 18:53 UPDATE documento_d2 SET linhas=0,no_doc=23,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210422000000,d_venc=20210422000000,h_doc=20000101210900,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=354.2400,val_pend=0.0000,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=23 LIMIT 1;
20210503 18:53 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,19,'D',2,'N/ Fatura',23,20210422000000,20210422000000,'','D',354.24,354.24,354.24,0.000,0.00,354.24,0.00,0.00,0,'A',288.00,66.24,354.24,288.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,66.24,0.00,0.00,0.00,0,'');
20210503 18:53 UPDATE reciboslinhas01 SET linha=5,cor=0,no=19,doc_mov='D',tp=2,document='N/ Fatura',n_doc=23,d_doc=20210422000000,d_venc=20210422000000,ref='',deb_cred='D',val_doc=354.24,val_pend=354.24,val_liqu=354.24,per_desc=0.000,val_desc=0.00,val_rec=354.24,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=288.00,tot_iva=66.24,tot_valor=354.24,suj_valor0=288.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=66.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=32 LIMIT 1;
20210503 18:53 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='R',tp=1,document='Recibo',no_doc=19,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr.Miguel (936 905 416)',valor=354.24,pendente=354.24,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=46 LIMIT 1;
20210503 18:53 UPDATE documento_r1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185200,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=354.2400,tot_desconto=0.0000,tot_liquido=354.2400,tot_iva=0.0000,tot_valor=354.2400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210503 18:53 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='R',tp=1,document='Recibo',no_doc=19,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr.Miguel (936 905 416)',valor=354.24,pendente=354.24,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=46 LIMIT 1;
20210503 18:53 UPDATE documento_r1 SET linhas=0,no_doc=19,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185200,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=354.2400,tot_desconto=0.0000,tot_liquido=354.2400,tot_iva=0.0000,tot_valor=354.2400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=24 LIMIT 1;
20210503 18:54 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,20,0,'',0,0,'',20210503000000,00000000000000,20000101185400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 18:55 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,19,'R',1,'Recibo',20,20210503000000,20210503000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 18:55 UPDATE documento_r1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185400,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210503 18:55 UPDATE documento_d2 SET linhas=0,no_doc=19,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210000,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=516.6000,val_pend=0.0000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=19 LIMIT 1;
20210503 18:55 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,20,'D',2,'N/ Fatura',19,20210412000000,20210412000000,'','D',516.60,516.60,516.60,0.000,0.00,516.60,0.00,0.00,0,'A',420.00,96.60,516.60,420.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,96.60,0.00,0.00,0.00,0,'');
20210503 18:55 UPDATE reciboslinhas01 SET linha=5,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',n_doc=19,d_doc=20210412000000,d_venc=20210412000000,ref='',deb_cred='D',val_doc=516.60,val_pend=516.60,val_liqu=516.60,per_desc=0.000,val_desc=0.00,val_rec=516.60,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=420.00,tot_iva=96.60,tot_valor=516.60,suj_valor0=420.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=96.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=33 LIMIT 1;
20210503 18:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='R',tp=1,document='Recibo',no_doc=20,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=47 LIMIT 1;
20210503 18:55 UPDATE documento_r1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185400,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210503 18:55 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=19,doc_mov='R',tp=1,document='Recibo',no_doc=20,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=47 LIMIT 1;
20210503 18:55 UPDATE documento_r1 SET linhas=0,no_doc=20,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185400,no_cf=19,nome_cf='GASPAR RIBEIRO MESQUITA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=25 LIMIT 1;
20210503 18:57 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,21,0,'',0,0,'',20210503000000,00000000000000,20000101185700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 18:57 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,20,'R',1,'Recibo',21,20210503000000,20210503000000,'','Sr. Miguel(967843175)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 18:57 UPDATE documento_r1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185700,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210503 18:57 UPDATE documento_d2 SET linhas=0,no_doc=20,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210412000000,d_venc=20210412000000,h_doc=20000101210800,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=516.6000,val_pend=0.0000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=20 LIMIT 1;
20210503 18:57 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,21,'D',2,'N/ Fatura',20,20210412000000,20210412000000,'','D',516.60,516.60,516.60,0.000,0.00,516.60,0.00,0.00,0,'A',420.00,96.60,516.60,420.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,96.60,0.00,0.00,0.00,0,'');
20210503 18:57 UPDATE reciboslinhas01 SET linha=5,cor=0,no=21,doc_mov='D',tp=2,document='N/ Fatura',n_doc=20,d_doc=20210412000000,d_venc=20210412000000,ref='',deb_cred='D',val_doc=516.60,val_pend=516.60,val_liqu=516.60,per_desc=0.000,val_desc=0.00,val_rec=516.60,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=420.00,tot_iva=96.60,tot_valor=516.60,suj_valor0=420.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=96.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=34 LIMIT 1;
20210503 18:57 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=21,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Miguel(967843175)',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=48 LIMIT 1;
20210503 18:57 UPDATE documento_r1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185700,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210503 18:57 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=21,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Miguel(967843175)',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=48 LIMIT 1;
20210503 18:57 UPDATE documento_r1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185700,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210503 18:58 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,22,0,'',0,0,'',20210503000000,00000000000000,20000101185800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 18:59 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,21,'R',1,'Recibo',22,20210503000000,20210503000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 18:59 UPDATE documento_r1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185800,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210503 18:59 UPDATE documento_d2 SET linhas=0,no_doc=22,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210421000000,d_venc=20210421000000,h_doc=20000101210400,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=212.5000,tot_desconto=0.0000,tot_liquido=212.5000,tot_iva=48.8800,tot_valor=261.3800,val_pago=261.3800,val_pend=0.0000,suj_valor0=212.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=48.8800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=22 LIMIT 1;
20210503 18:59 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,22,'D',2,'N/ Fatura',22,20210421000000,20210421000000,'','D',261.38,261.38,261.38,0.000,0.00,261.38,0.00,0.00,0,'A',212.50,48.88,261.38,212.50,0.00,0.00,0.00,23.00,13.00,6.00,0.00,48.88,0.00,0.00,0.00,0,'');
20210503 18:59 UPDATE reciboslinhas01 SET linha=5,cor=0,no=22,doc_mov='D',tp=2,document='N/ Fatura',n_doc=22,d_doc=20210421000000,d_venc=20210421000000,ref='',deb_cred='D',val_doc=261.38,val_pend=261.38,val_liqu=261.38,per_desc=0.000,val_desc=0.00,val_rec=261.38,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=212.50,tot_iva=48.88,tot_valor=261.38,suj_valor0=212.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=48.88,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=35 LIMIT 1;
20210503 18:59 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='R',tp=1,document='Recibo',no_doc=22,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='',valor=261.38,pendente=261.38,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=49 LIMIT 1;
20210503 18:59 UPDATE documento_r1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185800,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=261.3800,tot_desconto=0.0000,tot_liquido=261.3800,tot_iva=0.0000,tot_valor=261.3800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210503 18:59 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='R',tp=1,document='Recibo',no_doc=22,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='',valor=261.38,pendente=261.38,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=49 LIMIT 1;
20210503 18:59 UPDATE documento_r1 SET linhas=0,no_doc=22,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185800,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=261.3800,tot_desconto=0.0000,tot_liquido=261.3800,tot_iva=0.0000,tot_valor=261.3800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210503 19:00 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,23,0,'',0,0,'',20210503000000,00000000000000,20000101190000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 19:01 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,22,'R',1,'Recibo',23,20210503000000,20210503000000,'','Luis (935 877 274)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 19:01 UPDATE documento_r1 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210503 19:01 UPDATE documento_d2 SET linhas=0,no_doc=25,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210423000000,d_venc=20210423000000,h_doc=20000101213000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=184.5000,val_pend=0.0000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210503 19:01 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,23,'D',2,'N/ Fatura',25,20210423000000,20210423000000,'','D',184.50,184.50,184.50,0.000,0.00,184.50,0.00,0.00,0,'A',150.00,34.50,184.50,150.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,34.50,0.00,0.00,0.00,0,'');
20210503 19:01 UPDATE reciboslinhas01 SET linha=5,cor=0,no=23,doc_mov='D',tp=2,document='N/ Fatura',n_doc=25,d_doc=20210423000000,d_venc=20210423000000,ref='',deb_cred='D',val_doc=184.50,val_pend=184.50,val_liqu=184.50,per_desc=0.000,val_desc=0.00,val_rec=184.50,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=150.00,tot_iva=34.50,tot_valor=184.50,suj_valor0=150.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=34.50,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=36 LIMIT 1;
20210503 19:01 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='R',tp=1,document='Recibo',no_doc=23,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=50 LIMIT 1;
20210503 19:01 UPDATE documento_r1 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=184.5000,tot_desconto=0.0000,tot_liquido=184.5000,tot_iva=0.0000,tot_valor=184.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210503 19:01 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=22,doc_mov='R',tp=1,document='Recibo',no_doc=23,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Luis (935 877 274)',valor=184.50,pendente=184.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=50 LIMIT 1;
20210503 19:01 UPDATE documento_r1 SET linhas=0,no_doc=23,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190000,no_cf=22,nome_cf='Serralh. Vieirense,Jos‚ V. Gon‡alves Lda',desconto=0.0000,linha_pre=0,observacao='Luis (935 877 274)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=184.5000,tot_desconto=0.0000,tot_liquido=184.5000,tot_iva=0.0000,tot_valor=184.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=28 LIMIT 1;
20210503 19:02 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,24,0,'',0,0,'',20210503000000,00000000000000,20000101190200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 19:02 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,25,'R',1,'Recibo',24,20210503000000,20210503000000,'','Andr‚(962 058 200',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 19:02 UPDATE documento_r1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190200,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210503 19:02 UPDATE documento_d2 SET linhas=0,no_doc=26,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210426000000,d_venc=20210426000000,h_doc=20000101181600,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=114.0000,tot_desconto=0.0000,tot_liquido=114.0000,tot_iva=26.2200,tot_valor=140.2200,val_pago=140.2200,val_pend=0.0000,suj_valor0=114.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=26.2200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=27 LIMIT 1;
20210503 19:02 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,24,'D',2,'N/ Fatura',26,20210426000000,20210426000000,'','D',140.22,140.22,140.22,0.000,0.00,140.22,0.00,0.00,0,'A',114.00,26.22,140.22,114.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,26.22,0.00,0.00,0.00,0,'');
20210503 19:02 UPDATE reciboslinhas01 SET linha=5,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',n_doc=26,d_doc=20210426000000,d_venc=20210426000000,ref='',deb_cred='D',val_doc=140.22,val_pend=140.22,val_liqu=140.22,per_desc=0.000,val_desc=0.00,val_rec=140.22,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=114.00,tot_iva=26.22,tot_valor=140.22,suj_valor0=114.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=26.22,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=37 LIMIT 1;
20210503 19:02 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=25,doc_mov='R',tp=1,document='Recibo',no_doc=24,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Andr‚(962 058 200',valor=140.22,pendente=140.22,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=51 LIMIT 1;
20210503 19:02 UPDATE documento_r1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190200,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.2200,tot_desconto=0.0000,tot_liquido=140.2200,tot_iva=0.0000,tot_valor=140.2200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210503 19:02 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=25,doc_mov='R',tp=1,document='Recibo',no_doc=24,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Andr‚(962 058 200',valor=140.22,pendente=140.22,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=51 LIMIT 1;
20210503 19:02 UPDATE documento_r1 SET linhas=0,no_doc=24,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190200,no_cf=25,nome_cf='Andr‚ M.V.Gon‡alv.Serralh.Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Andr‚(962 058 200',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=140.2200,tot_desconto=0.0000,tot_liquido=140.2200,tot_iva=0.0000,tot_valor=140.2200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210503 19:04 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,25,0,'',0,0,'',20210503000000,00000000000000,20000101190400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210503000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210503 19:04 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,26,'R',1,'Recibo',25,20210503000000,20210503000000,'','Jaime(934 520 216)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210503 19:04 UPDATE documento_r1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190400,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 19:04 UPDATE documento_d2 SET linhas=0,no_doc=28,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210430000000,d_venc=20210430000000,h_doc=20000101132500,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=125.0000,tot_desconto=0.0000,tot_liquido=125.0000,tot_iva=28.7500,tot_valor=153.7500,val_pago=153.7500,val_pend=0.0000,suj_valor0=125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=28.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=29 LIMIT 1;
20210503 19:04 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,25,'D',2,'N/ Fatura',28,20210430000000,20210430000000,'','D',153.75,153.75,153.75,0.000,0.00,153.75,0.00,0.00,0,'A',125.00,28.75,153.75,125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,28.75,0.00,0.00,0.00,0,'');
20210503 19:04 UPDATE reciboslinhas01 SET linha=5,cor=0,no=25,doc_mov='D',tp=2,document='N/ Fatura',n_doc=28,d_doc=20210430000000,d_venc=20210430000000,ref='',deb_cred='D',val_doc=153.75,val_pend=153.75,val_liqu=153.75,per_desc=0.000,val_desc=0.00,val_rec=153.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=125.00,tot_iva=28.75,tot_valor=153.75,suj_valor0=125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=28.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=38 LIMIT 1;
20210503 19:04 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=26,doc_mov='R',tp=1,document='Recibo',no_doc=25,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Jaime(934 520 216)',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=52 LIMIT 1;
20210503 19:04 UPDATE documento_r1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190400,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210503 19:04 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=26,doc_mov='R',tp=1,document='Recibo',no_doc=25,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Jaime(934 520 216)',valor=153.75,pendente=153.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=52 LIMIT 1;
20210503 19:04 UPDATE documento_r1 SET linhas=0,no_doc=25,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101190400,no_cf=26,nome_cf='Serralharia Javieira, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Jaime(934 520 216)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=153.7500,tot_desconto=0.0000,tot_liquido=153.7500,tot_iva=0.0000,tot_valor=153.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210510 17:34 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,29,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210510 17:34 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,228,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210510 17:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=228,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=34 LIMIT 1;
20210510 17:38 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4800-610','','','');
20210510 17:38 UPDATE codigos_postais SET codigo='4800-610',concelho='Prazins,Sta Euf‚mia',distrito='GUIMARŽES',rsv='' WHERE IDX=37 LIMIT 1;
20210510 17:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=28,nome_1='BARREIRAS, SERRALHARIA Lda',nome_2='',morada='Rua Manuel Ribeiro, N§26',localidade='Prazins, Sta Euf‚mia-GuimarĆes',cod_post='4800-610',concelho='Prazins,Sta Euf‚mia',distrito='GUIMARŽES',zona='',n_pais=0,pais='',contribuinte='507 035 844',telefone='253 472 679',fax='253 472 679',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='barreiras.serralharia@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Marques(919275061)-918796279',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=32 LIMIT 1;
20210510 17:41 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=28,nome_1='BARREIRAS, SERRALHARIA Lda',nome_2='',morada='Rua Manuel Ribeiro, N§26',localidade='Prazins, Sta Euf‚mia-GuimarĆes',cod_post='4800-610',concelho='Prazins,Sta Euf‚mia',distrito='GUIMARŽES',zona='',n_pais=0,pais='',contribuinte='507 035 844',telefone='253 472 679',fax='253 472 679',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='barreiras.serralharia@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Marques(919275061)-918796279',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:39 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,30,0,'',0,0,'',20210513000000,20210513000000,20000101123900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210513 12:39 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='20',codigo2='20',designacao_1='20(Persiusos/A)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=45 LIMIT 1;
20210513 12:40 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,30,'20','20(Persiusos/A)','','',1.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,0.00,0.0000000,0.0000000,0,0,0,'','',1.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,1.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210513 12:40 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='20',codigo2='20',designacao_1='20(Persiusos/A)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=45 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='Persiusos/L-Emb-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210513 12:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='020',designacao='Persiusos/L-Emb-10Lt',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='Persiusos/L-Emb-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210513 12:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='020',designacao='Persiusos/L-Emb-10Lt',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:40 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='020',codigo2='020',designacao_1='Persiusos/L-Emb-10Lt',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=22 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-21.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210513 12:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='0020',designacao='QB.500(Massa MĆos)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:40 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210513 12:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='0020',designacao='QB.500(Massa MĆos)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:40 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:46 INSERT INTO artigos (idx,lnh_des,lnh_arm,lnh_cmp,lnh_equ,codigo,codigo2,designacao_1,designacao_2,abvr,no_un_,unidade,armazem,familia,ultimo_custo,custo_medio,valor_medio,no_iva,iva,marg_1,marg_2,prc_s_iva_1,prc_s_iva_2,prc_c_iva_1,prc_c_iva_2,stock_minimo,stock,stock_maximo,no_forn,d_entrada,d_saida,baixa,lnh_obs,stock2,lnh_emb,lnh_prom,flg,anos_ga,local_imp,usaserie,miva,rsv,marg_3,prc_s_iva_3,prc_c_iva_3,marg_4,prc_s_iva_4,prc_c_iva_4,peso) VALUES(NULL,0,0,0,0,'120','120','PROTEXUX/A','','',0,'','','',0.0000000,0.0000000,0.0000000,1,23.00,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000,0.000,0.000,0,00000000000000,00000000000000,'S','',0.0000,'','',0,0,0,'N',0,'',0.0000000,'0.00','0.00','0','0.00','0.00','');
20210513 12:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='0020',codigo2='0020',designacao_1='QB.500(Massa MĆos)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=19 LIMIT 1;
20210513 12:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='120',codigo2='120',designacao_1='PROTEXUX/A',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-1.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=47 LIMIT 1;
20210513 12:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='120',designacao='PROTEXUX/A',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:46 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='120',designacao='PROTEXUX/A(Emb.20Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:46 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='120',codigo2='120',designacao_1='PROTEXUX/A',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=47 LIMIT 1;
20210513 12:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='120',designacao='PROTEXUX/A(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:46 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210513000000,d_venc=20210513000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:46 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='120',codigo2='120',designacao_1='PROTEXUX/A',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-20.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210513000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=47 LIMIT 1;
20210513 12:46 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=30,codigo='120',designacao='PROTEXUX/A(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=168.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=108 LIMIT 1;
20210513 12:47 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'D',2,'N/ Fatura',30,20210514000000,20210514000000,'','',206.64,206.64,'D',206.64,0.00,0.00,38.64,0.00,1.000000,0,0,'A','');
20210513 12:47 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=30,d_doc=20210514000000,d_venc=20210514000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='D',debito=206.64,credito=0.00,acumulado=0.00,val_iva=38.64,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210513 12:47 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=30,d_doc=20210514000000,d_venc=20210514000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='D',debito=206.64,credito=0.00,acumulado=0.00,val_iva=38.64,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210513 12:47 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=0.0000,val_pend=206.6400,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210513 12:49 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,31,0,'',0,0,'',20210513000000,20210513000000,20000101124900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210513 12:50 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:50 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,31,'','Braculant','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210513 12:50 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:50 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=31,codigo='',designacao='Braculant',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=109 LIMIT 1;
20210513 12:50 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:50 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=31,codigo='',designacao='Braculant',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.7000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=201.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=109 LIMIT 1;
20210513 12:50 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,28,'D',2,'N/ Fatura',31,20210514000000,20210514000000,'','Sr. Marques(919275061)-918796279',247.23,247.23,'D',247.23,0.00,0.00,46.23,0.00,1.000000,0,0,'A','');
20210513 12:50 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:50 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='D',tp=2,document='N/ Fatura',no_doc=31,d_doc=20210514000000,d_venc=20210514000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=247.23,pendente=247.23,deb_cred='D',debito=247.23,credito=0.00,acumulado=0.00,val_iva=46.23,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210513 12:50 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='D',tp=2,document='N/ Fatura',no_doc=31,d_doc=20210514000000,d_venc=20210514000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=247.23,pendente=247.23,deb_cred='D',debito=247.23,credito=0.00,acumulado=0.00,val_iva=46.23,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210513 12:51 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:51 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='D',tp=2,document='N/ Fatura',no_doc=31,d_doc=20210514000000,d_venc=20210514000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=247.23,pendente=247.23,deb_cred='D',debito=247.23,credito=0.00,acumulado=0.00,val_iva=46.23,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210513 12:51 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=0.0000,val_pend=247.2300,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210513 12:54 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,32,0,'',0,0,'',20210513000000,20210513000000,20000101125400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210514 18:25 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,229,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210514 18:25 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,30,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210514 18:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=30,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=36 LIMIT 1;
20210514 18:29 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-106','','','');
20210514 18:30 UPDATE codigos_postais SET codigo='4860-106',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',rsv='' WHERE IDX=38 LIMIT 1;
20210514 18:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=29,nome_1='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',nome_2='',morada='Zona Industrial da Devesa(Lameiros) Lote 3',localidade='Cabeceiras de Basto',cod_post='4860-106',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='514 978 007',telefone='932052348',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Pedro(964965901)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=33 LIMIT 1;
20210514 18:37 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-491','','','');
20210514 18:39 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=30,nome_1='ESFANI-CONFE€™ES, Lda',nome_2='',morada='Loteamento Agro-Fafe-Lote 30 Antas',localidade='Medelo-Fafe',cod_post='4820-491',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='501 825 452',telefone='253 598637',fax='253 503595',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='esfani@net.sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='D.DULCE',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=36 LIMIT 1;
20210518 18:02 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:02 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,32,'','Persinod/A','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210518 18:03 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=32,codigo='',designacao='',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=110 LIMIT 1;
20210518 18:04 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-91.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210519000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210518 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=32,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=110 LIMIT 1;
20210518 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=32,codigo='031',designacao='Persiusos/A(emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=110 LIMIT 1;
20210518 18:04 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=32,codigo='031',designacao='Persiusos/A(Emb.30Lt)',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=110 LIMIT 1;
20210518 18:04 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-120.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210519000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210518 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=32,codigo='031',designacao='Persiusos/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=110 LIMIT 1;
20210518 18:04 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:04 UPDATE artigos SET lnh_des=0,lnh_arm=0,lnh_cmp=0,lnh_equ=0,codigo='031',codigo2='031',designacao_1='Persiusos/A(emb.30Lt)',designacao_2='',abvr='',no_un_=0,unidade='',armazem='',familia='',ultimo_custo=0.0000000,custo_medio=0.0000000,valor_medio=0.0000000,no_iva=1,iva=23.00,marg_1=0.0000000,marg_2=0.0000000,prc_s_iva_1=0.0000000,prc_s_iva_2=0.0000000,prc_c_iva_1=0.0000000,prc_c_iva_2=0.0000000,stock_minimo=0.000,stock=-120.000,stock_maximo=0.000,no_forn=0,d_entrada=00000000000000,d_saida=20210519000000,baixa='S',lnh_obs='',stock2=0.0000,lnh_emb='',lnh_prom='',flg=0,anos_ga=0,local_imp=0,usaserie='N',miva=0,rsv='',marg_3=0.0000000,prc_s_iva_3='0',prc_c_iva_3='0',marg_4='0',prc_s_iva_4='0',prc_c_iva_4='0',peso='' WHERE IDX=43 LIMIT 1;
20210518 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=32,codigo='031',designacao='Persiusos/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=189.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=1.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=1.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=110 LIMIT 1;
20210518 18:05 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,30,'D',2,'N/ Fatura',32,20210519000000,20210519000000,'','D.DULCE',232.47,232.47,'D',232.47,0.00,0.00,43.47,0.00,1.000000,0,0,'A','');
20210518 18:05 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=189.0000,tot_desconto=0.0000,tot_liquido=189.0000,tot_iva=43.4700,tot_valor=232.4700,val_pago=0.0000,val_pend=232.4700,suj_valor0=189.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=43.4700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:05 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='D',tp=2,document='N/ Fatura',no_doc=32,d_doc=20210519000000,d_venc=20210519000000,ref='',obs='D.DULCE',valor=232.47,pendente=232.47,deb_cred='D',debito=232.47,credito=0.00,acumulado=0.00,val_iva=43.47,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20210518 18:05 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=189.0000,tot_desconto=0.0000,tot_liquido=189.0000,tot_iva=43.4700,tot_valor=232.4700,val_pago=0.0000,val_pend=232.4700,suj_valor0=189.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=43.4700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210518 18:18 INSERT INTO artigos_cliente (idx,linha,cor,no,codigo,desig,preco,desconto,abvr_doc,nodoc,data_doc,desc_val,rsv) VALUES(NULL,5,0,30,'031','Persiusos/A(Emb.30Lt)',6.30,0.00,'FA',32,20210519000000,0.00,'');
20210518 18:18 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,33,0,'',0,0,'',20210518000000,20210518000000,20000101181800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210518 22:12 UPDATE documento_d2 SET convertido='0' WHERE no_doc='32' and serdoc='A' 
20210518 22:12 UPDATE documento_d2 SET convertido='0' WHERE no_doc='32' and serdoc='A' 
20210519 18:25 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,230,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210519 18:25 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,31,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210519 18:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=31,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=38 LIMIT 1;
20210519 18:28 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-059','','','');
20210519 18:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=31,nome_1='SERRALHARIA FERNANDO COSTA,UNIP.Lda',nome_2='',morada='Rua de Casares',localidade='Estor”es-Fafe',cod_post='4820-059',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='507 060 822',telefone='253 502 452',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='serralhariafcosta@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Fernando(913 039 139)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=38 LIMIT 1;
20210519 18:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=31,nome_1='SERRALHARIA FERNANDO COSTA,UNIP.Lda',nome_2='',morada='Rua de Casares',localidade='Estor”es-Fafe',cod_post='4820-059',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='507 060 822',telefone='253 502 452',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='serralhariafcosta@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Fernando(913 039 139)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=38 LIMIT 1;
20210523 22:42 UPDATE documento_d2 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210524000000,d_venc=20210524000000,h_doc=20000101181800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210523 22:43 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,33,'','Braculant(˘leo corte)-Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210523 22:43 UPDATE documento_d2 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210524000000,d_venc=20210524000000,h_doc=20000101181800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210523 22:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=33,codigo='',designacao='Braculant(˘leo corte)-Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=111 LIMIT 1;
20210523 22:43 UPDATE documento_d2 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210524000000,d_venc=20210524000000,h_doc=20000101181800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210523 22:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=33,codigo='',designacao='Braculant(˘leo corte)-Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=111 LIMIT 1;
20210523 22:43 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,31,'D',2,'N/ Fatura',33,20210524000000,20210524000000,'','Sr. Fernando(913 039 139)',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210523 22:43 UPDATE documento_d2 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210524000000,d_venc=20210524000000,h_doc=20000101181800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210523 22:43 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=31,doc_mov='D',tp=2,document='N/ Fatura',no_doc=33,d_doc=20210524000000,d_venc=20210524000000,ref='',obs='Sr. Fernando(913 039 139)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20210523 22:43 UPDATE documento_d2 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210524000000,d_venc=20210524000000,h_doc=20000101181800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210525 18:19 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,34,0,'',0,0,'',20210525000000,20210525000000,20000101181900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210525 18:19 UPDATE documento_d2 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210525000000,d_venc=20210525000000,h_doc=20000101181900,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210525 18:20 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,34,'','Persiusos/A (EMB.20Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210525 18:20 UPDATE documento_d2 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210525000000,d_venc=20210525000000,h_doc=20000101181900,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210525 18:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=34,codigo='',designacao='Persiusos/A (EMB.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=112 LIMIT 1;
20210525 18:20 UPDATE documento_d2 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210525000000,d_venc=20210525000000,h_doc=20000101181900,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210525 18:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=34,codigo='',designacao='Persiusos/A (EMB.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=5.8500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=117.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=112 LIMIT 1;
20210525 18:21 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,29,'D',2,'N/ Fatura',34,20210526000000,20210526000000,'','Pedro(964965901)',143.91,143.91,'D',143.91,0.00,0.00,26.91,0.00,1.000000,0,0,'A','');
20210525 18:21 UPDATE documento_d2 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210526000000,d_venc=20210526000000,h_doc=20000101181900,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=117.0000,tot_desconto=0.0000,tot_liquido=117.0000,tot_iva=26.9100,tot_valor=143.9100,val_pago=0.0000,val_pend=143.9100,suj_valor0=117.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=26.9100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210525 18:21 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=29,doc_mov='D',tp=2,document='N/ Fatura',no_doc=34,d_doc=20210526000000,d_venc=20210526000000,ref='',obs='Pedro(964965901)',valor=143.91,pendente=143.91,deb_cred='D',debito=143.91,credito=0.00,acumulado=0.00,val_iva=26.91,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=15 LIMIT 1;
20210525 18:21 UPDATE documento_d2 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210526000000,d_venc=20210526000000,h_doc=20000101181900,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=117.0000,tot_desconto=0.0000,tot_liquido=117.0000,tot_iva=26.9100,tot_valor=143.9100,val_pago=0.0000,val_pend=143.9100,suj_valor0=117.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=26.9100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210526 18:24 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,231,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210526 18:24 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,32,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210526 18:24 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=32,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=40 LIMIT 1;
20210526 18:24 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,232,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210526 18:36 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-250','','','');
20210526 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=32,nome_1='JoĆo Paulo Teixeira, Constru‡”es Lda',nome_2='',morada='Rua das Alminhas',localidade='Painzela - Cabeceiras de Basto',cod_post='4860-250',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='505 513 374',telefone='253 661 564',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Paulo (964036294)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=40 LIMIT 1;
20210526 18:37 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=32,nome_1='JoĆo Paulo Teixeira, Constru‡”es Lda',nome_2='',morada='Rua das Alminhas',localidade='Painzela - Cabeceiras de Basto',cod_post='4860-250',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='505 513 374',telefone='253 661 564',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Paulo (964036294)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=40 LIMIT 1;
20210527 18:20 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,35,0,'',0,0,'',20210527000000,20210527000000,20000101182000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210527 18:20 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:21 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,35,'','Sower Gel(Emb.10Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210527 18:21 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:21 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=35,codigo='',designacao='Sower Gel(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=113 LIMIT 1;
20210527 18:21 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:21 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=35,codigo='',designacao='Sower Gel(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=3.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=132.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=113 LIMIT 1;
20210527 18:21 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Fatura',35,20210527000000,20210527000000,'','',162.36,162.36,'D',162.36,0.00,0.00,30.36,0.00,1.000000,0,0,'A','');
20210527 18:21 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:21 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,35,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210527 18:22 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=35,codigo='',designacao='Pesiusos/L(EMB.10Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=114 LIMIT 1;
20210527 18:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=35,d_doc=20210527000000,d_venc=20210527000000,ref='',obs='',valor=162.36,pendente=162.36,deb_cred='D',debito=162.36,credito=0.00,acumulado=0.00,val_iva=30.36,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=16 LIMIT 1;
20210527 18:22 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:22 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=35,codigo='',designacao='Pesiusos/L(EMB.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=114 LIMIT 1;
20210527 18:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=35,d_doc=20210527000000,d_venc=20210527000000,ref='',obs='',valor=162.36,pendente=162.36,deb_cred='D',debito=162.36,credito=0.00,acumulado=0.00,val_iva=30.36,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=16 LIMIT 1;
20210527 18:22 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:22 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=35,codigo='',designacao='Pesiusos/L(EMB.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=1.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=64.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=114 LIMIT 1;
20210527 18:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=35,d_doc=20210527000000,d_venc=20210527000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=16 LIMIT 1;
20210527 18:22 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210527000000,d_venc=20210527000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:24 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Fatura',35,20210528000000,20210528000000,'','',241.08,241.08,'D',241.08,0.00,0.00,45.08,0.00,1.000000,0,0,'A','');
20210527 18:24 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210528000000,d_venc=20210528000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=35,d_doc=20210528000000,d_venc=20210528000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=17 LIMIT 1;
20210527 18:24 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210528000000,d_venc=20210528000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210527 18:34 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,36,0,'',0,0,'',20210527000000,20210527000000,20000101183400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210601 17:58 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,26,0,'',0,0,'',20210601000000,00000000000000,20000101175800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 17:59 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,27,'R',1,'Recibo',26,20210601000000,20210601000000,'','Sr. Machado',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 17:59 UPDATE documento_r1 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101175800,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210601 17:59 UPDATE documento_d2 SET linhas=0,no_doc=29,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210504000000,d_venc=20210504000000,h_doc=20000101182600,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1125.0000,tot_desconto=0.0000,tot_liquido=1125.0000,tot_iva=258.7500,tot_valor=1383.7500,val_pago=1383.7500,val_pend=0.0000,suj_valor0=1125.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=258.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=30 LIMIT 1;
20210601 17:59 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,26,'D',2,'N/ Fatura',29,20210504000000,20210504000000,'','D',1383.75,1383.75,1383.75,0.000,0.00,1383.75,0.00,0.00,0,'A',1125.00,258.75,1383.75,1125.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,258.75,0.00,0.00,0.00,0,'');
20210601 17:59 UPDATE reciboslinhas01 SET linha=5,cor=0,no=26,doc_mov='D',tp=2,document='N/ Fatura',n_doc=29,d_doc=20210504000000,d_venc=20210504000000,ref='',deb_cred='D',val_doc=1383.75,val_pend=1383.75,val_liqu=1383.75,per_desc=0.000,val_desc=0.00,val_rec=1383.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=1125.00,tot_iva=258.75,tot_valor=1383.75,suj_valor0=1125.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=258.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=39 LIMIT 1;
20210601 17:59 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='R',tp=1,document='Recibo',no_doc=26,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=60 LIMIT 1;
20210601 17:59 UPDATE documento_r1 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101175800,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1383.7500,tot_desconto=0.0000,tot_liquido=1383.7500,tot_iva=0.0000,tot_valor=1383.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210601 18:00 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=27,doc_mov='R',tp=1,document='Recibo',no_doc=26,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Sr. Machado',valor=1383.75,pendente=1383.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=60 LIMIT 1;
20210601 18:00 UPDATE documento_r1 SET linhas=0,no_doc=26,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101175800,no_cf=27,nome_cf='Jos‚ Leonardo M.Pereira Machado',desconto=0.0000,linha_pre=0,observacao='Sr. Machado',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=1383.7500,tot_desconto=0.0000,tot_liquido=1383.7500,tot_iva=0.0000,tot_valor=1383.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210601 18:02 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,27,0,'',0,0,'',20210601000000,00000000000000,20000101180200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 18:02 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'R',1,'Recibo',27,20210601000000,20210601000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 18:02 UPDATE documento_r1 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210601 18:02 UPDATE documento_d2 SET linhas=0,no_doc=30,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101123900,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=168.0000,tot_desconto=0.0000,tot_liquido=168.0000,tot_iva=38.6400,tot_valor=206.6400,val_pago=206.6400,val_pend=0.0000,suj_valor0=168.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=38.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=31 LIMIT 1;
20210601 18:02 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,27,'D',2,'N/ Fatura',30,20210514000000,20210514000000,'','D',206.64,206.64,206.64,0.000,0.00,206.64,0.00,0.00,0,'A',168.00,38.64,206.64,168.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,38.64,0.00,0.00,0.00,0,'');
20210601 18:02 UPDATE reciboslinhas01 SET linha=5,cor=0,no=27,doc_mov='D',tp=2,document='N/ Fatura',n_doc=30,d_doc=20210514000000,d_venc=20210514000000,ref='',deb_cred='D',val_doc=206.64,val_pend=206.64,val_liqu=206.64,per_desc=0.000,val_desc=0.00,val_rec=206.64,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=168.00,tot_iva=38.64,tot_valor=206.64,suj_valor0=168.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=38.64,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=40 LIMIT 1;
20210601 18:02 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=27,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=61 LIMIT 1;
20210601 18:02 UPDATE documento_r1 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.6400,tot_desconto=0.0000,tot_liquido=206.6400,tot_iva=0.0000,tot_valor=206.6400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210601 18:02 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=27,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='',valor=206.64,pendente=206.64,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=61 LIMIT 1;
20210601 18:02 UPDATE documento_r1 SET linhas=0,no_doc=27,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=206.6400,tot_desconto=0.0000,tot_liquido=206.6400,tot_iva=0.0000,tot_valor=206.6400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210601 18:04 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,28,0,'',0,0,'',20210601000000,00000000000000,20000101180400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 18:04 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,28,'R',1,'Recibo',28,20210601000000,20210601000000,'','Sr. Marques(919275061)-918796279',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 18:04 UPDATE documento_r1 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180400,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210601 18:04 UPDATE documento_d2 SET linhas=0,no_doc=31,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210514000000,d_venc=20210514000000,h_doc=20000101124900,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.0000,tot_desconto=0.0000,tot_liquido=201.0000,tot_iva=46.2300,tot_valor=247.2300,val_pago=247.2300,val_pend=0.0000,suj_valor0=201.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=46.2300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=32 LIMIT 1;
20210601 18:04 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,28,'D',2,'N/ Fatura',31,20210514000000,20210514000000,'','D',247.23,247.23,247.23,0.000,0.00,247.23,0.00,0.00,0,'A',201.00,46.23,247.23,201.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,46.23,0.00,0.00,0.00,0,'');
20210601 18:04 UPDATE reciboslinhas01 SET linha=5,cor=0,no=28,doc_mov='D',tp=2,document='N/ Fatura',n_doc=31,d_doc=20210514000000,d_venc=20210514000000,ref='',deb_cred='D',val_doc=247.23,val_pend=247.23,val_liqu=247.23,per_desc=0.000,val_desc=0.00,val_rec=247.23,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=201.00,tot_iva=46.23,tot_valor=247.23,suj_valor0=201.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=46.23,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=41 LIMIT 1;
20210601 18:04 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='R',tp=1,document='Recibo',no_doc=28,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=247.23,pendente=247.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=62 LIMIT 1;
20210601 18:04 UPDATE documento_r1 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180400,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=247.2300,tot_desconto=0.0000,tot_liquido=247.2300,tot_iva=0.0000,tot_valor=247.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210601 18:04 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='R',tp=1,document='Recibo',no_doc=28,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=247.23,pendente=247.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=62 LIMIT 1;
20210601 18:04 UPDATE documento_r1 SET linhas=0,no_doc=28,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180400,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=247.2300,tot_desconto=0.0000,tot_liquido=247.2300,tot_iva=0.0000,tot_valor=247.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210601 18:06 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,29,0,'',0,0,'',20210601000000,00000000000000,20000101180600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 18:06 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,30,'R',1,'Recibo',29,20210601000000,20210601000000,'','D.DULCE',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 18:06 UPDATE documento_r1 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180600,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210601 18:06 UPDATE documento_d2 SET linhas=0,no_doc=32,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210519000000,d_venc=20210519000000,h_doc=20000101125400,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=189.0000,tot_desconto=0.0000,tot_liquido=189.0000,tot_iva=43.4700,tot_valor=232.4700,val_pago=232.4700,val_pend=0.0000,suj_valor0=189.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=43.4700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=33 LIMIT 1;
20210601 18:06 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,29,'D',2,'N/ Fatura',32,20210519000000,20210519000000,'','D',232.47,232.47,232.47,0.000,0.00,232.47,0.00,0.00,0,'A',189.00,43.47,232.47,189.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,43.47,0.00,0.00,0.00,0,'');
20210601 18:06 UPDATE reciboslinhas01 SET linha=5,cor=0,no=29,doc_mov='D',tp=2,document='N/ Fatura',n_doc=32,d_doc=20210519000000,d_venc=20210519000000,ref='',deb_cred='D',val_doc=232.47,val_pend=232.47,val_liqu=232.47,per_desc=0.000,val_desc=0.00,val_rec=232.47,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=189.00,tot_iva=43.47,tot_valor=232.47,suj_valor0=189.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=43.47,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=42 LIMIT 1;
20210601 18:06 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='R',tp=1,document='Recibo',no_doc=29,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='D.DULCE',valor=232.47,pendente=232.47,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=63 LIMIT 1;
20210601 18:06 UPDATE documento_r1 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180600,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=232.4700,tot_desconto=0.0000,tot_liquido=232.4700,tot_iva=0.0000,tot_valor=232.4700,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210601 18:06 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='R',tp=1,document='Recibo',no_doc=29,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='D.DULCE',valor=232.47,pendente=232.47,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=63 LIMIT 1;
20210601 18:06 UPDATE documento_r1 SET linhas=0,no_doc=29,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180600,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=232.4700,tot_desconto=0.0000,tot_liquido=232.4700,tot_iva=0.0000,tot_valor=232.4700,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210601 18:08 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,30,0,'',0,0,'',20210601000000,00000000000000,20000101180800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 18:08 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,31,'R',1,'Recibo',30,20210601000000,20210601000000,'','Sr. Fernando(913 039 139)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 18:08 UPDATE documento_r1 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210601 18:08 UPDATE documento_d2 SET linhas=0,no_doc=33,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210524000000,d_venc=20210524000000,h_doc=20000101181800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=184.5000,val_pend=0.0000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=34 LIMIT 1;
20210601 18:08 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,30,'D',2,'N/ Fatura',33,20210524000000,20210524000000,'','D',184.50,184.50,184.50,0.000,0.00,184.50,0.00,0.00,0,'A',150.00,34.50,184.50,150.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,34.50,0.00,0.00,0.00,0,'');
20210601 18:08 UPDATE reciboslinhas01 SET linha=5,cor=0,no=30,doc_mov='D',tp=2,document='N/ Fatura',n_doc=33,d_doc=20210524000000,d_venc=20210524000000,ref='',deb_cred='D',val_doc=184.50,val_pend=184.50,val_liqu=184.50,per_desc=0.000,val_desc=0.00,val_rec=184.50,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=150.00,tot_iva=34.50,tot_valor=184.50,suj_valor0=150.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=34.50,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=43 LIMIT 1;
20210601 18:08 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=31,doc_mov='R',tp=1,document='Recibo',no_doc=30,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Sr. Fernando(913 039 139)',valor=184.50,pendente=184.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=64 LIMIT 1;
20210601 18:08 UPDATE documento_r1 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=184.5000,tot_desconto=0.0000,tot_liquido=184.5000,tot_iva=0.0000,tot_valor=184.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210601 18:08 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=31,doc_mov='R',tp=1,document='Recibo',no_doc=30,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Sr. Fernando(913 039 139)',valor=184.50,pendente=184.50,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=64 LIMIT 1;
20210601 18:08 UPDATE documento_r1 SET linhas=0,no_doc=30,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101180800,no_cf=31,nome_cf='SERRALHARIA FERNANDO COSTA,UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Fernando(913 039 139)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=184.5000,tot_desconto=0.0000,tot_liquido=184.5000,tot_iva=0.0000,tot_valor=184.5000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210601 18:10 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,31,0,'',0,0,'',20210601000000,00000000000000,20000101181000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 18:10 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,29,'R',1,'Recibo',31,20210601000000,20210601000000,'','Pedro(964965901)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 18:10 UPDATE documento_r1 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101181000,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210601 18:10 UPDATE documento_d2 SET linhas=0,no_doc=34,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210526000000,d_venc=20210526000000,h_doc=20000101181900,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=117.0000,tot_desconto=0.0000,tot_liquido=117.0000,tot_iva=26.9100,tot_valor=143.9100,val_pago=143.9100,val_pend=0.0000,suj_valor0=117.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=26.9100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=35 LIMIT 1;
20210601 18:10 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,31,'D',2,'N/ Fatura',34,20210526000000,20210526000000,'','D',143.91,143.91,143.91,0.000,0.00,143.91,0.00,0.00,0,'A',117.00,26.91,143.91,117.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,26.91,0.00,0.00,0.00,0,'');
20210601 18:10 UPDATE reciboslinhas01 SET linha=5,cor=0,no=31,doc_mov='D',tp=2,document='N/ Fatura',n_doc=34,d_doc=20210526000000,d_venc=20210526000000,ref='',deb_cred='D',val_doc=143.91,val_pend=143.91,val_liqu=143.91,per_desc=0.000,val_desc=0.00,val_rec=143.91,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=117.00,tot_iva=26.91,tot_valor=143.91,suj_valor0=117.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=26.91,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=44 LIMIT 1;
20210601 18:10 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=29,doc_mov='R',tp=1,document='Recibo',no_doc=31,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Pedro(964965901)',valor=143.91,pendente=143.91,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=65 LIMIT 1;
20210601 18:10 UPDATE documento_r1 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101181000,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=143.9100,tot_desconto=0.0000,tot_liquido=143.9100,tot_iva=0.0000,tot_valor=143.9100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210601 18:10 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=29,doc_mov='R',tp=1,document='Recibo',no_doc=31,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='Pedro(964965901)',valor=143.91,pendente=143.91,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=65 LIMIT 1;
20210601 18:10 UPDATE documento_r1 SET linhas=0,no_doc=31,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101181000,no_cf=29,nome_cf='E,A.Joaquim Andr‚ Engrand Ol.Unipes. Lda',desconto=0.0000,linha_pre=0,observacao='Pedro(964965901)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=143.9100,tot_desconto=0.0000,tot_liquido=143.9100,tot_iva=0.0000,tot_valor=143.9100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210601 18:11 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,32,0,'',0,0,'',20210601000000,00000000000000,20000101181100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210601000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210601 18:12 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'R',1,'Recibo',32,20210601000000,20210601000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210601 18:12 UPDATE documento_r1 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101181100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:12 UPDATE documento_d2 SET linhas=0,no_doc=35,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210528000000,d_venc=20210528000000,h_doc=20000101182000,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=241.0800,val_pend=0.0000,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=36 LIMIT 1;
20210601 18:12 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,32,'D',2,'N/ Fatura',35,20210528000000,20210528000000,'','D',241.08,241.08,241.08,0.000,0.00,241.08,0.00,0.00,0,'A',196.00,45.08,241.08,196.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,45.08,0.00,0.00,0.00,0,'');
20210601 18:12 UPDATE reciboslinhas01 SET linha=5,cor=0,no=32,doc_mov='D',tp=2,document='N/ Fatura',n_doc=35,d_doc=20210528000000,d_venc=20210528000000,ref='',deb_cred='D',val_doc=241.08,val_pend=241.08,val_liqu=241.08,per_desc=0.000,val_desc=0.00,val_rec=241.08,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=196.00,tot_iva=45.08,tot_valor=241.08,suj_valor0=196.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=45.08,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=45 LIMIT 1;
20210601 18:12 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=32,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=66 LIMIT 1;
20210601 18:12 UPDATE documento_r1 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101181100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=241.0800,tot_desconto=0.0000,tot_liquido=241.0800,tot_iva=0.0000,tot_valor=241.0800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:13 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=32,d_doc=20210601000000,d_venc=20210601000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=66 LIMIT 1;
20210601 18:13 UPDATE documento_r1 SET linhas=0,no_doc=32,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210601000000,d_venc=20210601000000,h_doc=20000101181100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=241.0800,tot_desconto=0.0000,tot_liquido=241.0800,tot_iva=0.0000,tot_valor=241.0800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210601000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:20 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210528000000,d_venc=20210528000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:21 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,36,'','Massalav/D(Massa MĆos)4x25KG','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210601 18:22 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=36,codigo='',designacao='Massalav/D(Massa MĆos)4x25KG',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=115 LIMIT 1;
20210601 18:22 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:22 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=36,codigo='',designacao='Massalav/D(Massa MĆos)4x25KG',unidade='',com_iva='',quantidade=100.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=115 LIMIT 1;
20210601 18:22 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:23 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=36,codigo='',designacao='Massalav/D(Massa MĆos)4x25KG',unidade='',com_iva='',quantidade=100.000000,preco_unit=5.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=525.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=115 LIMIT 1;
20210601 18:23 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,20,'D',2,'N/ Fatura',36,20210602000000,20210602000000,'','Sr. Miguel(967843175)',645.75,645.75,'D',645.75,0.00,0.00,120.75,0.00,1.000000,0,0,'A','');
20210601 18:23 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=525.0000,tot_desconto=0.0000,tot_liquido=525.0000,tot_iva=120.7500,tot_valor=645.7500,val_pago=0.0000,val_pend=645.7500,suj_valor0=525.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=120.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=36,d_doc=20210602000000,d_venc=20210602000000,ref='',obs='Sr. Miguel(967843175)',valor=645.75,pendente=645.75,deb_cred='D',debito=645.75,credito=0.00,acumulado=0.00,val_iva=120.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210601 18:23 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=525.0000,tot_desconto=0.0000,tot_liquido=525.0000,tot_iva=120.7500,tot_valor=645.7500,val_pago=0.0000,val_pend=645.7500,suj_valor0=525.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=120.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210601 18:25 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,37,0,'',0,0,'',20210602000000,20210602000000,20000101182500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210601 18:25 UPDATE documento_d2 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101182500,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210601 18:26 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,37,'','Paviseal/Selante(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210601 18:26 UPDATE documento_d2 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101182500,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210601 18:26 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=37,codigo='',designacao='Paviseal/Selante(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=116 LIMIT 1;
20210601 18:26 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=37,codigo='',designacao='Paviseal/Selante(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=9.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=270.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=116 LIMIT 1;
20210601 18:26 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,32,'D',2,'N/ Fatura',37,20210602000000,20210602000000,'','Sr. Paulo (964036294)',332.10,332.10,'D',332.10,0.00,0.00,62.10,0.00,1.000000,0,0,'A','');
20210601 18:26 UPDATE documento_d2 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101182500,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=270.0000,tot_desconto=0.0000,tot_liquido=270.0000,tot_iva=62.1000,tot_valor=332.1000,val_pago=0.0000,val_pend=332.1000,suj_valor0=270.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=62.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210601 18:26 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=32,doc_mov='D',tp=2,document='N/ Fatura',no_doc=37,d_doc=20210602000000,d_venc=20210602000000,ref='',obs='Sr. Paulo (964036294)',valor=332.10,pendente=332.10,deb_cred='D',debito=332.10,credito=0.00,acumulado=0.00,val_iva=62.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210601 18:26 UPDATE documento_d2 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101182500,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=270.0000,tot_desconto=0.0000,tot_liquido=270.0000,tot_iva=62.1000,tot_valor=332.1000,val_pago=0.0000,val_pend=332.1000,suj_valor0=270.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=62.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210617 22:20 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,33,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210617 22:20 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=33,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=42 LIMIT 1;
20210617 22:22 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4860-242','','','');
20210617 22:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=33,nome_1='Constru‡”es Marque & MagalhĆes Lda',nome_2='',morada='Baloutas',localidade='Painzela-Cabeceiras de Basto',cod_post='4860-242',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='505733862',telefone='253 664107-965628376',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='cmm.lda@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. MagalhĆes(9645630619',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=42 LIMIT 1;
20210617 22:25 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=33,nome_1='Constru‡”es Marque & MagalhĆes Lda',nome_2='',morada='Baloutas',localidade='Painzela-Cabeceiras de Basto',cod_post='4860-242',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='505733862',telefone='253 664107-965628376',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='cmm.lda@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. MagalhĆes(9645630619)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=42 LIMIT 1;
20210617 22:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=33,nome_1='Constru‡”es Marques & MagalhĆes Lda',nome_2='',morada='Baloutas',localidade='Painzela-Cabeceiras de Basto',cod_post='4860-242',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='505733862',telefone='253 664107-965628376',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='cmm.lda@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. MagalhĆes(9645630619)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=42 LIMIT 1;
20210617 22:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=33,nome_1='Constru‡”es Marques & MagalhĆes Lda',nome_2='',morada='Baloutas',localidade='Painzela-Cabeceiras de Basto',cod_post='4860-242',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='505733862',telefone='253 664107-965628376',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='cmm.lda@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. MagalhĆes(9645630619)',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=42 LIMIT 1;
20210617 22:27 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,38,0,'',0,0,'',20210617000000,20210617000000,20000101222700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210617 22:27 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210617000000,d_venc=20210617000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,38,'','Madesc(oleo descof.)Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:28 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210617000000,d_venc=20210617000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=38,codigo='',designacao='Madesc(oleo descof.)Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=117 LIMIT 1;
20210617 22:28 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210617000000,d_venc=20210617000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=38,codigo='',designacao='Madesc(oleo descof.)Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=117 LIMIT 1;
20210617 22:28 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,33,'D',2,'N/ Fatura',38,20210617000000,20210617000000,'','Sr. MagalhĆes(9645630619)',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20210617 22:28 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210617000000,d_venc=20210617000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,38,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:28 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=38,codigo='',designacao='Metdesc(oleo descf.)Emb.30Lt',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=118 LIMIT 1;
20210617 22:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',no_doc=38,d_doc=20210617000000,d_venc=20210617000000,ref='',obs='Sr. MagalhĆes(9645630619)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210617 22:28 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210617000000,d_venc=20210617000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:28 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=38,codigo='',designacao='Metdesc(oleo descf.)Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=118 LIMIT 1;
20210617 22:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',no_doc=38,d_doc=20210617000000,d_venc=20210617000000,ref='',obs='Sr. MagalhĆes(9645630619)',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210617 22:28 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210617000000,d_venc=20210617000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:28 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=38,codigo='',designacao='Metdesc(oleo descf.)Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=118 LIMIT 1;
20210617 22:29 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,33,'D',2,'N/ Fatura',38,20210618000000,20210618000000,'','Sr. MagalhĆes(9645630619)',369.00,369.00,'D',369.00,0.00,0.00,69.00,0.00,1.000000,0,0,'A','');
20210617 22:29 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.0000,tot_desconto=0.0000,tot_liquido=300.0000,tot_iva=69.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=369.0000,suj_valor0=300.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=69.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',no_doc=38,d_doc=20210618000000,d_venc=20210618000000,ref='',obs='Sr. MagalhĆes(9645630619)',valor=369.00,pendente=369.00,deb_cred='D',debito=369.00,credito=0.00,acumulado=0.00,val_iva=69.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210617 22:29 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.0000,tot_desconto=0.0000,tot_liquido=300.0000,tot_iva=69.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=369.0000,suj_valor0=300.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=69.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210617 22:32 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,39,0,'',0,0,'',20210618000000,20210618000000,20000101223200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210617 22:33 UPDATE documento_d2 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223200,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210617 22:33 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,39,'','Braculant(oleo corte)Emb.30lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:33 UPDATE documento_d2 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223200,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210617 22:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=39,codigo='',designacao='Braculant(oleo corte)Emb.30lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=119 LIMIT 1;
20210617 22:33 UPDATE documento_d2 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223200,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210617 22:33 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=39,codigo='',designacao='Braculant(oleo corte)Emb.30lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=119 LIMIT 1;
20210617 22:33 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,21,'D',2,'N/ Fatura',39,20210618000000,20210618000000,'','',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,0,0,'A','');
20210617 22:33 UPDATE documento_d2 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223200,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210617 22:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='D',tp=2,document='N/ Fatura',no_doc=39,d_doc=20210618000000,d_venc=20210618000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210617 22:34 UPDATE documento_d2 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223200,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210617 22:36 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,40,0,'',0,0,'',20210617000000,20210617000000,20000101223600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210617 22:36 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,25,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,30,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,35,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:36 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:37 UPDATE documento_linhas_d2 SET lnh_f=35,cor=0,num_doc=40,codigo='',designacao='Briplas(Emb.20Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=126 LIMIT 1;
20210617 22:37 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:37 UPDATE documento_linhas_d2 SET lnh_f=35,cor=0,num_doc=40,codigo='',designacao='Briplas(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=126 LIMIT 1;
20210617 22:37 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:37 UPDATE documento_linhas_d2 SET lnh_f=35,cor=0,num_doc=40,codigo='',designacao='Briplas(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=9.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=126 LIMIT 1;
20210617 22:37 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,20,'D',2,'N/ Fatura',40,20210618000000,20210618000000,'','Sr. Miguel(967843175)',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,0,0,'A','');
20210617 22:37 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=40,d_doc=20210618000000,d_venc=20210618000000,ref='',obs='Sr. Miguel(967843175)',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20210617 22:37 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:37 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,40,0,40,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210617 22:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=40,d_doc=20210618000000,d_venc=20210618000000,ref='',obs='Sr. Miguel(967843175)',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20210617 22:38 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210617 22:38 UPDATE documento_linhas_d2 SET lnh_f=40,cor=0,num_doc=40,codigo='',designacao='Oferta(Pulverizador)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=127 LIMIT 1;
20210617 22:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='D',tp=2,document='N/ Fatura',no_doc=40,d_doc=20210618000000,d_venc=20210618000000,ref='',obs='Sr. Miguel(967843175)',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20210617 22:38 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210622 21:08 UPDATE historico_contas_correntes_clientes SET linha_f=26,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=21,d_doc=20210503000000,d_venc=20210503000000,ref='',obs='Sr. Miguel(967843175)',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=516.60,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=59 LIMIT 1;
20210622 21:08 UPDATE documento_r1 SET linhas=0,no_doc=21,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210503000000,d_venc=20210503000000,h_doc=20000101185700,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210503000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=26 LIMIT 1;
20210622 21:10 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,33,0,'',0,0,'',20210622000000,00000000000000,20000101211000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210622000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210622 21:12 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,20,'R',1,'Recibo',33,20210602000000,20210602000000,'','Sr. Miguel(967843175)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210622 21:12 UPDATE documento_r1 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101211000,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210622000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210622 21:12 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=221.4000,val_pend=0.0000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210622 21:12 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,33,'D',2,'N/ Fatura',40,20210618000000,20210618000000,'','D',221.40,221.40,221.40,0.000,0.00,221.40,0.00,0.00,0,'A',180.00,41.40,221.40,180.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,41.40,0.00,0.00,0.00,0,'');
20210622 21:12 UPDATE reciboslinhas01 SET linha=5,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',n_doc=40,d_doc=20210618000000,d_venc=20210618000000,ref='',deb_cred='D',val_doc=221.40,val_pend=221.40,val_liqu=221.40,per_desc=0.000,val_desc=0.00,val_rec=221.40,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=180.00,tot_iva=41.40,tot_valor=221.40,suj_valor0=180.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=41.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=46 LIMIT 1;
20210622 21:12 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=33,d_doc=20210602000000,d_venc=20210602000000,ref='',obs='Sr. Miguel(967843175)',valor=221.40,pendente=221.40,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=71 LIMIT 1;
20210622 21:12 UPDATE documento_r1 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101211000,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.4000,tot_desconto=0.0000,tot_liquido=221.4000,tot_iva=0.0000,tot_valor=221.4000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210622000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210622 21:13 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,33,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210622 21:13 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210622 21:13 DELETE FROM reciboslinhas01 WHERE  no=33 
20210622 21:14 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,33,0,'',0,0,'',20210622000000,00000000000000,20000101211400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210622000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210622 21:14 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,20,'R',1,'Recibo',33,20210622000000,20210622000000,'','Sr. Miguel(967843175)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210622 21:14 UPDATE documento_r1 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210622000000,d_venc=20210622000000,h_doc=20000101211400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210622000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210622 21:14 UPDATE documento_d2 SET linhas=0,no_doc=36,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101183400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=525.0000,tot_desconto=0.0000,tot_liquido=525.0000,tot_iva=120.7500,tot_valor=645.7500,val_pago=645.7500,val_pend=0.0000,suj_valor0=525.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=120.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=37 LIMIT 1;
20210622 21:14 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,33,'D',2,'N/ Fatura',36,20210602000000,20210602000000,'','D',645.75,645.75,645.75,0.000,0.00,645.75,0.00,0.00,0,'A',525.00,120.75,645.75,525.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,120.75,0.00,0.00,0.00,0,'');
20210622 21:14 UPDATE reciboslinhas01 SET linha=5,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',n_doc=36,d_doc=20210602000000,d_venc=20210602000000,ref='',deb_cred='D',val_doc=645.75,val_pend=645.75,val_liqu=645.75,per_desc=0.000,val_desc=0.00,val_rec=645.75,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=525.00,tot_iva=120.75,tot_valor=645.75,suj_valor0=525.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=120.75,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=48 LIMIT 1;
20210622 21:14 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=33,d_doc=20210622000000,d_venc=20210622000000,ref='',obs='Sr. Miguel(967843175)',valor=645.75,pendente=645.75,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=71 LIMIT 1;
20210622 21:14 UPDATE documento_r1 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210622000000,d_venc=20210622000000,h_doc=20000101211400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=645.7500,tot_desconto=0.0000,tot_liquido=645.7500,tot_iva=0.0000,tot_valor=645.7500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210622000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210622 21:14 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,10,0,33,'',0,'',0,00000000000000,00000000000000,'','',0.00,0.00,0.00,0.000,0.00,0.00,0.00,0.00,0,'',0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,'');
20210622 21:14 UPDATE documento_d2 SET linhas=0,no_doc=40,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223600,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=221.4000,val_pend=0.0000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210622 21:14 UPDATE reciboslinhas01 SET linha=10,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',n_doc=40,d_doc=20210618000000,d_venc=20210618000000,ref='',deb_cred='D',val_doc=221.40,val_pend=221.40,val_liqu=221.40,per_desc=0.000,val_desc=0.00,val_rec=221.40,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=180.00,tot_iva=41.40,tot_valor=221.40,suj_valor0=180.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=41.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=49 LIMIT 1;
20210622 21:14 UPDATE reciboslinhas01 SET linha=10,cor=0,no=33,doc_mov='D',tp=2,document='N/ Fatura',n_doc=40,d_doc=20210618000000,d_venc=20210618000000,ref='',deb_cred='D',val_doc=221.40,val_pend=221.40,val_liqu=221.40,per_desc=0.000,val_desc=0.00,val_rec=221.40,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=180.00,tot_iva=41.40,tot_valor=221.40,suj_valor0=180.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=41.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=49 LIMIT 1;
20210622 21:14 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=33,d_doc=20210622000000,d_venc=20210622000000,ref='',obs='Sr. Miguel(967843175)',valor=867.15,pendente=867.15,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=71 LIMIT 1;
20210622 21:14 UPDATE documento_r1 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210622000000,d_venc=20210622000000,h_doc=20000101211400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=867.1500,tot_desconto=0.0000,tot_liquido=867.1500,tot_iva=0.0000,tot_valor=867.1500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210622000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210622 21:15 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=20,doc_mov='R',tp=1,document='Recibo',no_doc=33,d_doc=20210622000000,d_venc=20210622000000,ref='',obs='Sr. Miguel(967843175)',valor=867.15,pendente=867.15,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=71 LIMIT 1;
20210622 21:15 UPDATE documento_r1 SET linhas=0,no_doc=33,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210622000000,d_venc=20210622000000,h_doc=20000101211400,no_cf=20,nome_cf='Sociedade de Madeiras Leite, Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel(967843175)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=867.1500,tot_desconto=0.0000,tot_liquido=867.1500,tot_iva=0.0000,tot_valor=867.1500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210622000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210625 08:36 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,41,0,'',0,0,'',20210625000000,20210625000000,20000101083600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210625 08:36 UPDATE documento_d2 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210625000000,d_venc=20210625000000,h_doc=20000101083600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210625 08:37 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,41,'','CuttinsolGren102(oleo corte)Emb.25Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210625 08:37 UPDATE documento_d2 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210625000000,d_venc=20210625000000,h_doc=20000101083600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210625 08:37 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=41,codigo='',designacao='CuttinsolGren102(oleo corte)Emb.25Lt',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=128 LIMIT 1;
20210625 08:37 UPDATE documento_d2 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210625000000,d_venc=20210625000000,h_doc=20000101083600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210625 08:37 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=41,codigo='',designacao='CuttinsolGren102(oleo corte)Emb.25Lt',unidade='',com_iva='',quantidade=25.000000,preco_unit=6.8000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=170.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=128 LIMIT 1;
20210625 08:38 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'D',2,'N/ Fatura',41,20210625000000,20210625000000,'','',209.10,209.10,'D',209.10,0.00,0.00,39.10,0.00,1.000000,1,0,'A','');
20210625 08:38 UPDATE documento_d2 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210625000000,d_venc=20210625000000,h_doc=20000101083600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=170.0000,tot_desconto=0.0000,tot_liquido=170.0000,tot_iva=39.1000,tot_valor=209.1000,val_pago=0.0000,val_pend=209.1000,suj_valor0=170.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210625 08:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='D',tp=2,document='N/ Fatura',no_doc=41,d_doc=20210625000000,d_venc=20210625000000,ref='',obs='',valor=209.10,pendente=209.10,deb_cred='D',debito=209.10,credito=0.00,acumulado=0.00,val_iva=39.10,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210625 08:38 UPDATE documento_d2 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210625000000,d_venc=20210625000000,h_doc=20000101083600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=170.0000,tot_desconto=0.0000,tot_liquido=170.0000,tot_iva=39.1000,tot_valor=209.1000,val_pago=0.0000,val_pend=209.1000,suj_valor0=170.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210629 21:30 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,39,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210629 21:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=39,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=43 LIMIT 1;
20210629 21:31 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,34,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210629 21:31 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=34,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=44 LIMIT 1;
20210629 21:34 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4800-095','','','');
20210629 21:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=34,nome_1='Francisco Fraga Rodrigues Unip.Lda',nome_2='',morada='Lugar do Monte Toriz, Fra‡Ćo E',localidade='Ferment”es - GuimarĆes',cod_post='4800-095',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506437850',telefone='253557637',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='aluminiosfraga@gmail.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=44 LIMIT 1;
20210629 21:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=34,nome_1='Francisco Fraga Rodrigues Unip.Lda',nome_2='',morada='Lugar do Monte Toriz, Fra‡Ćo E',localidade='Ferment”es - GuimarĆes',cod_post='4800-095',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506437850',telefone='253557637',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='aluminiosfraga@gmail.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=44 LIMIT 1;
20210629 21:36 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=34,nome_1='Francisco Fraga Rodrigues Unip.Lda',nome_2='',morada='Lugar do Monte Toriz, Fra‡Ćo E',localidade='Ferment”es - GuimarĆes',cod_post='4800-095',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='506437850',telefone='253557637',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='aluminiosfraga@gmail.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='966860700',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=44 LIMIT 1;
20210704 17:40 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,34,0,'',0,0,'',00000000000000,00000000000000,20000101174000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210704000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210704 17:40 UPDATE documento_r1 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=00000000000000,h_doc=20000101174000,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210704 17:43 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,32,'R',1,'Recibo',34,20210704000000,20210704000000,'','Sr. Paulo (964036294)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210704 17:43 UPDATE documento_r1 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174000,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210704 17:43 UPDATE documento_d2 SET linhas=0,no_doc=37,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210602000000,d_venc=20210602000000,h_doc=20000101182500,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=270.0000,tot_desconto=0.0000,tot_liquido=270.0000,tot_iva=62.1000,tot_valor=332.1000,val_pago=332.1000,val_pend=0.0000,suj_valor0=270.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=62.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=38 LIMIT 1;
20210704 17:43 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,34,'D',2,'N/ Fatura',37,20210602000000,20210602000000,'','D',332.10,332.10,332.10,0.000,0.00,332.10,0.00,0.00,0,'A',270.00,62.10,332.10,270.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,62.10,0.00,0.00,0.00,0,'');
20210704 17:43 UPDATE reciboslinhas01 SET linha=5,cor=0,no=34,doc_mov='D',tp=2,document='N/ Fatura',n_doc=37,d_doc=20210602000000,d_venc=20210602000000,ref='',deb_cred='D',val_doc=332.10,val_pend=332.10,val_liqu=332.10,per_desc=0.000,val_desc=0.00,val_rec=332.10,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=270.00,tot_iva=62.10,tot_valor=332.10,suj_valor0=270.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=62.10,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=50 LIMIT 1;
20210704 17:43 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=32,doc_mov='R',tp=1,document='Recibo',no_doc=34,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='Sr. Paulo (964036294)',valor=332.10,pendente=332.10,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=73 LIMIT 1;
20210704 17:43 UPDATE documento_r1 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174000,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=332.1000,tot_desconto=0.0000,tot_liquido=332.1000,tot_iva=0.0000,tot_valor=332.1000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210704 17:43 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=32,doc_mov='R',tp=1,document='Recibo',no_doc=34,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='Sr. Paulo (964036294)',valor=332.10,pendente=332.10,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=73 LIMIT 1;
20210704 17:43 UPDATE documento_r1 SET linhas=0,no_doc=34,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174000,no_cf=32,nome_cf='JoĆo Paulo Teixeira, Constru‡”es Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Paulo (964036294)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=332.1000,tot_desconto=0.0000,tot_liquido=332.1000,tot_iva=0.0000,tot_valor=332.1000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210704 17:47 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,35,0,'',0,0,'',20210704000000,00000000000000,20000101174700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210704000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210704 17:47 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,33,'R',1,'Recibo',35,20210704000000,20210704000000,'','Sr. MagalhĆes(9645630619)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210704 17:47 UPDATE documento_r1 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210704 17:47 UPDATE documento_d2 SET linhas=0,no_doc=38,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101222700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.0000,tot_desconto=0.0000,tot_liquido=300.0000,tot_iva=69.0000,tot_valor=369.0000,val_pago=369.0000,val_pend=0.0000,suj_valor0=300.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=69.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=39 LIMIT 1;
20210704 17:47 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,35,'D',2,'N/ Fatura',38,20210618000000,20210618000000,'','D',369.00,369.00,369.00,0.000,0.00,369.00,0.00,0.00,0,'A',300.00,69.00,369.00,300.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,69.00,0.00,0.00,0.00,0,'');
20210704 17:47 UPDATE reciboslinhas01 SET linha=5,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',n_doc=38,d_doc=20210618000000,d_venc=20210618000000,ref='',deb_cred='D',val_doc=369.00,val_pend=369.00,val_liqu=369.00,per_desc=0.000,val_desc=0.00,val_rec=369.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=51 LIMIT 1;
20210704 17:47 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=33,doc_mov='R',tp=1,document='Recibo',no_doc=35,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='Sr. MagalhĆes(9645630619)',valor=369.00,pendente=369.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=74 LIMIT 1;
20210704 17:47 UPDATE documento_r1 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=369.0000,tot_desconto=0.0000,tot_liquido=369.0000,tot_iva=0.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210704 17:47 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=33,doc_mov='R',tp=1,document='Recibo',no_doc=35,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='Sr. MagalhĆes(9645630619)',valor=369.00,pendente=369.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=74 LIMIT 1;
20210704 17:47 UPDATE documento_r1 SET linhas=0,no_doc=35,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174700,no_cf=33,nome_cf='Constru‡”es Marques & MagalhĆes Lda',desconto=0.0000,linha_pre=0,observacao='Sr. MagalhĆes(9645630619)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=369.0000,tot_desconto=0.0000,tot_liquido=369.0000,tot_iva=0.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=41 LIMIT 1;
20210704 17:49 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,36,0,'',0,0,'',20210704000000,00000000000000,20000101174900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210704000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210704 17:49 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,21,'R',1,'Recibo',36,20210704000000,20210704000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210704 17:49 UPDATE documento_r1 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174900,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210704 17:49 UPDATE documento_d2 SET linhas=0,no_doc=39,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210618000000,d_venc=20210618000000,h_doc=20000101223200,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=221.4000,val_pend=0.0000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=40 LIMIT 1;
20210704 17:49 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,36,'D',2,'N/ Fatura',39,20210618000000,20210618000000,'','D',221.40,221.40,221.40,0.000,0.00,221.40,0.00,0.00,0,'A',180.00,41.40,221.40,180.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,41.40,0.00,0.00,0.00,0,'');
20210704 17:49 UPDATE reciboslinhas01 SET linha=5,cor=0,no=36,doc_mov='D',tp=2,document='N/ Fatura',n_doc=39,d_doc=20210618000000,d_venc=20210618000000,ref='',deb_cred='D',val_doc=221.40,val_pend=221.40,val_liqu=221.40,per_desc=0.000,val_desc=0.00,val_rec=221.40,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=180.00,tot_iva=41.40,tot_valor=221.40,suj_valor0=180.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=41.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=52 LIMIT 1;
20210704 17:49 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='R',tp=1,document='Recibo',no_doc=36,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=75 LIMIT 1;
20210704 17:49 UPDATE documento_r1 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174900,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.4000,tot_desconto=0.0000,tot_liquido=221.4000,tot_iva=0.0000,tot_valor=221.4000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210704 17:49 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=21,doc_mov='R',tp=1,document='Recibo',no_doc=36,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=75 LIMIT 1;
20210704 17:49 UPDATE documento_r1 SET linhas=0,no_doc=36,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101174900,no_cf=21,nome_cf='CARLOS MANUEL LOPES MARTINHO',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.4000,tot_desconto=0.0000,tot_liquido=221.4000,tot_iva=0.0000,tot_valor=221.4000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210704 17:50 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,37,0,'',0,0,'',20210704000000,00000000000000,20000101175000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210704000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210704 17:51 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,6,'R',1,'Recibo',37,20210704000000,20210704000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210704 17:51 UPDATE documento_r1 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101175000,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210704 17:51 UPDATE documento_d2 SET linhas=0,no_doc=41,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210625000000,d_venc=20210625000000,h_doc=20000101083600,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=170.0000,tot_desconto=0.0000,tot_liquido=170.0000,tot_iva=39.1000,tot_valor=209.1000,val_pago=209.1000,val_pend=0.0000,suj_valor0=170.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=39.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=42 LIMIT 1;
20210704 17:51 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,37,'D',2,'N/ Fatura',41,20210625000000,20210625000000,'','D',209.10,209.10,209.10,0.000,0.00,209.10,0.00,0.00,0,'A',170.00,39.10,209.10,170.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,39.10,0.00,0.00,0.00,0,'');
20210704 17:51 UPDATE reciboslinhas01 SET linha=5,cor=0,no=37,doc_mov='D',tp=2,document='N/ Fatura',n_doc=41,d_doc=20210625000000,d_venc=20210625000000,ref='',deb_cred='D',val_doc=209.10,val_pend=209.10,val_liqu=209.10,per_desc=0.000,val_desc=0.00,val_rec=209.10,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=170.00,tot_iva=39.10,tot_valor=209.10,suj_valor0=170.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=39.10,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=53 LIMIT 1;
20210704 17:51 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=37,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='',valor=209.10,pendente=209.10,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=76 LIMIT 1;
20210704 17:51 UPDATE documento_r1 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101175000,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=209.1000,tot_desconto=0.0000,tot_liquido=209.1000,tot_iva=0.0000,tot_valor=209.1000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210704 17:51 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=6,doc_mov='R',tp=1,document='Recibo',no_doc=37,d_doc=20210704000000,d_venc=20210704000000,ref='',obs='',valor=209.10,pendente=209.10,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=76 LIMIT 1;
20210704 17:51 UPDATE documento_r1 SET linhas=0,no_doc=37,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210704000000,d_venc=20210704000000,h_doc=20000101175000,no_cf=6,nome_cf='DLR- Metalomec�nica Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=209.1000,tot_desconto=0.0000,tot_liquido=209.1000,tot_iva=0.0000,tot_valor=209.1000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210704000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210712 12:55 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,35,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210712 12:55 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=35,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=45 LIMIT 1;
20210712 12:55 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,233,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210712 12:55 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=233,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=46 LIMIT 1;
20210712 12:57 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4835-301','','','');
20210712 13:00 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=35,nome_1='MC, M‚ritos Cordeais Lda',nome_2='',morada='Rua de Agrelos',localidade='Selho S. Jorge - GuimarĆes',cod_post='4835-301',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='514 788 151',telefone='253 09826',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='meritoscordiais@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Miguel Oliveira 915 569 151',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=45 LIMIT 1;
20210712 13:00 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=35,nome_1='MC, M‚ritos Cordeais Lda',nome_2='',morada='Rua de Agrelos',localidade='Selho S. Jorge - GuimarĆes',cod_post='4835-301',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='514 788 151',telefone='253 09826',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='meritoscordiais@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Miguel Oliveira 915 569 151',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=45 LIMIT 1;
20210712 13:00 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,36,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210712 13:00 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=36,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=47 LIMIT 1;
20210716 10:41 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,42,0,'',0,0,'',20210716000000,20210716000000,20000101104100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210716 10:41 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210716 10:42 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,42,'','PERSIUSOS/A (EMB.2OLt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210716 10:42 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210716 10:42 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=42,codigo='',designacao='PERSIUSOS/A (EMB.2OLt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=129 LIMIT 1;
20210716 10:42 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210716 10:42 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=42,codigo='',designacao='PERSIUSOS/A (EMB.2OLt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=120.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=129 LIMIT 1;
20210716 10:42 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,35,'D',2,'N/ Fatura',42,20210716000000,20210716000000,'','Sr. Miguel Oliveira 915 569 151',147.60,147.60,'D',147.60,0.00,0.00,27.60,0.00,1.000000,0,0,'A','');
20210716 10:42 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210716 10:42 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,42,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210716 10:43 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',no_doc=42,d_doc=20210716000000,d_venc=20210716000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210716 10:43 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210716 10:43 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=42,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=130 LIMIT 1;
20210716 10:43 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',no_doc=42,d_doc=20210716000000,d_venc=20210716000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210716 10:43 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210716 10:46 UPDATE documento_d2 SET convertido='0' WHERE no_doc='42' and serdoc='A' 
20210716 10:46 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,43,0,'',0,0,'',20210716000000,20210716000000,20000101104600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210721 14:27 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 14:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,43,'','Braculant (Emb,30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210721 14:28 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 14:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=43,codigo='',designacao='Braculant (Emb,30Lt)',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=131 LIMIT 1;
20210721 14:28 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 14:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=43,codigo='',designacao='Braculant (Emb,30Lt)',unidade='',com_iva='',quantidade=2.000000,preco_unit=6.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=13.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=131 LIMIT 1;
20210721 14:28 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,34,'D',2,'N/ Fatura',43,20210716000000,20210716000000,'','966860700',15.99,15.99,'D',15.99,0.00,0.00,2.99,0.00,1.000000,0,0,'A','');
20210721 14:28 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=13.0000,tot_desconto=0.0000,tot_liquido=13.0000,tot_iva=2.9900,tot_valor=15.9900,val_pago=0.0000,val_pend=15.9900,suj_valor0=13.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=2.9900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 14:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=43,codigo='',designacao='Braculant (Emb,30Lt)',unidade='',com_iva='',quantidade=60.000000,preco_unit=6.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=390.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=131 LIMIT 1;
20210721 14:28 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=34,doc_mov='D',tp=2,document='N/ Fatura',no_doc=43,d_doc=20210716000000,d_venc=20210716000000,ref='',obs='966860700',valor=479.70,pendente=479.70,deb_cred='D',debito=479.70,credito=0.00,acumulado=0.00,val_iva=89.70,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210721 14:28 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=390.0000,tot_desconto=0.0000,tot_liquido=390.0000,tot_iva=89.7000,tot_valor=479.7000,val_pago=0.0000,val_pend=479.7000,suj_valor0=390.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=89.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 14:29 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,34,'D',2,'N/ Fatura',43,20210722000000,20210722000000,'','966860700',479.70,479.70,'D',479.70,0.00,0.00,89.70,0.00,1.000000,0,0,'A','');
20210721 14:29 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=390.0000,tot_desconto=0.0000,tot_liquido=390.0000,tot_iva=89.7000,tot_valor=479.7000,val_pago=0.0000,val_pend=479.7000,suj_valor0=390.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=89.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 14:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=34,doc_mov='D',tp=2,document='N/ Fatura',no_doc=43,d_doc=20210722000000,d_venc=20210722000000,ref='',obs='966860700',valor=479.70,pendente=479.70,deb_cred='D',debito=479.70,credito=0.00,acumulado=0.00,val_iva=89.70,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210721 14:29 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=390.0000,tot_desconto=0.0000,tot_liquido=390.0000,tot_iva=89.7000,tot_valor=479.7000,val_pago=0.0000,val_pend=479.7000,suj_valor0=390.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=89.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210721 19:22 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,44,0,'',0,0,'',20210721000000,20210721000000,20000101192200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210721 19:23 UPDATE documento_d2 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210721 19:24 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,44,'','Cuttinsol/5, oleo corte(Emb.25Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210721 19:24 UPDATE documento_d2 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210721 19:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=44,codigo='',designacao='Cuttinsol/5, oleo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=132 LIMIT 1;
20210721 19:24 UPDATE documento_d2 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210721 19:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=44,codigo='',designacao='Cuttinsol/5, oleo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=5.6500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=141.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=132 LIMIT 1;
20210721 19:25 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'D',2,'N/ Fatura',44,20210722000000,20210722000000,'','',173.74,173.74,'D',173.74,0.00,0.00,32.49,0.00,1.000000,0,0,'A','');
20210721 19:25 UPDATE documento_d2 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=0.0000,val_pend=173.7400,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210721 19:25 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=44,d_doc=20210722000000,d_venc=20210722000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='D',debito=173.74,credito=0.00,acumulado=0.00,val_iva=32.49,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210721 19:25 UPDATE documento_d2 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=0.0000,val_pend=173.7400,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210721 19:28 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,45,0,'',0,0,'',20210721000000,20210721000000,20000101192800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210721 19:28 UPDATE documento_d2 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192800,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210721 19:29 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,45,'','Braval 35(Hidrof.) Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210721 19:29 UPDATE documento_d2 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192800,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210721 19:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=45,codigo='',designacao='Braval 35(Hidrof.) Emb.30Lt',unidade='',com_iva='',quantidade=60.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=133 LIMIT 1;
20210721 19:29 UPDATE documento_d2 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192800,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210721 19:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=45,codigo='',designacao='Braval 35(Hidrof.) Emb.30Lt',unidade='',com_iva='',quantidade=60.000000,preco_unit=7.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=420.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=133 LIMIT 1;
20210721 19:29 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,10,'D',2,'N/ Fatura',45,20210722000000,20210722000000,'','',516.60,516.60,'D',516.60,0.00,0.00,96.60,0.00,1.000000,0,0,'A','');
20210721 19:29 UPDATE documento_d2 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192800,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210721 19:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='D',tp=2,document='N/ Fatura',no_doc=45,d_doc=20210722000000,d_venc=20210722000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='D',debito=516.60,credito=0.00,acumulado=0.00,val_iva=96.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210721 19:29 UPDATE documento_d2 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192800,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=0.0000,val_pend=516.6000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210723 21:31 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,46,0,'',0,0,'',20210723000000,20210723000000,20000101213100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210726 18:12 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,234,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210726 18:14 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=24,nome_1='CON',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=28 LIMIT 1;
20210726 18:15 DELETE FROM clientes__contactos_ WHERE  no=234 
20210726 18:15 DELETE FROM artigos_cliente WHERE  no=234 
20210726 18:15 DELETE FROM cliente_morada WHERE  numero=234 
20210726 18:15 DELETE FROM clientes__contactos_ WHERE  no=233 
20210726 18:15 DELETE FROM artigos_cliente WHERE  no=233 
20210726 18:15 DELETE FROM cliente_morada WHERE  numero=233 
20210726 18:15 DELETE FROM clientes__contactos_ WHERE  no=232 
20210726 18:15 DELETE FROM artigos_cliente WHERE  no=232 
20210726 18:15 DELETE FROM cliente_morada WHERE  numero=232 
20210726 18:15 DELETE FROM clientes__contactos_ WHERE  no=231 
20210726 18:15 DELETE FROM artigos_cliente WHERE  no=231 
20210726 18:15 DELETE FROM cliente_morada WHERE  numero=231 
20210726 18:15 DELETE FROM clientes__contactos_ WHERE  no=230 
20210726 18:15 DELETE FROM artigos_cliente WHERE  no=230 
20210726 18:15 DELETE FROM cliente_morada WHERE  numero=230 
20210726 18:16 DELETE FROM clientes__contactos_ WHERE  no=229 
20210726 18:16 DELETE FROM artigos_cliente WHERE  no=229 
20210726 18:16 DELETE FROM cliente_morada WHERE  numero=229 
20210726 18:16 DELETE FROM clientes__contactos_ WHERE  no=228 
20210726 18:16 DELETE FROM artigos_cliente WHERE  no=228 
20210726 18:16 DELETE FROM cliente_morada WHERE  numero=228 
20210726 18:16 DELETE FROM clientes__contactos_ WHERE  no=39 
20210726 18:16 DELETE FROM artigos_cliente WHERE  no=39 
20210726 18:16 DELETE FROM cliente_morada WHERE  numero=39 
20210726 18:16 DELETE FROM clientes__contactos_ WHERE  no=36 
20210726 18:16 DELETE FROM artigos_cliente WHERE  no=36 
20210726 18:16 DELETE FROM cliente_morada WHERE  numero=36 
20210726 18:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=24,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=28 LIMIT 1;
20210726 18:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,46,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210726 18:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,46,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210726 18:19 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,46,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210726 18:19 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=24,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='POVOA DE LANHOSO',cod_post='',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=28 LIMIT 1;
20210726 18:22 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,36,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210726 18:23 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,37,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210726 18:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=300,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=50 LIMIT 1;
20210726 18:23 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,301,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210726 18:23 DELETE FROM clientes__contactos_ WHERE  no=301 
20210726 18:23 DELETE FROM artigos_cliente WHERE  no=301 
20210726 18:23 DELETE FROM cliente_morada WHERE  numero=301 
20210726 18:24 DELETE FROM clientes__contactos_ WHERE  no=300 
20210726 18:24 DELETE FROM artigos_cliente WHERE  no=300 
20210726 18:24 DELETE FROM cliente_morada WHERE  numero=300 
20210726 18:24 DELETE FROM clientes__contactos_ WHERE  no=36 
20210726 18:24 DELETE FROM artigos_cliente WHERE  no=36 
20210726 18:24 DELETE FROM cliente_morada WHERE  numero=36 
20210726 18:29 UPDATE documento_d2 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210723000000,d_venc=20210723000000,h_doc=20000101213100,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210726 18:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=46,codigo='',designacao='Ferinox/2(Emb,3oLt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=134 LIMIT 1;
20210726 18:29 UPDATE documento_d2 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210723000000,d_venc=20210723000000,h_doc=20000101213100,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210726 18:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=46,codigo='',designacao='Ferinox/2(Emb,3oLt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=134 LIMIT 1;
20210726 18:29 UPDATE documento_d2 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210723000000,d_venc=20210723000000,h_doc=20000101213100,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210726 18:29 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=46,codigo='',designacao='Ferinox/2(Emb,3oLt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=8.9000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=267.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=134 LIMIT 1;
20210726 18:30 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,28,'D',2,'N/ Fatura',46,20210723000000,20210723000000,'','Sr. Marques(919275061)-918796279',328.41,328.41,'D',328.41,0.00,0.00,61.41,0.00,1.000000,0,0,'A','');
20210726 18:30 UPDATE documento_d2 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210723000000,d_venc=20210723000000,h_doc=20000101213100,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=267.0000,tot_desconto=0.0000,tot_liquido=267.0000,tot_iva=61.4100,tot_valor=328.4100,val_pago=0.0000,val_pend=328.4100,suj_valor0=267.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=61.4100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210726 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='D',tp=2,document='N/ Fatura',no_doc=46,d_doc=20210723000000,d_venc=20210723000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=328.41,pendente=328.41,deb_cred='D',debito=328.41,credito=0.00,acumulado=0.00,val_iva=61.41,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210726 18:30 UPDATE documento_d2 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210723000000,d_venc=20210723000000,h_doc=20000101213100,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=267.0000,tot_desconto=0.0000,tot_liquido=267.0000,tot_iva=61.4100,tot_valor=328.4100,val_pago=0.0000,val_pend=328.4100,suj_valor0=267.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=61.4100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210726 18:34 UPDATE documento_d2 SET convertido='0' WHERE no_doc='46' and serdoc='A' 
20210726 18:34 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,47,0,'',0,0,'',20210726000000,20210726000000,20000101183400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210730 08:34 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210726000000,d_venc=20210726000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210730 08:35 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,47,'','Persinod/','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210730 08:35 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210726000000,d_venc=20210726000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210730 08:36 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=47,codigo='',designacao='Persinod/A(Emb.30Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=137 LIMIT 1;
20210730 08:36 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210726000000,d_venc=20210726000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210730 08:36 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=47,codigo='',designacao='Persinod/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=137 LIMIT 1;
20210730 08:36 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210726000000,d_venc=20210726000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210730 08:36 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=47,codigo='',designacao='Persinod/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=137 LIMIT 1;
20210730 08:37 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,14,'D',2,'N/ Fatura',47,20210730000000,20210730000000,'','',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,1,0,'A','');
20210730 08:37 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210730000000,d_venc=20210730000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210730 08:37 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=14,doc_mov='D',tp=2,document='N/ Fatura',no_doc=47,d_doc=20210730000000,d_venc=20210730000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210730 08:37 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210730000000,d_venc=20210730000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210731 11:49 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,38,0,'',0,0,'',20210731000000,00000000000000,20000101114900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210731000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210731 11:50 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,35,'R',1,'Recibo',38,20210731000000,20210731000000,'','Sr. Miguel Oliveira 915 569 151',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210731 11:50 UPDATE documento_r1 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101114900,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210731 11:50 UPDATE documento_d2 SET linhas=0,no_doc=42,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210716000000,d_venc=20210716000000,h_doc=20000101104100,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=147.6000,val_pend=0.0000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=43 LIMIT 1;
20210731 11:50 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,38,'D',2,'N/ Fatura',42,20210716000000,20210716000000,'','D',147.60,147.60,147.60,0.000,0.00,147.60,0.00,0.00,0,'A',120.00,27.60,147.60,120.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,27.60,0.00,0.00,0.00,0,'');
20210731 11:50 UPDATE reciboslinhas01 SET linha=5,cor=0,no=38,doc_mov='D',tp=2,document='N/ Fatura',n_doc=42,d_doc=20210716000000,d_venc=20210716000000,ref='',deb_cred='D',val_doc=147.60,val_pend=147.60,val_liqu=147.60,per_desc=0.000,val_desc=0.00,val_rec=147.60,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=120.00,tot_iva=27.60,tot_valor=147.60,suj_valor0=120.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=54 LIMIT 1;
20210731 11:50 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='R',tp=1,document='Recibo',no_doc=38,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=147.60,pendente=147.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=83 LIMIT 1;
20210731 11:50 UPDATE documento_r1 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101114900,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.6000,tot_desconto=0.0000,tot_liquido=147.6000,tot_iva=0.0000,tot_valor=147.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210731 11:52 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='R',tp=1,document='Recibo',no_doc=38,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=147.60,pendente=147.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=83 LIMIT 1;
20210731 11:52 UPDATE documento_r1 SET linhas=0,no_doc=38,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101114900,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.6000,tot_desconto=0.0000,tot_liquido=147.6000,tot_iva=0.0000,tot_valor=147.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210731 11:53 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,39,0,'',0,0,'',20210731000000,00000000000000,20000101115300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210731000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210731 11:54 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,34,'R',1,'Recibo',39,20210731000000,20210731000000,'','966860700',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210731 11:54 UPDATE documento_r1 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115300,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210731 11:54 UPDATE documento_d2 SET linhas=0,no_doc=43,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101104600,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=390.0000,tot_desconto=0.0000,tot_liquido=390.0000,tot_iva=89.7000,tot_valor=479.7000,val_pago=479.7000,val_pend=0.0000,suj_valor0=390.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=89.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=44 LIMIT 1;
20210731 11:54 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,39,'D',2,'N/ Fatura',43,20210722000000,20210722000000,'','D',479.70,479.70,479.70,0.000,0.00,479.70,0.00,0.00,0,'A',390.00,89.70,479.70,390.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,89.70,0.00,0.00,0.00,0,'');
20210731 11:54 UPDATE reciboslinhas01 SET linha=5,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',n_doc=43,d_doc=20210722000000,d_venc=20210722000000,ref='',deb_cred='D',val_doc=479.70,val_pend=479.70,val_liqu=479.70,per_desc=0.000,val_desc=0.00,val_rec=479.70,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=390.00,tot_iva=89.70,tot_valor=479.70,suj_valor0=390.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=89.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=55 LIMIT 1;
20210731 11:54 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=34,doc_mov='R',tp=1,document='Recibo',no_doc=39,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='966860700',valor=479.70,pendente=479.70,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20210731 11:54 UPDATE documento_r1 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115300,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=479.7000,tot_desconto=0.0000,tot_liquido=479.7000,tot_iva=0.0000,tot_valor=479.7000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210731 11:54 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=34,doc_mov='R',tp=1,document='Recibo',no_doc=39,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='966860700',valor=479.70,pendente=479.70,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=84 LIMIT 1;
20210731 11:54 UPDATE documento_r1 SET linhas=0,no_doc=39,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115300,no_cf=34,nome_cf='Francisco Fraga Rodrigues Unip.Lda',desconto=0.0000,linha_pre=0,observacao='966860700',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=479.7000,tot_desconto=0.0000,tot_liquido=479.7000,tot_iva=0.0000,tot_valor=479.7000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210731 11:55 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,40,0,'',0,0,'',20210731000000,00000000000000,20000101115500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210731000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210731 11:55 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'R',1,'Recibo',40,20210731000000,20210731000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210731 11:55 UPDATE documento_r1 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115500,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210731 11:56 UPDATE documento_d2 SET linhas=0,no_doc=44,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=141.2500,tot_desconto=0.0000,tot_liquido=141.2500,tot_iva=32.4900,tot_valor=173.7400,val_pago=173.7400,val_pend=0.0000,suj_valor0=141.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=32.4900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=45 LIMIT 1;
20210731 11:56 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,40,'D',2,'N/ Fatura',44,20210722000000,20210722000000,'','D',173.74,173.74,173.74,0.000,0.00,173.74,0.00,0.00,0,'A',141.25,32.49,173.74,141.25,0.00,0.00,0.00,23.00,13.00,6.00,0.00,32.49,0.00,0.00,0.00,0,'');
20210731 11:56 UPDATE reciboslinhas01 SET linha=5,cor=0,no=40,doc_mov='D',tp=2,document='N/ Fatura',n_doc=44,d_doc=20210722000000,d_venc=20210722000000,ref='',deb_cred='D',val_doc=173.74,val_pend=173.74,val_liqu=173.74,per_desc=0.000,val_desc=0.00,val_rec=173.74,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=141.25,tot_iva=32.49,tot_valor=173.74,suj_valor0=141.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=32.49,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=56 LIMIT 1;
20210731 11:56 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=40,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=85 LIMIT 1;
20210731 11:56 UPDATE documento_r1 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115500,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=173.7400,tot_desconto=0.0000,tot_liquido=173.7400,tot_iva=0.0000,tot_valor=173.7400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210731 11:56 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=40,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='',valor=173.74,pendente=173.74,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=85 LIMIT 1;
20210731 11:56 UPDATE documento_r1 SET linhas=0,no_doc=40,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115500,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=173.7400,tot_desconto=0.0000,tot_liquido=173.7400,tot_iva=0.0000,tot_valor=173.7400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210731 11:57 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,41,0,'',0,0,'',20210731000000,00000000000000,20000101115700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210731000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210731 11:57 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,10,'R',1,'Recibo',41,20210731000000,20210731000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210731 11:57 UPDATE documento_r1 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115700,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210731 11:57 UPDATE documento_d2 SET linhas=0,no_doc=45,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210722000000,d_venc=20210722000000,h_doc=20000101192800,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=420.0000,tot_desconto=0.0000,tot_liquido=420.0000,tot_iva=96.6000,tot_valor=516.6000,val_pago=516.6000,val_pend=0.0000,suj_valor0=420.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=96.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=46 LIMIT 1;
20210731 11:57 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,41,'D',2,'N/ Fatura',45,20210722000000,20210722000000,'','D',516.60,516.60,516.60,0.000,0.00,516.60,0.00,0.00,0,'A',420.00,96.60,516.60,420.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,96.60,0.00,0.00,0.00,0,'');
20210731 11:57 UPDATE reciboslinhas01 SET linha=5,cor=0,no=41,doc_mov='D',tp=2,document='N/ Fatura',n_doc=45,d_doc=20210722000000,d_venc=20210722000000,ref='',deb_cred='D',val_doc=516.60,val_pend=516.60,val_liqu=516.60,per_desc=0.000,val_desc=0.00,val_rec=516.60,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=420.00,tot_iva=96.60,tot_valor=516.60,suj_valor0=420.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=96.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=57 LIMIT 1;
20210731 11:57 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='R',tp=1,document='Recibo',no_doc=41,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=86 LIMIT 1;
20210731 11:57 UPDATE documento_r1 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115700,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210731 11:57 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='R',tp=1,document='Recibo',no_doc=41,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='',valor=516.60,pendente=516.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=86 LIMIT 1;
20210731 11:57 UPDATE documento_r1 SET linhas=0,no_doc=41,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115700,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=516.6000,tot_desconto=0.0000,tot_liquido=516.6000,tot_iva=0.0000,tot_valor=516.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210731 11:58 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,42,0,'',0,0,'',20210731000000,00000000000000,20000101115800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210731000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210731 11:59 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,28,'R',1,'Recibo',42,20210731000000,20210731000000,'','Sr. Marques(919275061)-918796279',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210731 11:59 UPDATE documento_r1 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115800,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210731 11:59 UPDATE documento_d2 SET linhas=0,no_doc=46,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210723000000,d_venc=20210723000000,h_doc=20000101213100,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=267.0000,tot_desconto=0.0000,tot_liquido=267.0000,tot_iva=61.4100,tot_valor=328.4100,val_pago=328.4100,val_pend=0.0000,suj_valor0=267.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=61.4100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=47 LIMIT 1;
20210731 11:59 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,42,'D',2,'N/ Fatura',46,20210723000000,20210723000000,'','D',328.41,328.41,328.41,0.000,0.00,328.41,0.00,0.00,0,'A',267.00,61.41,328.41,267.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,61.41,0.00,0.00,0.00,0,'');
20210731 11:59 UPDATE reciboslinhas01 SET linha=5,cor=0,no=42,doc_mov='D',tp=2,document='N/ Fatura',n_doc=46,d_doc=20210723000000,d_venc=20210723000000,ref='',deb_cred='D',val_doc=328.41,val_pend=328.41,val_liqu=328.41,per_desc=0.000,val_desc=0.00,val_rec=328.41,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=267.00,tot_iva=61.41,tot_valor=328.41,suj_valor0=267.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=61.41,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=58 LIMIT 1;
20210731 11:59 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='R',tp=1,document='Recibo',no_doc=42,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=328.41,pendente=328.41,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=87 LIMIT 1;
20210731 11:59 UPDATE documento_r1 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115800,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.4100,tot_desconto=0.0000,tot_liquido=328.4100,tot_iva=0.0000,tot_valor=328.4100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210731 11:59 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=28,doc_mov='R',tp=1,document='Recibo',no_doc=42,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='Sr. Marques(919275061)-918796279',valor=328.41,pendente=328.41,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=87 LIMIT 1;
20210731 11:59 UPDATE documento_r1 SET linhas=0,no_doc=42,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101115800,no_cf=28,nome_cf='BARREIRAS, SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Marques(919275061)-918796279',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=328.4100,tot_desconto=0.0000,tot_liquido=328.4100,tot_iva=0.0000,tot_valor=328.4100,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210731 12:00 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,43,0,'',0,0,'',20210731000000,00000000000000,20000101120000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210731000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210731 12:00 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,14,'R',1,'Recibo',43,20210731000000,20210731000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210731 12:00 UPDATE documento_r1 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101120000,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210731 12:00 UPDATE documento_d2 SET linhas=0,no_doc=47,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210730000000,d_venc=20210730000000,h_doc=20000101183400,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=221.4000,val_pend=0.0000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=48 LIMIT 1;
20210731 12:00 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,43,'D',2,'N/ Fatura',47,20210730000000,20210730000000,'','D',221.40,221.40,221.40,0.000,0.00,221.40,0.00,0.00,0,'A',180.00,41.40,221.40,180.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,41.40,0.00,0.00,0.00,0,'');
20210731 12:00 UPDATE reciboslinhas01 SET linha=5,cor=0,no=43,doc_mov='D',tp=2,document='N/ Fatura',n_doc=47,d_doc=20210730000000,d_venc=20210730000000,ref='',deb_cred='D',val_doc=221.40,val_pend=221.40,val_liqu=221.40,per_desc=0.000,val_desc=0.00,val_rec=221.40,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=180.00,tot_iva=41.40,tot_valor=221.40,suj_valor0=180.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=41.40,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=59 LIMIT 1;
20210731 12:00 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=14,doc_mov='R',tp=1,document='Recibo',no_doc=43,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=88 LIMIT 1;
20210731 12:00 UPDATE documento_r1 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101120000,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.4000,tot_desconto=0.0000,tot_liquido=221.4000,tot_iva=0.0000,tot_valor=221.4000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210731 12:00 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=14,doc_mov='R',tp=1,document='Recibo',no_doc=43,d_doc=20210731000000,d_venc=20210731000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=88 LIMIT 1;
20210731 12:00 UPDATE documento_r1 SET linhas=0,no_doc=43,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210731000000,d_venc=20210731000000,h_doc=20000101120000,no_cf=14,nome_cf='PAUTA&EXIGENTE Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=221.4000,tot_desconto=0.0000,tot_liquido=221.4000,tot_iva=0.0000,tot_valor=221.4000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210731000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210803 17:31 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,48,0,'',0,0,'',20210803000000,20210803000000,20000101173100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210803 17:31 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210803000000,d_venc=20210803000000,h_doc=20000101173100,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210803 17:34 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,48,'','Metedesc/CS(oleo descofrante)Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210803 17:34 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210803000000,d_venc=20210803000000,h_doc=20000101173100,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210803 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=48,codigo='',designacao='Metedesc/CS(oleo descofrante)Emb.30Lt',unidade='',com_iva='',quantidade=90.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=138 LIMIT 1;
20210803 17:35 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210803000000,d_venc=20210803000000,h_doc=20000101173100,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210803 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=48,codigo='',designacao='Metedesc/CS(oleo descofrante)Emb.30Lt',unidade='',com_iva='',quantidade=90.000000,preco_unit=3.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=324.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=138 LIMIT 1;
20210803 17:36 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,10,'D',2,'N/ Fatura',48,20210804000000,20210804000000,'','',398.52,398.52,'D',398.52,0.00,0.00,74.52,0.00,1.000000,0,0,'A','');
20210803 17:36 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101173100,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=324.0000,tot_desconto=0.0000,tot_liquido=324.0000,tot_iva=74.5200,tot_valor=398.5200,val_pago=0.0000,val_pend=398.5200,suj_valor0=324.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=74.5200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210803 17:36 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='D',tp=2,document='N/ Fatura',no_doc=48,d_doc=20210804000000,d_venc=20210804000000,ref='',obs='',valor=398.52,pendente=398.52,deb_cred='D',debito=398.52,credito=0.00,acumulado=0.00,val_iva=74.52,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210803 17:36 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101173100,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=324.0000,tot_desconto=0.0000,tot_liquido=324.0000,tot_iva=74.5200,tot_valor=398.5200,val_pago=0.0000,val_pend=398.5200,suj_valor0=324.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=74.5200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210803 17:40 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,49,0,'',0,0,'',20210804000000,20210804000000,20000101174000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210803 17:40 UPDATE documento_d2 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101174000,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210803 17:41 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,49,'','Persinod/A(Tira n˘doas)Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210803 17:41 UPDATE documento_d2 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101174000,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210803 17:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=49,codigo='',designacao='Persinod/A(Tira n˘doas)Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=139 LIMIT 1;
20210803 17:41 UPDATE documento_d2 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101174000,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210803 17:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=49,codigo='',designacao='Persinod/A(Tira n˘doas)Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=189.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=139 LIMIT 1;
20210803 17:41 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,30,'D',2,'N/ Fatura',49,20210804000000,20210804000000,'','D.DULCE',232.47,232.47,'D',232.47,0.00,0.00,43.47,0.00,1.000000,0,0,'A','');
20210803 17:41 UPDATE documento_d2 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101174000,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=189.0000,tot_desconto=0.0000,tot_liquido=189.0000,tot_iva=43.4700,tot_valor=232.4700,val_pago=0.0000,val_pend=232.4700,suj_valor0=189.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=43.4700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210803 17:41 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='D',tp=2,document='N/ Fatura',no_doc=49,d_doc=20210804000000,d_venc=20210804000000,ref='',obs='D.DULCE',valor=232.47,pendente=232.47,deb_cred='D',debito=232.47,credito=0.00,acumulado=0.00,val_iva=43.47,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210803 17:41 UPDATE documento_d2 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101174000,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=189.0000,tot_desconto=0.0000,tot_liquido=189.0000,tot_iva=43.4700,tot_valor=232.4700,val_pago=0.0000,val_pend=232.4700,suj_valor0=189.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=43.4700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210814 15:41 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,50,0,'',0,0,'',20210814000000,20210814000000,20000101154100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210814 15:41 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:42 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,50,'','Pesiusos/L(Emb.10Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210814 15:42 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:42 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=50,codigo='',designacao='Pesiusos/L(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=140 LIMIT 1;
20210814 15:42 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:42 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=50,codigo='',designacao='Pesiusos/L(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=1.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=64.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=140 LIMIT 1;
20210814 15:42 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Fatura',50,20210814000000,20210814000000,'','',78.72,78.72,'D',78.72,0.00,0.00,14.72,0.00,1.000000,0,0,'A','');
20210814 15:42 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=64.0000,tot_desconto=0.0000,tot_liquido=64.0000,tot_iva=14.7200,tot_valor=78.7200,val_pago=0.0000,val_pend=78.7200,suj_valor0=64.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:42 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,50,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210814 15:44 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=50,codigo='',designacao='S.Gel/Banho(Emb.10Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=141 LIMIT 1;
20210814 15:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=50,d_doc=20210814000000,d_venc=20210814000000,ref='',obs='',valor=78.72,pendente=78.72,deb_cred='D',debito=78.72,credito=0.00,acumulado=0.00,val_iva=14.72,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210814 15:44 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=64.0000,tot_desconto=0.0000,tot_liquido=64.0000,tot_iva=14.7200,tot_valor=78.7200,val_pago=0.0000,val_pend=78.7200,suj_valor0=64.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:44 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=50,codigo='',designacao='S.Gel/Banho(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=141 LIMIT 1;
20210814 15:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=50,d_doc=20210814000000,d_venc=20210814000000,ref='',obs='',valor=78.72,pendente=78.72,deb_cred='D',debito=78.72,credito=0.00,acumulado=0.00,val_iva=14.72,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210814 15:44 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=64.0000,tot_desconto=0.0000,tot_liquido=64.0000,tot_iva=14.7200,tot_valor=78.7200,val_pago=0.0000,val_pend=78.7200,suj_valor0=64.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:44 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=50,codigo='',designacao='S.Gel/Banho(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=3.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=132.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=141 LIMIT 1;
20210814 15:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=50,d_doc=20210814000000,d_venc=20210814000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210814 15:44 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210814000000,d_venc=20210814000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:44 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Fatura',50,20210816000000,20210816000000,'','',241.08,241.08,'D',241.08,0.00,0.00,45.08,0.00,1.000000,0,0,'A','');
20210814 15:44 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210816000000,d_venc=20210816000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210814 15:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=50,d_doc=20210816000000,d_venc=20210816000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20210814 15:44 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210816000000,d_venc=20210816000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210816 17:38 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,51,0,'',0,0,'',20210816000000,20210816000000,20000101173800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210816 17:38 UPDATE documento_d2 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210816000000,d_venc=20210816000000,h_doc=20000101173800,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210816 17:39 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,51,'','Motorclean/LMS-Motores(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210816 17:39 UPDATE documento_d2 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210816000000,d_venc=20210816000000,h_doc=20000101173800,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210816 17:39 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=51,codigo='',designacao='Motorclean/LMS-Motores(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=142 LIMIT 1;
20210816 17:39 UPDATE documento_d2 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210816000000,d_venc=20210816000000,h_doc=20000101173800,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210816 17:41 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=51,codigo='',designacao='Motorclean/LMS-Motores(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=9.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=276.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=142 LIMIT 1;
20210816 17:41 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'D',2,'N/ Fatura',51,20210817000000,20210817000000,'','',339.48,339.48,'D',339.48,0.00,0.00,63.48,0.00,1.000000,0,0,'A','');
20210816 17:41 UPDATE documento_d2 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101173800,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=276.0000,tot_desconto=0.0000,tot_liquido=276.0000,tot_iva=63.4800,tot_valor=339.4800,val_pago=0.0000,val_pend=339.4800,suj_valor0=276.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=63.4800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210816 17:41 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='D',tp=2,document='N/ Fatura',no_doc=51,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=339.48,pendente=339.48,deb_cred='D',debito=339.48,credito=0.00,acumulado=0.00,val_iva=63.48,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20210816 17:41 UPDATE documento_d2 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101173800,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=276.0000,tot_desconto=0.0000,tot_liquido=276.0000,tot_iva=63.4800,tot_valor=339.4800,val_pago=0.0000,val_pend=339.4800,suj_valor0=276.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=63.4800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210816 17:50 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,52,0,'',0,0,'',20210817000000,20210817000000,20000101175000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210816 17:50 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:51 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,52,'','Mass Lav(Massa mĆos)Emb.10Kg','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210816 17:51 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=52,codigo='',designacao='Mass Lav(Massa mĆos)Emb.10Kg',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=143 LIMIT 1;
20210816 17:51 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=52,codigo='',designacao='Mass Lav(Massa mĆos)Emb.10Kg',unidade='',com_iva='',quantidade=30.000000,preco_unit=1.7500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=52.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=143 LIMIT 1;
20210816 17:52 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,24,'D',2,'N/ Fatura',52,20210817000000,20210817000000,'','',64.58,64.58,'D',64.58,0.00,0.00,12.08,0.00,1.000000,1,0,'A','');
20210816 17:52 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=52.5000,tot_desconto=0.0000,tot_liquido=52.5000,tot_iva=12.0800,tot_valor=64.5800,val_pago=0.0000,val_pend=64.5800,suj_valor0=52.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=12.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:52 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,52,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210816 17:54 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=52,codigo='',designacao='Hidro-F(Emb.30Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=144 LIMIT 1;
20210816 17:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=64.58,pendente=64.58,deb_cred='D',debito=64.58,credito=0.00,acumulado=0.00,val_iva=12.08,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:54 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=52.5000,tot_desconto=0.0000,tot_liquido=52.5000,tot_iva=12.0800,tot_valor=64.5800,val_pago=0.0000,val_pend=64.5800,suj_valor0=52.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=12.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:54 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=52,codigo='',designacao='Hidro-F(Emb.30Lt)',unidade='',com_iva='',quantidade=60.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=144 LIMIT 1;
20210816 17:54 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=52,codigo='',designacao='Hidro-F(Emb.30Lt)',unidade='',com_iva='',quantidade=60.000000,preco_unit=3.4100000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=204.60,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=144 LIMIT 1;
20210816 17:54 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=316.23,pendente=316.23,deb_cred='D',debito=316.23,credito=0.00,acumulado=0.00,val_iva=59.13,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:54 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=257.1000,tot_desconto=0.0000,tot_liquido=257.1000,tot_iva=59.1300,tot_valor=316.2300,val_pago=0.0000,val_pend=316.2300,suj_valor0=257.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=59.1300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:54 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,52,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210816 17:55 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=52,codigo='',designacao='Metdesc(Descof)Emb.30Lt',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=145 LIMIT 1;
20210816 17:55 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=316.23,pendente=316.23,deb_cred='D',debito=316.23,credito=0.00,acumulado=0.00,val_iva=59.13,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:55 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=257.1000,tot_desconto=0.0000,tot_liquido=257.1000,tot_iva=59.1300,tot_valor=316.2300,val_pago=0.0000,val_pend=316.2300,suj_valor0=257.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=59.1300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:55 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=52,codigo='',designacao='Metdesc(Descof)Emb.30Lt',unidade='',com_iva='',quantidade=60.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=145 LIMIT 1;
20210816 17:55 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=316.23,pendente=316.23,deb_cred='D',debito=316.23,credito=0.00,acumulado=0.00,val_iva=59.13,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:55 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=257.1000,tot_desconto=0.0000,tot_liquido=257.1000,tot_iva=59.1300,tot_valor=316.2300,val_pago=0.0000,val_pend=316.2300,suj_valor0=257.1000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=59.1300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:56 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=52,codigo='',designacao='Metdesc(Descof)Emb.30Lt',unidade='',com_iva='',quantidade=60.000000,preco_unit=1.9800000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=118.80,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=145 LIMIT 1;
20210816 17:56 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=462.36,pendente=462.36,deb_cred='D',debito=462.36,credito=0.00,acumulado=0.00,val_iva=86.46,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:56 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=375.9000,tot_desconto=0.0000,tot_liquido=375.9000,tot_iva=86.4600,tot_valor=462.3600,val_pago=0.0000,val_pend=462.3600,suj_valor0=375.9000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=86.4600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:56 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,52,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210816 17:57 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=52,codigo='',designacao='Cso33-Deseng.(Emb.30Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=146 LIMIT 1;
20210816 17:57 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=462.36,pendente=462.36,deb_cred='D',debito=462.36,credito=0.00,acumulado=0.00,val_iva=86.46,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:57 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=375.9000,tot_desconto=0.0000,tot_liquido=375.9000,tot_iva=86.4600,tot_valor=462.3600,val_pago=0.0000,val_pend=462.3600,suj_valor0=375.9000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=86.4600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:57 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=52,codigo='',designacao='Cso33-Deseng.(Emb.30Lt)',unidade='',com_iva='',quantidade=28.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=146 LIMIT 1;
20210816 17:57 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=462.36,pendente=462.36,deb_cred='D',debito=462.36,credito=0.00,acumulado=0.00,val_iva=86.46,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:57 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=375.9000,tot_desconto=0.0000,tot_liquido=375.9000,tot_iva=86.4600,tot_valor=462.3600,val_pago=0.0000,val_pend=462.3600,suj_valor0=375.9000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=86.4600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:57 UPDATE documento_linhas_d2 SET lnh_f=20,cor=0,num_doc=52,codigo='',designacao='Cso33-Deseng.(Emb.30Lt)',unidade='',com_iva='',quantidade=28.000000,preco_unit=1.4500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=40.60,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=146 LIMIT 1;
20210816 17:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=512.30,pendente=512.30,deb_cred='D',debito=512.30,credito=0.00,acumulado=0.00,val_iva=95.80,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:58 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=416.5000,tot_desconto=0.0000,tot_liquido=416.5000,tot_iva=95.8000,tot_valor=512.3000,val_pago=0.0000,val_pend=512.3000,suj_valor0=416.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=95.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 17:58 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',obs='',valor=512.30,pendente=512.30,deb_cred='D',debito=512.30,credito=0.00,acumulado=0.00,val_iva=95.80,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20210816 17:58 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=416.5000,tot_desconto=0.0000,tot_liquido=416.5000,tot_iva=95.8000,tot_valor=512.3000,val_pago=0.0000,val_pend=512.3000,suj_valor0=416.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=95.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210816 18:02 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,53,0,'',0,0,'',20210816000000,20210816000000,20000101180200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210831 14:30 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,44,0,'',0,0,'',20210831000000,00000000000000,20000101143000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210831000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210831 14:31 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,10,'R',1,'Recibo',44,20210831000000,20210831000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210831 14:31 UPDATE documento_r1 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210831 14:31 UPDATE documento_d2 SET linhas=0,no_doc=48,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101173100,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=324.0000,tot_desconto=0.0000,tot_liquido=324.0000,tot_iva=74.5200,tot_valor=398.5200,val_pago=398.5200,val_pend=0.0000,suj_valor0=324.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=74.5200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=49 LIMIT 1;
20210831 14:31 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,44,'D',2,'N/ Fatura',48,20210804000000,20210804000000,'','D',398.52,398.52,398.52,0.000,0.00,398.52,0.00,0.00,0,'A',324.00,74.52,398.52,324.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,74.52,0.00,0.00,0.00,0,'');
20210831 14:31 UPDATE reciboslinhas01 SET linha=5,cor=0,no=44,doc_mov='D',tp=2,document='N/ Fatura',n_doc=48,d_doc=20210804000000,d_venc=20210804000000,ref='',deb_cred='D',val_doc=398.52,val_pend=398.52,val_liqu=398.52,per_desc=0.000,val_desc=0.00,val_rec=398.52,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=324.00,tot_iva=74.52,tot_valor=398.52,suj_valor0=324.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=74.52,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=60 LIMIT 1;
20210831 14:31 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='R',tp=1,document='Recibo',no_doc=44,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=398.52,pendente=398.52,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=95 LIMIT 1;
20210831 14:31 UPDATE documento_r1 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=398.5200,tot_desconto=0.0000,tot_liquido=398.5200,tot_iva=0.0000,tot_valor=398.5200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210831 14:31 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=10,doc_mov='R',tp=1,document='Recibo',no_doc=44,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=398.52,pendente=398.52,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=95 LIMIT 1;
20210831 14:31 UPDATE documento_r1 SET linhas=0,no_doc=44,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143000,no_cf=10,nome_cf='Constru‡”es Ferreira Leite, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=398.5200,tot_desconto=0.0000,tot_liquido=398.5200,tot_iva=0.0000,tot_valor=398.5200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210831 14:36 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,45,0,'',0,0,'',20210831000000,00000000000000,20000101143600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210831000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210831 14:36 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,30,'R',1,'Recibo',45,20210831000000,20210831000000,'','D.DULCE',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210831 14:36 UPDATE documento_r1 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143600,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210831 14:36 UPDATE documento_d2 SET linhas=0,no_doc=49,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210804000000,d_venc=20210804000000,h_doc=20000101174000,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=189.0000,tot_desconto=0.0000,tot_liquido=189.0000,tot_iva=43.4700,tot_valor=232.4700,val_pago=232.4700,val_pend=0.0000,suj_valor0=189.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=43.4700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=50 LIMIT 1;
20210831 14:36 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,45,'D',2,'N/ Fatura',49,20210804000000,20210804000000,'','D',232.47,232.47,232.47,0.000,0.00,232.47,0.00,0.00,0,'A',189.00,43.47,232.47,189.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,43.47,0.00,0.00,0.00,0,'');
20210831 14:36 UPDATE reciboslinhas01 SET linha=5,cor=0,no=45,doc_mov='D',tp=2,document='N/ Fatura',n_doc=49,d_doc=20210804000000,d_venc=20210804000000,ref='',deb_cred='D',val_doc=232.47,val_pend=232.47,val_liqu=232.47,per_desc=0.000,val_desc=0.00,val_rec=232.47,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=189.00,tot_iva=43.47,tot_valor=232.47,suj_valor0=189.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=43.47,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=61 LIMIT 1;
20210831 14:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='R',tp=1,document='Recibo',no_doc=45,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='D.DULCE',valor=232.47,pendente=232.47,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=96 LIMIT 1;
20210831 14:36 UPDATE documento_r1 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143600,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=232.4700,tot_desconto=0.0000,tot_liquido=232.4700,tot_iva=0.0000,tot_valor=232.4700,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210831 14:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='R',tp=1,document='Recibo',no_doc=45,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='D.DULCE',valor=232.47,pendente=232.47,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=96 LIMIT 1;
20210831 14:36 UPDATE documento_r1 SET linhas=0,no_doc=45,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143600,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=232.4700,tot_desconto=0.0000,tot_liquido=232.4700,tot_iva=0.0000,tot_valor=232.4700,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210831 14:39 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,46,0,'',0,0,'',20210831000000,00000000000000,20000101143900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210831000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210831 14:39 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'R',1,'Recibo',46,20210831000000,20210831000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210831 14:39 UPDATE documento_r1 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210831 14:39 UPDATE documento_d2 SET linhas=0,no_doc=50,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210816000000,d_venc=20210816000000,h_doc=20000101154100,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=241.0800,val_pend=0.0000,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=51 LIMIT 1;
20210831 14:39 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,46,'D',2,'N/ Fatura',50,20210816000000,20210816000000,'','D',241.08,241.08,241.08,0.000,0.00,241.08,0.00,0.00,0,'A',196.00,45.08,241.08,196.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,45.08,0.00,0.00,0.00,0,'');
20210831 14:39 UPDATE reciboslinhas01 SET linha=5,cor=0,no=46,doc_mov='D',tp=2,document='N/ Fatura',n_doc=50,d_doc=20210816000000,d_venc=20210816000000,ref='',deb_cred='D',val_doc=241.08,val_pend=241.08,val_liqu=241.08,per_desc=0.000,val_desc=0.00,val_rec=241.08,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=196.00,tot_iva=45.08,tot_valor=241.08,suj_valor0=196.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=45.08,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=62 LIMIT 1;
20210831 14:39 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=46,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=97 LIMIT 1;
20210831 14:39 UPDATE documento_r1 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=241.0800,tot_desconto=0.0000,tot_liquido=241.0800,tot_iva=0.0000,tot_valor=241.0800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210831 14:39 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=46,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=97 LIMIT 1;
20210831 14:39 UPDATE documento_r1 SET linhas=0,no_doc=46,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101143900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=241.0800,tot_desconto=0.0000,tot_liquido=241.0800,tot_iva=0.0000,tot_valor=241.0800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210831 14:41 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,47,0,'',0,0,'',20210831000000,00000000000000,20000101144100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210831000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210831 14:41 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'R',1,'Recibo',47,20210831000000,20210831000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210831 14:41 UPDATE documento_r1 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101144100,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210831 14:41 UPDATE documento_d2 SET linhas=0,no_doc=51,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101173800,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=276.0000,tot_desconto=0.0000,tot_liquido=276.0000,tot_iva=63.4800,tot_valor=339.4800,val_pago=339.4800,val_pend=0.0000,suj_valor0=276.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=63.4800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=52 LIMIT 1;
20210831 14:41 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,47,'D',2,'N/ Fatura',51,20210817000000,20210817000000,'','D',339.48,339.48,339.48,0.000,0.00,339.48,0.00,0.00,0,'A',276.00,63.48,339.48,276.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,63.48,0.00,0.00,0.00,0,'');
20210831 14:41 UPDATE reciboslinhas01 SET linha=5,cor=0,no=47,doc_mov='D',tp=2,document='N/ Fatura',n_doc=51,d_doc=20210817000000,d_venc=20210817000000,ref='',deb_cred='D',val_doc=339.48,val_pend=339.48,val_liqu=339.48,per_desc=0.000,val_desc=0.00,val_rec=339.48,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=276.00,tot_iva=63.48,tot_valor=339.48,suj_valor0=276.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=63.48,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=63 LIMIT 1;
20210831 14:41 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='R',tp=1,document='Recibo',no_doc=47,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=339.48,pendente=339.48,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=98 LIMIT 1;
20210831 14:41 UPDATE documento_r1 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101144100,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=339.4800,tot_desconto=0.0000,tot_liquido=339.4800,tot_iva=0.0000,tot_valor=339.4800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210831 14:41 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='R',tp=1,document='Recibo',no_doc=47,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=339.48,pendente=339.48,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=98 LIMIT 1;
20210831 14:41 UPDATE documento_r1 SET linhas=0,no_doc=47,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101144100,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=339.4800,tot_desconto=0.0000,tot_liquido=339.4800,tot_iva=0.0000,tot_valor=339.4800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210831 14:42 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,48,0,'',0,0,'',20210831000000,00000000000000,20000101144200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210831000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210831 14:42 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,49,0,'',0,0,'',20210831000000,00000000000000,20000101144200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20210831000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20210831 14:42 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,24,'R',1,'Recibo',49,20210831000000,20210831000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20210831 14:42 UPDATE documento_r1 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101144200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210831 14:42 UPDATE documento_d2 SET linhas=0,no_doc=52,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101175000,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=416.5000,tot_desconto=0.0000,tot_liquido=416.5000,tot_iva=95.8000,tot_valor=512.3000,val_pago=512.3000,val_pend=0.0000,suj_valor0=416.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=95.8000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=53 LIMIT 1;
20210831 14:42 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,49,'D',2,'N/ Fatura',52,20210817000000,20210817000000,'','D',512.30,512.30,512.30,0.000,0.00,512.30,0.00,0.00,0,'A',416.50,95.80,512.30,416.50,0.00,0.00,0.00,23.00,13.00,6.00,0.00,95.80,0.00,0.00,0.00,0,'');
20210831 14:42 UPDATE reciboslinhas01 SET linha=5,cor=0,no=49,doc_mov='D',tp=2,document='N/ Fatura',n_doc=52,d_doc=20210817000000,d_venc=20210817000000,ref='',deb_cred='D',val_doc=512.30,val_pend=512.30,val_liqu=512.30,per_desc=0.000,val_desc=0.00,val_rec=512.30,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=416.50,tot_iva=95.80,tot_valor=512.30,suj_valor0=416.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=95.80,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=64 LIMIT 1;
20210831 14:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='R',tp=1,document='Recibo',no_doc=49,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=512.30,pendente=512.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=99 LIMIT 1;
20210831 14:42 UPDATE documento_r1 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101144200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=512.3000,tot_desconto=0.0000,tot_liquido=512.3000,tot_iva=0.0000,tot_valor=512.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210831 14:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='R',tp=1,document='Recibo',no_doc=49,d_doc=20210831000000,d_venc=20210831000000,ref='',obs='',valor=512.30,pendente=512.30,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=99 LIMIT 1;
20210831 14:42 UPDATE documento_r1 SET linhas=0,no_doc=49,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210831000000,d_venc=20210831000000,h_doc=20000101144200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=512.3000,tot_desconto=0.0000,tot_liquido=512.3000,tot_iva=0.0000,tot_valor=512.3000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20210831000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210906 18:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=24,nome_1='CONSUMIDOR FINAL',nome_2='',morada='',localidade='Arco de BaŁlhe',cod_post='',concelho='',distrito='',zona='',n_pais=1,pais='PORTUGAL',contribuinte='999999990',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=28 LIMIT 1;
20210906 18:29 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210817000000,d_venc=20210817000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20210906 18:30 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20210906 18:31 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,53,'','Hidrofug(Vraval35)Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210906 18:31 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20210906 18:31 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=53,codigo='',designacao='Hidrofug(Vraval35)Emb.30Lt',unidade='',com_iva='',quantidade=180.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=147 LIMIT 1;
20210906 18:31 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20210906 18:32 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=53,codigo='',designacao='Hidrofug(Vraval35)Emb.30Lt',unidade='',com_iva='',quantidade=180.000000,preco_unit=3.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=612.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=147 LIMIT 1;
20210906 18:32 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,24,'D',2,'N/ Fatura',53,20210907000000,20210907000000,'','',752.76,752.76,'D',752.76,0.00,0.00,140.76,0.00,1.000000,1,0,'A','');
20210906 18:32 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=612.0000,tot_desconto=0.0000,tot_liquido=612.0000,tot_iva=140.7600,tot_valor=752.7600,val_pago=0.0000,val_pend=752.7600,suj_valor0=612.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=140.7600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20210906 18:34 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='D',tp=2,document='N/ Fatura',no_doc=53,d_doc=20210907000000,d_venc=20210907000000,ref='',obs='',valor=752.76,pendente=752.76,deb_cred='D',debito=752.76,credito=0.00,acumulado=0.00,val_iva=140.76,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210906 18:34 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=612.0000,tot_desconto=0.0000,tot_liquido=612.0000,tot_iva=140.7600,tot_valor=752.7600,val_pago=0.0000,val_pend=752.7600,suj_valor0=612.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=140.7600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20210906 18:45 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,54,0,'',0,0,'',20210907000000,20210907000000,20000101184500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210906 18:45 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101184500,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210908 21:48 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101184500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210908 21:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,54,'','Quimybus(desengordurante)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210908 21:49 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101184500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210908 21:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=54,codigo='',designacao='Quimybus(desengordurante)',unidade='',com_iva='',quantidade=120.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=148 LIMIT 1;
20210908 21:49 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101184500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210908 21:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=54,codigo='',designacao='Quimybus(desengordurante)',unidade='',com_iva='',quantidade=120.000000,preco_unit=5.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=714.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=148 LIMIT 1;
20210908 21:50 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'D',2,'N/ Fatura',54,20210908000000,20210908000000,'','',878.22,878.22,'D',878.22,0.00,0.00,164.22,0.00,1.000000,1,0,'A','');
20210908 21:50 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101184500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=714.0000,tot_desconto=0.0000,tot_liquido=714.0000,tot_iva=164.2200,tot_valor=878.2200,val_pago=0.0000,val_pend=878.2200,suj_valor0=714.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=164.2200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210908 21:50 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='D',tp=2,document='N/ Fatura',no_doc=54,d_doc=20210908000000,d_venc=20210908000000,ref='',obs='',valor=878.22,pendente=878.22,deb_cred='D',debito=878.22,credito=0.00,acumulado=0.00,val_iva=164.22,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210908 21:50 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101184500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=714.0000,tot_desconto=0.0000,tot_liquido=714.0000,tot_iva=164.2200,tot_valor=878.2200,val_pago=0.0000,val_pend=878.2200,suj_valor0=714.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=164.2200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20210908 22:01 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,55,0,'',0,0,'',20210908000000,20210908000000,20000101220100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210913 11:17 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,55,'','Braculant(˘leo corte)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210913 11:18 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=55,codigo='',designacao='Braculant(˘leo corte)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=149 LIMIT 1;
20210913 11:18 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:18 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=55,codigo='',designacao='Braculant(˘leo corte)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=149 LIMIT 1;
20210913 11:18 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'D',2,'N/ Fatura',55,20210908000000,20210908000000,'','',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,0,0,'A','');
20210913 11:18 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:18 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,55,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210913 11:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=55,codigo='',designacao='Abrinox',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=150 LIMIT 1;
20210913 11:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=55,d_doc=20210908000000,d_venc=20210908000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210913 11:19 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=55,codigo='',designacao='Abrinox(tramento inox)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=150 LIMIT 1;
20210913 11:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=55,d_doc=20210908000000,d_venc=20210908000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210913 11:19 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=55,codigo='',designacao='Abrinox(tramento inox)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=150 LIMIT 1;
20210913 11:19 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=55,d_doc=20210908000000,d_venc=20210908000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210913 11:19 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:19 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=55,codigo='',designacao='Abrinox(tramento inox)',unidade='',com_iva='',quantidade=30.000000,preco_unit=9.8000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=294.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=150 LIMIT 1;
20210913 11:21 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'D',2,'N/ Fatura',55,20210913000000,20210913000000,'','',583.02,583.02,'D',583.02,0.00,0.00,109.02,0.00,1.000000,0,0,'A','');
20210913 11:21 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210913000000,d_venc=20210913000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=474.0000,tot_desconto=0.0000,tot_liquido=474.0000,tot_iva=109.0200,tot_valor=583.0200,val_pago=0.0000,val_pend=583.0200,suj_valor0=474.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=109.0200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210913 11:21 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='D',tp=2,document='N/ Fatura',no_doc=55,d_doc=20210913000000,d_venc=20210913000000,ref='',obs='',valor=583.02,pendente=583.02,deb_cred='D',debito=583.02,credito=0.00,acumulado=0.00,val_iva=109.02,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20210913 11:21 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210913000000,d_venc=20210913000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=474.0000,tot_desconto=0.0000,tot_liquido=474.0000,tot_iva=109.0200,tot_valor=583.0200,val_pago=0.0000,val_pend=583.0200,suj_valor0=474.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=109.0200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20210916 22:35 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,56,0,'',0,0,'',20210916000000,20210916000000,20000101223500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210916 22:36 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210916000000,d_venc=20210916000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:36 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,56,'','Masslav/D(Emb.25kg)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210916 22:36 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210916000000,d_venc=20210916000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:37 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=56,codigo='',designacao='Masslav/D(Emb.25kg)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=151 LIMIT 1;
20210916 22:37 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210916000000,d_venc=20210916000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:37 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=56,codigo='',designacao='Masslav/D(Emb.25kg)',unidade='',com_iva='',quantidade=25.000000,preco_unit=6.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=156.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=151 LIMIT 1;
20210916 22:37 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,18,'D',2,'N/ Fatura',56,20210916000000,20210916000000,'','Sr.Miguel (936 905 416)',192.19,192.19,'D',192.19,0.00,0.00,35.94,0.00,1.000000,0,0,'A','');
20210916 22:37 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210916000000,d_venc=20210916000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=156.2500,tot_desconto=0.0000,tot_liquido=156.2500,tot_iva=35.9400,tot_valor=192.1900,val_pago=0.0000,val_pend=192.1900,suj_valor0=156.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=35.9400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:37 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,56,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210916 22:38 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=56,codigo='',designacao='Doseador/M',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=152 LIMIT 1;
20210916 22:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='D',tp=2,document='N/ Fatura',no_doc=56,d_doc=20210916000000,d_venc=20210916000000,ref='',obs='Sr.Miguel (936 905 416)',valor=192.19,pendente=192.19,deb_cred='D',debito=192.19,credito=0.00,acumulado=0.00,val_iva=35.94,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210916 22:38 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210916000000,d_venc=20210916000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=156.2500,tot_desconto=0.0000,tot_liquido=156.2500,tot_iva=35.9400,tot_valor=192.1900,val_pago=0.0000,val_pend=192.1900,suj_valor0=156.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=35.9400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:38 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=56,codigo='',designacao='Doseador/M',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=152 LIMIT 1;
20210916 22:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='D',tp=2,document='N/ Fatura',no_doc=56,d_doc=20210916000000,d_venc=20210916000000,ref='',obs='Sr.Miguel (936 905 416)',valor=192.19,pendente=192.19,deb_cred='D',debito=192.19,credito=0.00,acumulado=0.00,val_iva=35.94,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=4 LIMIT 1;
20210916 22:38 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210916000000,d_venc=20210916000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=156.2500,tot_desconto=0.0000,tot_liquido=156.2500,tot_iva=35.9400,tot_valor=192.1900,val_pago=0.0000,val_pend=192.1900,suj_valor0=156.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=35.9400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:38 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=56,codigo='',designacao='Doseador/M',unidade='',com_iva='',quantidade=1.000000,preco_unit=18.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=18.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=152 LIMIT 1;
20210916 22:40 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,18,'D',2,'N/ Fatura',56,20210917000000,20210917000000,'','Sr.Miguel (936 905 416)',214.94,214.94,'D',214.94,0.00,0.00,40.19,0.00,1.000000,0,0,'A','');
20210916 22:40 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=174.7500,tot_desconto=0.0000,tot_liquido=174.7500,tot_iva=40.1900,tot_valor=214.9400,val_pago=0.0000,val_pend=214.9400,suj_valor0=174.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=40.1900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:40 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='D',tp=2,document='N/ Fatura',no_doc=56,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='Sr.Miguel (936 905 416)',valor=214.94,pendente=214.94,deb_cred='D',debito=214.94,credito=0.00,acumulado=0.00,val_iva=40.19,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=5 LIMIT 1;
20210916 22:40 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=174.7500,tot_desconto=0.0000,tot_liquido=174.7500,tot_iva=40.1900,tot_valor=214.9400,val_pago=0.0000,val_pend=214.9400,suj_valor0=174.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=40.1900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20210916 22:42 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,57,0,'',0,0,'',20210917000000,20210917000000,20000101224200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210916 22:43 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:43 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,57,'','Braculant/˘leo corte(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210916 22:43 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=57,codigo='',designacao='Braculant/˘leo corte(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=153 LIMIT 1;
20210916 22:43 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:43 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=57,codigo='',designacao='Braculant/˘leo corte(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=208.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=153 LIMIT 1;
20210916 22:43 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'D',2,'N/ Fatura',57,20210917000000,20210917000000,'','',256.46,256.46,'D',256.46,0.00,0.00,47.96,0.00,1.000000,0,0,'A','');
20210916 22:43 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=208.5000,tot_desconto=0.0000,tot_liquido=208.5000,tot_iva=47.9600,tot_valor=256.4600,val_pago=0.0000,val_pend=256.4600,suj_valor0=208.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=47.9600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:44 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=57,codigo='',designacao='Braculant/˘leo corte(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=7.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=225.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=153 LIMIT 1;
20210916 22:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:44 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:44 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,57,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210916 22:44 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=57,codigo='',designacao='Masslav/D(Emb.25Kg)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=154 LIMIT 1;
20210916 22:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:44 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:44 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=57,codigo='',designacao='Masslav/D(Emb.25Kg)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=154 LIMIT 1;
20210916 22:44 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=276.75,pendente=276.75,deb_cred='D',debito=276.75,credito=0.00,acumulado=0.00,val_iva=51.75,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:44 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=225.0000,tot_desconto=0.0000,tot_liquido=225.0000,tot_iva=51.7500,tot_valor=276.7500,val_pago=0.0000,val_pend=276.7500,suj_valor0=225.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=51.7500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:44 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=57,codigo='',designacao='Masslav/D(Emb.25Kg)',unidade='',com_iva='',quantidade=25.000000,preco_unit=6.9500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=173.75,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=154 LIMIT 1;
20210916 22:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=490.46,pendente=490.46,deb_cred='D',debito=490.46,credito=0.00,acumulado=0.00,val_iva=91.71,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:47 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=398.7500,tot_desconto=0.0000,tot_liquido=398.7500,tot_iva=91.7100,tot_valor=490.4600,val_pago=0.0000,val_pend=490.4600,suj_valor0=398.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=91.7100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:47 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,57,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210916 22:47 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=57,codigo='',designacao='Emb.Papel Ind.(2Rolos)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=155 LIMIT 1;
20210916 22:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=490.46,pendente=490.46,deb_cred='D',debito=490.46,credito=0.00,acumulado=0.00,val_iva=91.71,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:47 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=398.7500,tot_desconto=0.0000,tot_liquido=398.7500,tot_iva=91.7100,tot_valor=490.4600,val_pago=0.0000,val_pend=490.4600,suj_valor0=398.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=91.7100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:47 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=57,codigo='',designacao='Emb.Papel Ind.(2Rolos)',unidade='',com_iva='',quantidade=2.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=155 LIMIT 1;
20210916 22:47 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=490.46,pendente=490.46,deb_cred='D',debito=490.46,credito=0.00,acumulado=0.00,val_iva=91.71,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:47 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=398.7500,tot_desconto=0.0000,tot_liquido=398.7500,tot_iva=91.7100,tot_valor=490.4600,val_pago=0.0000,val_pend=490.4600,suj_valor0=398.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=91.7100,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:48 UPDATE documento_linhas_d2 SET lnh_f=15,cor=0,num_doc=57,codigo='',designacao='Emb.Papel Ind.(2Rolos)',unidade='',com_iva='',quantidade=2.000000,preco_unit=36.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=72.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=155 LIMIT 1;
20210916 22:48 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=579.02,pendente=579.02,deb_cred='D',debito=579.02,credito=0.00,acumulado=0.00,val_iva=108.27,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:48 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=470.7500,tot_desconto=0.0000,tot_liquido=470.7500,tot_iva=108.2700,tot_valor=579.0200,val_pago=0.0000,val_pend=579.0200,suj_valor0=470.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=108.2700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:48 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',obs='',valor=579.02,pendente=579.02,deb_cred='D',debito=579.02,credito=0.00,acumulado=0.00,val_iva=108.27,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=6 LIMIT 1;
20210916 22:48 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=470.7500,tot_desconto=0.0000,tot_liquido=470.7500,tot_iva=108.2700,tot_valor=579.0200,val_pago=0.0000,val_pend=579.0200,suj_valor0=470.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=108.2700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20210916 22:55 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,58,0,'',0,0,'',20210916000000,20210916000000,20000101225500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210920 18:06 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,36,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210920 18:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,336,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210920 18:07 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=336,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=53 LIMIT 1;
20210920 18:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,337,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20210920 18:07 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=337,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=54 LIMIT 1;
20210920 18:09 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4710-092','','','');
20210920 18:10 UPDATE codigos_postais SET codigo='4710-092',concelho='Gualtar-Braga',distrito='BRAGA',rsv='' WHERE IDX=45 LIMIT 1;
20210920 18:10 UPDATE codigos_postais SET codigo='4710-092',concelho='Gualtar-Braga',distrito='BRAGA',rsv='' WHERE IDX=45 LIMIT 1;
20210920 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=36,nome_1='CARPINTARIA SOUSA & SILVA',nome_2='',morada='Rua Infante D.Henrique, n§ 53',localidade='Gualtar, Braga',cod_post='4710-092',concelho='Gualtar-Braga',distrito='BRAGA',zona='',n_pais=0,pais='',contribuinte='501 864 016',telefone='253 677377',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=52 LIMIT 1;
20210920 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=36,nome_1='CARPINTARIA SOUSA & SILVA',nome_2='',morada='Rua Infante D.Henrique, n§ 53',localidade='Gualtar, Braga',cod_post='4710-092',concelho='Gualtar-Braga',distrito='BRAGA',zona='',n_pais=0,pais='',contribuinte='501 864 016',telefone='253 677377',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=52 LIMIT 1;
20210920 18:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=36,nome_1='CARPINTARIA SOUSA & SILVA',nome_2='',morada='Rua Infante D.Henrique, n§ 53',localidade='Gualtar, Braga',cod_post='4710-092',concelho='Gualtar-Braga',distrito='BRAGA',zona='',n_pais=0,pais='',contribuinte='501 864 016',telefone='253 677377',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=52 LIMIT 1;
20210922 18:21 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,58,'','LP/2(Emb.10Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210922 18:22 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=58,codigo='',designacao='LP/2(Emb.10Lt)',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=156 LIMIT 1;
20210922 18:22 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:22 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=58,codigo='',designacao='LP/2(Emb.10Lt)',unidade='',com_iva='',quantidade=10.000000,preco_unit=7.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=75.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=156 LIMIT 1;
20210922 18:22 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,35,'D',2,'N/ Fatura',58,20210922000000,20210922000000,'','Sr. Miguel Oliveira 915 569 151',92.25,92.25,'D',92.25,0.00,0.00,17.25,0.00,1.000000,0,0,'A','');
20210922 18:22 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=75.0000,tot_desconto=0.0000,tot_liquido=75.0000,tot_iva=17.2500,tot_valor=92.2500,val_pago=0.0000,val_pend=92.2500,suj_valor0=75.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=17.2500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,58,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210922 18:23 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=58,codigo='',designacao='Deg/Bac(Emb.10Lt)-Desinf.',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=157 LIMIT 1;
20210922 18:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',no_doc=58,d_doc=20210922000000,d_venc=20210922000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=92.25,pendente=92.25,deb_cred='D',debito=92.25,credito=0.00,acumulado=0.00,val_iva=17.25,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210922 18:23 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=75.0000,tot_desconto=0.0000,tot_liquido=75.0000,tot_iva=17.2500,tot_valor=92.2500,val_pago=0.0000,val_pend=92.2500,suj_valor0=75.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=17.2500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:23 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=58,codigo='',designacao='Deg/Bac(Emb.10Lt)-Desinf.',unidade='',com_iva='',quantidade=10.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=157 LIMIT 1;
20210922 18:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',no_doc=58,d_doc=20210922000000,d_venc=20210922000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=92.25,pendente=92.25,deb_cred='D',debito=92.25,credito=0.00,acumulado=0.00,val_iva=17.25,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210922 18:23 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=75.0000,tot_desconto=0.0000,tot_liquido=75.0000,tot_iva=17.2500,tot_valor=92.2500,val_pago=0.0000,val_pend=92.2500,suj_valor0=75.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=17.2500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:23 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=58,codigo='',designacao='Deg/Bac(Emb.10Lt)-Desinf.',unidade='',com_iva='',quantidade=10.000000,preco_unit=11.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=110.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=157 LIMIT 1;
20210922 18:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',no_doc=58,d_doc=20210922000000,d_venc=20210922000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=227.55,pendente=227.55,deb_cred='D',debito=227.55,credito=0.00,acumulado=0.00,val_iva=42.55,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210922 18:24 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=185.0000,tot_desconto=0.0000,tot_liquido=185.0000,tot_iva=42.5500,tot_valor=227.5500,val_pago=0.0000,val_pend=227.5500,suj_valor0=185.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.5500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210922 18:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='D',tp=2,document='N/ Fatura',no_doc=58,d_doc=20210922000000,d_venc=20210922000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=227.55,pendente=227.55,deb_cred='D',debito=227.55,credito=0.00,acumulado=0.00,val_iva=42.55,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20210922 18:24 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=185.0000,tot_desconto=0.0000,tot_liquido=185.0000,tot_iva=42.5500,tot_valor=227.5500,val_pago=0.0000,val_pend=227.5500,suj_valor0=185.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.5500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20210927 11:48 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,59,0,'',0,0,'',20210927000000,20210927000000,20000101114800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20210927 11:48 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,59,'','Metdesc/Oleo Descf.(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210927 11:49 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=59,codigo='',designacao='Metdesc/Oleo Descf.(Emb.30Lt)',unidade='',com_iva='',quantidade=90.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=158 LIMIT 1;
20210927 11:49 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:49 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=59,codigo='',designacao='Metdesc/Oleo Descf.(Emb.30Lt)',unidade='',com_iva='',quantidade=90.000000,preco_unit=5.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=472.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=158 LIMIT 1;
20210927 11:49 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,17,'D',2,'N/ Fatura',59,20210927000000,20210927000000,'','Eng.JoĆo(913 875 146)',581.18,581.18,'D',581.18,0.00,0.00,108.68,0.00,1.000000,0,0,'A','');
20210927 11:49 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=472.5000,tot_desconto=0.0000,tot_liquido=472.5000,tot_iva=108.6800,tot_valor=581.1800,val_pago=0.0000,val_pend=581.1800,suj_valor0=472.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=108.6800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:49 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,59,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20210927 11:50 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=59,codigo='',designacao='Q.Wash/Esp.(Champo)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=159 LIMIT 1;
20210927 11:50 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=59,d_doc=20210927000000,d_venc=20210927000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=581.18,pendente=581.18,deb_cred='D',debito=581.18,credito=0.00,acumulado=0.00,val_iva=108.68,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210927 11:50 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=472.5000,tot_desconto=0.0000,tot_liquido=472.5000,tot_iva=108.6800,tot_valor=581.1800,val_pago=0.0000,val_pend=581.1800,suj_valor0=472.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=108.6800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:50 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=59,codigo='',designacao='Q.Wash/Esp.(Champo)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=159 LIMIT 1;
20210927 11:50 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=59,d_doc=20210927000000,d_venc=20210927000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=581.18,pendente=581.18,deb_cred='D',debito=581.18,credito=0.00,acumulado=0.00,val_iva=108.68,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210927 11:50 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=472.5000,tot_desconto=0.0000,tot_liquido=472.5000,tot_iva=108.6800,tot_valor=581.1800,val_pago=0.0000,val_pend=581.1800,suj_valor0=472.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=108.6800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:50 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=59,codigo='',designacao='Q.Wash/Esp.(Champo)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=157.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=159 LIMIT 1;
20210927 11:50 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=59,d_doc=20210927000000,d_venc=20210927000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=774.90,pendente=774.90,deb_cred='D',debito=774.90,credito=0.00,acumulado=0.00,val_iva=144.90,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210927 11:50 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=630.0000,tot_desconto=0.0000,tot_liquido=630.0000,tot_iva=144.9000,tot_valor=774.9000,val_pago=0.0000,val_pend=774.9000,suj_valor0=630.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=144.9000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20210927 11:50 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=59,d_doc=20210927000000,d_venc=20210927000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=774.90,pendente=774.90,deb_cred='D',debito=774.90,credito=0.00,acumulado=0.00,val_iva=144.90,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20210927 11:50 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=630.0000,tot_desconto=0.0000,tot_liquido=630.0000,tot_iva=144.9000,tot_valor=774.9000,val_pago=0.0000,val_pend=774.9000,suj_valor0=630.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=144.9000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20211004 10:19 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,60,0,'',0,0,'',20211004000000,20211004000000,20000101101900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211004 10:19 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101101900,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 10:20 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,60,'','Sliquimy(Antiaderente).Emb.30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211004 10:20 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101101900,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 10:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=60,codigo='',designacao='Sliquimy(Antiaderente).Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=160 LIMIT 1;
20211004 10:20 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101101900,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 10:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=60,codigo='',designacao='Sliquimy(Antiaderente).Emb.30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=9.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=270.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=160 LIMIT 1;
20211004 10:21 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,36,'D',2,'N/ Fatura',60,20211004000000,20211004000000,'','',332.10,332.10,'D',332.10,0.00,0.00,62.10,0.00,1.000000,0,0,'A','');
20211004 10:21 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101101900,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=270.0000,tot_desconto=0.0000,tot_liquido=270.0000,tot_iva=62.1000,tot_valor=332.1000,val_pago=0.0000,val_pend=332.1000,suj_valor0=270.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=62.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 10:21 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=36,doc_mov='D',tp=2,document='N/ Fatura',no_doc=60,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=332.10,pendente=332.10,deb_cred='D',debito=332.10,credito=0.00,acumulado=0.00,val_iva=62.10,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211004 10:21 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101101900,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=270.0000,tot_desconto=0.0000,tot_liquido=270.0000,tot_iva=62.1000,tot_valor=332.1000,val_pago=0.0000,val_pend=332.1000,suj_valor0=270.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=62.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 22:11 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,50,0,'',0,0,'',20211004000000,00000000000000,20000101221100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:12 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,24,'R',1,'Recibo',50,20211004000000,20211004000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:12 UPDATE documento_r1 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221100,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20211004 22:12 UPDATE documento_d2 SET linhas=0,no_doc=53,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210907000000,d_venc=20210907000000,h_doc=20000101180200,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=612.0000,tot_desconto=0.0000,tot_liquido=612.0000,tot_iva=140.7600,tot_valor=752.7600,val_pago=752.7600,val_pend=0.0000,suj_valor0=612.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=140.7600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=54 LIMIT 1;
20211004 22:12 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,50,'D',2,'N/ Fatura',53,20210907000000,20210907000000,'','D',752.76,752.76,752.76,0.000,0.00,752.76,0.00,0.00,0,'A',612.00,140.76,752.76,612.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,140.76,0.00,0.00,0.00,0,'');
20211004 22:12 UPDATE reciboslinhas01 SET linha=5,cor=0,no=50,doc_mov='D',tp=2,document='N/ Fatura',n_doc=53,d_doc=20210907000000,d_venc=20210907000000,ref='',deb_cred='D',val_doc=752.76,val_pend=752.76,val_liqu=752.76,per_desc=0.000,val_desc=0.00,val_rec=752.76,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=612.00,tot_iva=140.76,tot_valor=752.76,suj_valor0=612.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=140.76,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=65 LIMIT 1;
20211004 22:12 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='R',tp=1,document='Recibo',no_doc=50,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=752.76,pendente=752.76,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=108 LIMIT 1;
20211004 22:12 UPDATE documento_r1 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221100,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=752.7600,tot_desconto=0.0000,tot_liquido=752.7600,tot_iva=0.0000,tot_valor=752.7600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20211004 22:12 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=24,doc_mov='R',tp=1,document='Recibo',no_doc=50,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=752.76,pendente=752.76,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=108 LIMIT 1;
20211004 22:12 UPDATE documento_r1 SET linhas=0,no_doc=50,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221100,no_cf=24,nome_cf='CONSUMIDOR FINAL',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=752.7600,tot_desconto=0.0000,tot_liquido=752.7600,tot_iva=0.0000,tot_valor=752.7600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20211004 22:14 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,51,0,'',0,0,'',20211004000000,00000000000000,20000101221400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:15 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,1,'R',1,'Recibo',51,20211004000000,20211004000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:15 UPDATE documento_r1 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221400,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20211004 22:15 UPDATE documento_d2 SET linhas=0,no_doc=54,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20210908000000,d_venc=20210908000000,h_doc=20000101184500,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=1,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=714.0000,tot_desconto=0.0000,tot_liquido=714.0000,tot_iva=164.2200,tot_valor=878.2200,val_pago=878.2200,val_pend=0.0000,suj_valor0=714.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=164.2200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=55 LIMIT 1;
20211004 22:15 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,51,'D',2,'N/ Fatura',54,20210908000000,20210908000000,'','D',878.22,878.22,878.22,0.000,0.00,878.22,0.00,0.00,0,'A',714.00,164.22,878.22,714.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,164.22,0.00,0.00,0.00,0,'');
20211004 22:15 UPDATE reciboslinhas01 SET linha=5,cor=0,no=51,doc_mov='D',tp=2,document='N/ Fatura',n_doc=54,d_doc=20210908000000,d_venc=20210908000000,ref='',deb_cred='D',val_doc=878.22,val_pend=878.22,val_liqu=878.22,per_desc=0.000,val_desc=0.00,val_rec=878.22,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=714.00,tot_iva=164.22,tot_valor=878.22,suj_valor0=714.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=164.22,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=66 LIMIT 1;
20211004 22:15 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=51,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=878.22,pendente=878.22,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=109 LIMIT 1;
20211004 22:15 UPDATE documento_r1 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221400,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=878.2200,tot_desconto=0.0000,tot_liquido=878.2200,tot_iva=0.0000,tot_valor=878.2200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20211004 22:15 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=1,doc_mov='R',tp=1,document='Recibo',no_doc=51,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=878.22,pendente=878.22,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=109 LIMIT 1;
20211004 22:15 UPDATE documento_r1 SET linhas=0,no_doc=51,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221400,no_cf=1,nome_cf='CONSTRU€OES BAIRRO DO SOL. LDA.',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=878.2200,tot_desconto=0.0000,tot_liquido=878.2200,tot_iva=0.0000,tot_valor=878.2200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20211004 22:16 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,52,0,'',0,0,'',20211004000000,00000000000000,20000101221600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:16 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,4,'R',1,'Recibo',52,20211004000000,20211004000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:16 UPDATE documento_r1 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221600,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20211004 22:16 UPDATE documento_d2 SET linhas=0,no_doc=55,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210913000000,d_venc=20210913000000,h_doc=20000101220100,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=474.0000,tot_desconto=0.0000,tot_liquido=474.0000,tot_iva=109.0200,tot_valor=583.0200,val_pago=583.0200,val_pend=0.0000,suj_valor0=474.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=109.0200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=56 LIMIT 1;
20211004 22:16 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,52,'D',2,'N/ Fatura',55,20210913000000,20210913000000,'','D',583.02,583.02,583.02,0.000,0.00,583.02,0.00,0.00,0,'A',474.00,109.02,583.02,474.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,109.02,0.00,0.00,0.00,0,'');
20211004 22:16 UPDATE reciboslinhas01 SET linha=5,cor=0,no=52,doc_mov='D',tp=2,document='N/ Fatura',n_doc=55,d_doc=20210913000000,d_venc=20210913000000,ref='',deb_cred='D',val_doc=583.02,val_pend=583.02,val_liqu=583.02,per_desc=0.000,val_desc=0.00,val_rec=583.02,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=474.00,tot_iva=109.02,tot_valor=583.02,suj_valor0=474.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=109.02,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=67 LIMIT 1;
20211004 22:16 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=52,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=583.02,pendente=583.02,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=110 LIMIT 1;
20211004 22:16 UPDATE documento_r1 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221600,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=583.0200,tot_desconto=0.0000,tot_liquido=583.0200,tot_iva=0.0000,tot_valor=583.0200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20211004 22:16 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=4,doc_mov='R',tp=1,document='Recibo',no_doc=52,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=583.02,pendente=583.02,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=110 LIMIT 1;
20211004 22:16 UPDATE documento_r1 SET linhas=0,no_doc=52,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221600,no_cf=4,nome_cf='METALOTA‹DE - SERRALHARIA Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=583.0200,tot_desconto=0.0000,tot_liquido=583.0200,tot_iva=0.0000,tot_valor=583.0200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20211004 22:17 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,53,0,'',0,0,'',20211004000000,00000000000000,20000101221700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:18 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,18,'R',1,'Recibo',53,20211004000000,20211004000000,'','Sr.Miguel (936 905 416)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:18 UPDATE documento_r1 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221700,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20211004 22:18 UPDATE documento_d2 SET linhas=0,no_doc=56,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101223500,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=174.7500,tot_desconto=0.0000,tot_liquido=174.7500,tot_iva=40.1900,tot_valor=214.9400,val_pago=214.9400,val_pend=0.0000,suj_valor0=174.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=40.1900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=57 LIMIT 1;
20211004 22:18 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,53,'D',2,'N/ Fatura',56,20210917000000,20210917000000,'','D',214.94,214.94,214.94,0.000,0.00,214.94,0.00,0.00,0,'A',174.75,40.19,214.94,174.75,0.00,0.00,0.00,23.00,13.00,6.00,0.00,40.19,0.00,0.00,0.00,0,'');
20211004 22:18 UPDATE reciboslinhas01 SET linha=5,cor=0,no=53,doc_mov='D',tp=2,document='N/ Fatura',n_doc=56,d_doc=20210917000000,d_venc=20210917000000,ref='',deb_cred='D',val_doc=214.94,val_pend=214.94,val_liqu=214.94,per_desc=0.000,val_desc=0.00,val_rec=214.94,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=174.75,tot_iva=40.19,tot_valor=214.94,suj_valor0=174.75,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=40.19,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=68 LIMIT 1;
20211004 22:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='R',tp=1,document='Recibo',no_doc=53,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='Sr.Miguel (936 905 416)',valor=214.94,pendente=214.94,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=111 LIMIT 1;
20211004 22:18 UPDATE documento_r1 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221700,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=214.9400,tot_desconto=0.0000,tot_liquido=214.9400,tot_iva=0.0000,tot_valor=214.9400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20211004 22:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=18,doc_mov='R',tp=1,document='Recibo',no_doc=53,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='Sr.Miguel (936 905 416)',valor=214.94,pendente=214.94,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=111 LIMIT 1;
20211004 22:18 UPDATE documento_r1 SET linhas=0,no_doc=53,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221700,no_cf=18,nome_cf='Ferriforte-Miguel Brites Marta,Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr.Miguel (936 905 416)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=214.9400,tot_desconto=0.0000,tot_liquido=214.9400,tot_iva=0.0000,tot_valor=214.9400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20211004 22:18 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,54,0,'',0,0,'',20211004000000,00000000000000,20000101221800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:19 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'R',1,'Recibo',54,20211004000000,20211004000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:19 UPDATE documento_r1 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221800,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20211004 22:19 UPDATE documento_d2 SET linhas=0,no_doc=57,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210917000000,d_venc=20210917000000,h_doc=20000101224200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=470.7500,tot_desconto=0.0000,tot_liquido=470.7500,tot_iva=108.2700,tot_valor=579.0200,val_pago=579.0200,val_pend=0.0000,suj_valor0=470.7500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=108.2700,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=58 LIMIT 1;
20211004 22:19 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,54,'D',2,'N/ Fatura',57,20210917000000,20210917000000,'','D',579.02,579.02,579.02,0.000,0.00,579.02,0.00,0.00,0,'A',470.75,108.27,579.02,470.75,0.00,0.00,0.00,23.00,13.00,6.00,0.00,108.27,0.00,0.00,0.00,0,'');
20211004 22:19 UPDATE reciboslinhas01 SET linha=5,cor=0,no=54,doc_mov='D',tp=2,document='N/ Fatura',n_doc=57,d_doc=20210917000000,d_venc=20210917000000,ref='',deb_cred='D',val_doc=579.02,val_pend=579.02,val_liqu=579.02,per_desc=0.000,val_desc=0.00,val_rec=579.02,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=470.75,tot_iva=108.27,tot_valor=579.02,suj_valor0=470.75,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=108.27,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=69 LIMIT 1;
20211004 22:19 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=54,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=579.02,pendente=579.02,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=112 LIMIT 1;
20211004 22:19 UPDATE documento_r1 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221800,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=579.0200,tot_desconto=0.0000,tot_liquido=579.0200,tot_iva=0.0000,tot_valor=579.0200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20211004 22:19 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=54,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='',valor=579.02,pendente=579.02,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=112 LIMIT 1;
20211004 22:19 UPDATE documento_r1 SET linhas=0,no_doc=54,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101221800,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=579.0200,tot_desconto=0.0000,tot_liquido=579.0200,tot_iva=0.0000,tot_valor=579.0200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20211004 22:20 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,55,0,'',0,0,'',20211004000000,00000000000000,20000101222000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:20 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,35,'R',1,'Recibo',55,20211004000000,20211004000000,'','Sr. Miguel Oliveira 915 569 151',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:20 UPDATE documento_r1 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101222000,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 22:20 UPDATE documento_d2 SET linhas=0,no_doc=58,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210922000000,d_venc=20210922000000,h_doc=20000101225500,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=185.0000,tot_desconto=0.0000,tot_liquido=185.0000,tot_iva=42.5500,tot_valor=227.5500,val_pago=227.5500,val_pend=0.0000,suj_valor0=185.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.5500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=59 LIMIT 1;
20211004 22:20 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,55,'D',2,'N/ Fatura',58,20210922000000,20210922000000,'','D',227.55,227.55,227.55,0.000,0.00,227.55,0.00,0.00,0,'A',185.00,42.55,227.55,185.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,42.55,0.00,0.00,0.00,0,'');
20211004 22:20 UPDATE reciboslinhas01 SET linha=5,cor=0,no=55,doc_mov='D',tp=2,document='N/ Fatura',n_doc=58,d_doc=20210922000000,d_venc=20210922000000,ref='',deb_cred='D',val_doc=227.55,val_pend=227.55,val_liqu=227.55,per_desc=0.000,val_desc=0.00,val_rec=227.55,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=185.00,tot_iva=42.55,tot_valor=227.55,suj_valor0=185.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=42.55,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=70 LIMIT 1;
20211004 22:20 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='R',tp=1,document='Recibo',no_doc=55,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=227.55,pendente=227.55,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=113 LIMIT 1;
20211004 22:20 UPDATE documento_r1 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101222000,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=227.5500,tot_desconto=0.0000,tot_liquido=227.5500,tot_iva=0.0000,tot_valor=227.5500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 22:20 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=35,doc_mov='R',tp=1,document='Recibo',no_doc=55,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='Sr. Miguel Oliveira 915 569 151',valor=227.55,pendente=227.55,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=113 LIMIT 1;
20211004 22:20 UPDATE documento_r1 SET linhas=0,no_doc=55,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101222000,no_cf=35,nome_cf='MC, M‚ritos Cordeais Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Miguel Oliveira 915 569 151',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=227.5500,tot_desconto=0.0000,tot_liquido=227.5500,tot_iva=0.0000,tot_valor=227.5500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211004 22:22 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,56,0,'',0,0,'',20211004000000,00000000000000,20000101222200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211004000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211004 22:22 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,17,'R',1,'Recibo',56,20211004000000,20211004000000,'','Eng.JoĆo(913 875 146)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211004 22:22 UPDATE documento_r1 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101222200,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211004 22:22 UPDATE documento_d2 SET linhas=0,no_doc=59,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20210927000000,d_venc=20210927000000,h_doc=20000101114800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=630.0000,tot_desconto=0.0000,tot_liquido=630.0000,tot_iva=144.9000,tot_valor=774.9000,val_pago=774.9000,val_pend=0.0000,suj_valor0=630.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=144.9000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=60 LIMIT 1;
20211004 22:22 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,56,'D',2,'N/ Fatura',59,20210927000000,20210927000000,'','D',774.90,774.90,774.90,0.000,0.00,774.90,0.00,0.00,0,'A',630.00,144.90,774.90,630.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,144.90,0.00,0.00,0.00,0,'');
20211004 22:22 UPDATE reciboslinhas01 SET linha=5,cor=0,no=56,doc_mov='D',tp=2,document='N/ Fatura',n_doc=59,d_doc=20210927000000,d_venc=20210927000000,ref='',deb_cred='D',val_doc=774.90,val_pend=774.90,val_liqu=774.90,per_desc=0.000,val_desc=0.00,val_rec=774.90,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=630.00,tot_iva=144.90,tot_valor=774.90,suj_valor0=630.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=144.90,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=71 LIMIT 1;
20211004 22:22 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='R',tp=1,document='Recibo',no_doc=56,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=774.90,pendente=774.90,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=114 LIMIT 1;
20211004 22:22 UPDATE documento_r1 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101222200,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=774.9000,tot_desconto=0.0000,tot_liquido=774.9000,tot_iva=0.0000,tot_valor=774.9000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211004 22:22 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='R',tp=1,document='Recibo',no_doc=56,d_doc=20211004000000,d_venc=20211004000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=774.90,pendente=774.90,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=114 LIMIT 1;
20211004 22:22 UPDATE documento_r1 SET linhas=0,no_doc=56,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101222200,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=774.9000,tot_desconto=0.0000,tot_liquido=774.9000,tot_iva=0.0000,tot_valor=774.9000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211004000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211011 21:20 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,61,0,'',0,0,'',20211011000000,20211011000000,20000101212000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211011 21:20 UPDATE documento_d2 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211011000000,d_venc=20211011000000,h_doc=20000101212000,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211011 21:21 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,61,'','Vraval 35/ Hidrf.(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211011 21:21 UPDATE documento_d2 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211011000000,d_venc=20211011000000,h_doc=20000101212000,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211011 21:21 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=61,codigo='',designacao='Vraval 35/ Hidrf.(Emb.30Lt)',unidade='',com_iva='',quantidade=90.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=161 LIMIT 1;
20211011 21:21 UPDATE documento_d2 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211011000000,d_venc=20211011000000,h_doc=20000101212000,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211011 21:21 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=61,codigo='',designacao='Vraval 35/ Hidrf.(Emb.30Lt)',unidade='',com_iva='',quantidade=90.000000,preco_unit=6.7500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=607.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=161 LIMIT 1;
20211011 21:22 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,17,'D',2,'N/ Fatura',61,20211012000000,20211012000000,'','Eng.JoĆo(913 875 146)',747.23,747.23,'D',747.23,0.00,0.00,139.73,0.00,1.000000,0,0,'A','');
20211011 21:22 UPDATE documento_d2 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211012000000,d_venc=20211012000000,h_doc=20000101212000,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=607.5000,tot_desconto=0.0000,tot_liquido=607.5000,tot_iva=139.7300,tot_valor=747.2300,val_pago=0.0000,val_pend=747.2300,suj_valor0=607.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=139.7300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211011 21:22 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='D',tp=2,document='N/ Fatura',no_doc=61,d_doc=20211012000000,d_venc=20211012000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=747.23,pendente=747.23,deb_cred='D',debito=747.23,credito=0.00,acumulado=0.00,val_iva=139.73,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211011 21:22 UPDATE documento_d2 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211012000000,d_venc=20211012000000,h_doc=20000101212000,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=607.5000,tot_desconto=0.0000,tot_liquido=607.5000,tot_iva=139.7300,tot_valor=747.2300,val_pago=0.0000,val_pend=747.2300,suj_valor0=607.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=139.7300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211013 21:06 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,338,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:06 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,37,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:06 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=37,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=56 LIMIT 1;
20211013 21:07 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,339,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:07 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=339,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=57 LIMIT 1;
20211013 21:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=37,nome_1='Serralharia O Bota, Unipessoal Lda',nome_2='',morada='Parque Industrial Olela - Pav.5',localidade='Cabeceiras de Basto',cod_post='4860-105',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='507067444',telefone='253 665060',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='comercial@serralhariaobota.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Eduardo, 961957435, 925313289',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=56 LIMIT 1;
20211013 21:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=37,nome_1='Serralharia O Bota, Unipessoal Lda',nome_2='',morada='Parque Industrial Olela - Pav.5',localidade='Cabeceiras de Basto',cod_post='4860-105',concelho='Cabeceiras de Basto',distrito='Cabeceiras de Basto',zona='',n_pais=0,pais='',contribuinte='507067444',telefone='253 665060',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='comercial@serralhariaobota.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Eduardo, 961957435, 925313289',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=56 LIMIT 1;
20211013 21:15 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,38,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:15 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=38,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=58 LIMIT 1;
20211013 21:17 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4805-233','','','');
20211013 21:19 UPDATE codigos_postais SET codigo='4805-233',concelho='Ponte',distrito='Braga',rsv='' WHERE IDX=46 LIMIT 1;
20211013 21:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=38,nome_1='Serralharia Orgulho Geom‚trico Lda',nome_2='',morada='Rua Campo Novo, n§ 586',localidade='Ponte- GuimarĆes',cod_post='4805-233',concelho='Ponte',distrito='Braga',zona='',n_pais=0,pais='',contribuinte='516297953253576',telefone='orgulhogeometrico@gmail.com',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='968564005/966020965',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=58 LIMIT 1;
20211013 21:21 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,39,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:21 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=39,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=59 LIMIT 1;
20211013 21:24 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4800-208','','','');
20211013 21:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=39,nome_1='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',nome_2='',morada='Rua da Costa ,541',localidade='Rendufe-GuimarĆes',cod_post='4800-208',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='255306709',telefone='937422543',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='ismaelabreurendufe@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=59 LIMIT 1;
20211013 21:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=39,nome_1='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',nome_2='',morada='Rua da Costa ,541',localidade='Rendufe-GuimarĆes',cod_post='4800-208',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='255306709',telefone='937422543',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='ismaelabreurendufe@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=59 LIMIT 1;
20211013 21:26 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,40,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:26 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=40,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=60 LIMIT 1;
20211013 21:28 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4850-433','','','');
20211013 21:29 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=40,nome_1='Auto Angelo Lemos Unipessoal Lda',nome_2='',morada='Parque Industrial de Tabua‡as, Lote 16',localidade='Vieira do Minho',cod_post='4850-433',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='514699256',telefone='253 645162',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=60 LIMIT 1;
20211013 21:30 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,41,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211013 21:30 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=41,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=61 LIMIT 1;
20211018 10:09 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,62,0,'',0,0,'',20211018000000,20211018000000,20000101100900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211018 10:10 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211018 10:10 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,62,'','Persiusos/A(Emb,30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211018 10:10 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211018 10:10 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=62,codigo='',designacao='Persiusos/A(Emb,30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=162 LIMIT 1;
20211018 10:10 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211018 10:10 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=62,codigo='',designacao='Persiusos/A(Emb,30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=165.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=162 LIMIT 1;
20211018 10:11 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,38,'D',2,'N/ Fatura',62,20211018000000,20211018000000,'','968564005/966020965',202.95,202.95,'D',202.95,0.00,0.00,37.95,0.00,1.000000,0,0,'A','');
20211018 10:11 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211018 10:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,62,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211018 10:11 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=62,codigo='',designacao='Oferta Pulverizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=163 LIMIT 1;
20211018 10:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,62,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211018 10:11 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=38,doc_mov='D',tp=2,document='N/ Fatura',no_doc=62,d_doc=20211018000000,d_venc=20211018000000,ref='',obs='968564005/966020965',valor=202.95,pendente=202.95,deb_cred='D',debito=202.95,credito=0.00,acumulado=0.00,val_iva=37.95,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20211018 10:11 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211018 10:11 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=38,doc_mov='D',tp=2,document='N/ Fatura',no_doc=62,d_doc=20211018000000,d_venc=20211018000000,ref='',obs='968564005/966020965',valor=202.95,pendente=202.95,deb_cred='D',debito=202.95,credito=0.00,acumulado=0.00,val_iva=37.95,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20211018 10:11 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211018 17:56 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,63,0,'',0,0,'',20211018000000,20211018000000,20000101175600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211018 17:57 UPDATE documento_d2 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101175600,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211018 17:58 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,63,'','Masslav(Emb.20Kl)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211018 17:58 UPDATE documento_d2 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101175600,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211018 17:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=63,codigo='',designacao='Masslav(Emb.20Kl)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=165 LIMIT 1;
20211018 17:58 UPDATE documento_d2 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101175600,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211018 17:58 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=63,codigo='',designacao='Masslav(Emb.20Kl)',unidade='',com_iva='',quantidade=20.000000,preco_unit=6.9000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=138.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=165 LIMIT 1;
20211018 17:59 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,16,'D',2,'N/ Fatura',63,20211019000000,20211019000000,'','',169.74,169.74,'D',169.74,0.00,0.00,31.74,0.00,1.000000,0,0,'A','');
20211018 17:59 UPDATE documento_d2 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101175600,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=138.0000,tot_desconto=0.0000,tot_liquido=138.0000,tot_iva=31.7400,tot_valor=169.7400,val_pago=0.0000,val_pend=169.7400,suj_valor0=138.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.7400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211018 17:59 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='D',tp=2,document='N/ Fatura',no_doc=63,d_doc=20211019000000,d_venc=20211019000000,ref='',obs='',valor=169.74,pendente=169.74,deb_cred='D',debito=169.74,credito=0.00,acumulado=0.00,val_iva=31.74,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20211018 17:59 UPDATE documento_d2 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101175600,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=138.0000,tot_desconto=0.0000,tot_liquido=138.0000,tot_iva=31.7400,tot_valor=169.7400,val_pago=0.0000,val_pend=169.7400,suj_valor0=138.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.7400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211018 18:02 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,64,0,'',0,0,'',20211019000000,20211019000000,20000101180200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211018 18:02 UPDATE documento_d2 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101180200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211018 18:03 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,64,'','Cuttinsol/5-0leo corte(Emb.25Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211018 18:03 UPDATE documento_d2 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101180200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211018 18:03 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=64,codigo='',designacao='Cuttinsol/5-0leo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=166 LIMIT 1;
20211018 18:03 UPDATE documento_d2 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101180200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211018 18:04 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=64,codigo='',designacao='Cuttinsol/5-0leo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=6.4500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=161.25,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=166 LIMIT 1;
20211018 18:04 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'D',2,'N/ Fatura',64,20211019000000,20211019000000,'','',198.34,198.34,'D',198.34,0.00,0.00,37.09,0.00,1.000000,0,0,'A','');
20211018 18:04 UPDATE documento_d2 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101180200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=161.2500,tot_desconto=0.0000,tot_liquido=161.2500,tot_iva=37.0900,tot_valor=198.3400,val_pago=0.0000,val_pend=198.3400,suj_valor0=161.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.0900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211018 18:04 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=64,d_doc=20211019000000,d_venc=20211019000000,ref='',obs='',valor=198.34,pendente=198.34,deb_cred='D',debito=198.34,credito=0.00,acumulado=0.00,val_iva=37.09,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20211018 18:04 UPDATE documento_d2 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101180200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=161.2500,tot_desconto=0.0000,tot_liquido=161.2500,tot_iva=37.0900,tot_valor=198.3400,val_pago=0.0000,val_pend=198.3400,suj_valor0=161.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.0900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211019 21:11 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,441,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211019 21:11 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=441,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=62 LIMIT 1;
20211019 21:14 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4850-523','','','');
20211019 21:15 UPDATE codigos_postais SET codigo='4850-523',concelho='Vieira do Minho',distrito='Vieira do Minho',rsv='' WHERE IDX=49 LIMIT 1;
20211019 21:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=41,nome_1='CONSTRU€™ES VIEIRA Unipessoal Lda',nome_2='',morada='Largo do Emigrnate R/C Loja 55',localidade='Vieira do Minho',cod_post='4850-523',concelho='Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='506 283 232',telefone='253 166 765',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='construcoesvieira@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='961 789 786, 911 996 464',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=61 LIMIT 1;
20211019 21:17 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=41,nome_1='CONSTRU€™ES VIEIRA Unipessoal Lda',nome_2='',morada='Largo do Emigrnate R/C Loja 55',localidade='Vieira do Minho',cod_post='4850-523',concelho='Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='506 283 232',telefone='253 166 765',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='construcoesvieira@gmail.com',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='961 789 786, 911 996 464',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=61 LIMIT 1;
20211019 21:18 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,442,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211019 21:18 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=442,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=63 LIMIT 1;
20211026 21:14 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,65,0,'',0,0,'',20211026000000,20211026000000,20000101211400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211026 21:14 UPDATE documento_d2 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211026000000,d_venc=20211026000000,h_doc=20000101211400,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211026 21:15 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,65,'','Cuttinsol Gren102/Oleo corte(Emb.25Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211026 21:15 UPDATE documento_d2 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211026000000,d_venc=20211026000000,h_doc=20000101211400,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211026 21:15 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=65,codigo='',designacao='Cuttinsol Gren102/Oleo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=167 LIMIT 1;
20211026 21:15 UPDATE documento_d2 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211026000000,d_venc=20211026000000,h_doc=20000101211400,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211026 21:15 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=65,codigo='',designacao='Cuttinsol Gren102/Oleo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=25.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=150.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=167 LIMIT 1;
20211026 21:15 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,39,'D',2,'N/ Fatura',65,20211027000000,20211027000000,'','',184.50,184.50,'D',184.50,0.00,0.00,34.50,0.00,1.000000,0,0,'A','');
20211026 21:15 UPDATE documento_d2 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211400,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211026 21:15 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=65,d_doc=20211027000000,d_venc=20211027000000,ref='',obs='',valor=184.50,pendente=184.50,deb_cred='D',debito=184.50,credito=0.00,acumulado=0.00,val_iva=34.50,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20211026 21:15 UPDATE documento_d2 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211400,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=150.0000,tot_desconto=0.0000,tot_liquido=150.0000,tot_iva=34.5000,tot_valor=184.5000,val_pago=0.0000,val_pend=184.5000,suj_valor0=150.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=34.5000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211026 21:19 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,66,0,'',0,0,'',20211027000000,20211027000000,20000101211900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211026 21:19 UPDATE documento_d2 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211900,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211026 21:20 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,66,'','Cuttinsol Gren102/źleo corte(Emb.25Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211026 21:20 UPDATE documento_d2 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211900,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211026 21:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=66,codigo='',designacao='Cuttinsol Gren102/źleo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=50.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=168 LIMIT 1;
20211026 21:20 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=66,codigo='',designacao='Cuttinsol Gren102/źleo corte(Emb.25Lt)',unidade='',com_iva='',quantidade=50.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=300.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=168 LIMIT 1;
20211026 21:20 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,37,'D',2,'N/ Fatura',66,20211027000000,20211027000000,'','Sr. Eduardo, 961957435, 925313289',369.00,369.00,'D',369.00,0.00,0.00,69.00,0.00,1.000000,0,0,'A','');
20211026 21:20 UPDATE documento_d2 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211900,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.0000,tot_desconto=0.0000,tot_liquido=300.0000,tot_iva=69.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=369.0000,suj_valor0=300.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=69.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211026 21:20 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=37,doc_mov='D',tp=2,document='N/ Fatura',no_doc=66,d_doc=20211027000000,d_venc=20211027000000,ref='',obs='Sr. Eduardo, 961957435, 925313289',valor=369.00,pendente=369.00,deb_cred='D',debito=369.00,credito=0.00,acumulado=0.00,val_iva=69.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20211026 21:20 UPDATE documento_d2 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211900,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.0000,tot_desconto=0.0000,tot_liquido=300.0000,tot_iva=69.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=369.0000,suj_valor0=300.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=69.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211101 16:34 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,57,0,'',0,0,'',20211101000000,00000000000000,20000101163400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:36 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,36,'R',1,'Recibo',57,20211101000000,20211101000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:36 UPDATE documento_r1 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101163400,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211101 16:36 UPDATE documento_d2 SET linhas=0,no_doc=60,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211004000000,d_venc=20211004000000,h_doc=20000101101900,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=270.0000,tot_desconto=0.0000,tot_liquido=270.0000,tot_iva=62.1000,tot_valor=332.1000,val_pago=332.1000,val_pend=0.0000,suj_valor0=270.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=62.1000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=61 LIMIT 1;
20211101 16:36 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,57,'D',2,'N/ Fatura',60,20211004000000,20211004000000,'','D',332.10,332.10,332.10,0.000,0.00,332.10,0.00,0.00,0,'A',270.00,62.10,332.10,270.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,62.10,0.00,0.00,0.00,0,'');
20211101 16:36 UPDATE reciboslinhas01 SET linha=5,cor=0,no=57,doc_mov='D',tp=2,document='N/ Fatura',n_doc=60,d_doc=20211004000000,d_venc=20211004000000,ref='',deb_cred='D',val_doc=332.10,val_pend=332.10,val_liqu=332.10,per_desc=0.000,val_desc=0.00,val_rec=332.10,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=270.00,tot_iva=62.10,tot_valor=332.10,suj_valor0=270.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=62.10,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=72 LIMIT 1;
20211101 16:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=36,doc_mov='R',tp=1,document='Recibo',no_doc=57,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='',valor=332.10,pendente=332.10,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=121 LIMIT 1;
20211101 16:36 UPDATE documento_r1 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101163400,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=332.1000,tot_desconto=0.0000,tot_liquido=332.1000,tot_iva=0.0000,tot_valor=332.1000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211101 16:36 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=36,doc_mov='R',tp=1,document='Recibo',no_doc=57,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='',valor=332.10,pendente=332.10,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=121 LIMIT 1;
20211101 16:36 UPDATE documento_r1 SET linhas=0,no_doc=57,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101163400,no_cf=36,nome_cf='CARPINTARIA SOUSA & SILVA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=332.1000,tot_desconto=0.0000,tot_liquido=332.1000,tot_iva=0.0000,tot_valor=332.1000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211101 16:38 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,58,0,'',0,0,'',20211101000000,00000000000000,20000101163800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:39 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,17,'R',1,'Recibo',58,20211101000000,20211101000000,'','Eng.JoĆo(913 875 146)',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:39 UPDATE documento_r1 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101163800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211101 16:39 UPDATE documento_d2 SET linhas=0,no_doc=61,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211012000000,d_venc=20211012000000,h_doc=20000101212000,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=607.5000,tot_desconto=0.0000,tot_liquido=607.5000,tot_iva=139.7300,tot_valor=747.2300,val_pago=747.2300,val_pend=0.0000,suj_valor0=607.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=139.7300,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=62 LIMIT 1;
20211101 16:39 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,58,'D',2,'N/ Fatura',61,20211012000000,20211012000000,'','D',747.23,747.23,747.23,0.000,0.00,747.23,0.00,0.00,0,'A',607.50,139.73,747.23,607.50,0.00,0.00,0.00,23.00,13.00,6.00,0.00,139.73,0.00,0.00,0.00,0,'');
20211101 16:39 UPDATE reciboslinhas01 SET linha=5,cor=0,no=58,doc_mov='D',tp=2,document='N/ Fatura',n_doc=61,d_doc=20211012000000,d_venc=20211012000000,ref='',deb_cred='D',val_doc=747.23,val_pend=747.23,val_liqu=747.23,per_desc=0.000,val_desc=0.00,val_rec=747.23,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=607.50,tot_iva=139.73,tot_valor=747.23,suj_valor0=607.50,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=139.73,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=73 LIMIT 1;
20211101 16:39 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='R',tp=1,document='Recibo',no_doc=58,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=747.23,pendente=747.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=122 LIMIT 1;
20211101 16:39 UPDATE documento_r1 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101163800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=747.2300,tot_desconto=0.0000,tot_liquido=747.2300,tot_iva=0.0000,tot_valor=747.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211101 16:39 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=17,doc_mov='R',tp=1,document='Recibo',no_doc=58,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='Eng.JoĆo(913 875 146)',valor=747.23,pendente=747.23,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=122 LIMIT 1;
20211101 16:39 UPDATE documento_r1 SET linhas=0,no_doc=58,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101163800,no_cf=17,nome_cf='Bernardino Teixeira&Ca.,Soc. Const.Lda',desconto=0.0000,linha_pre=0,observacao='Eng.JoĆo(913 875 146)',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=747.2300,tot_desconto=0.0000,tot_liquido=747.2300,tot_iva=0.0000,tot_valor=747.2300,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211101 16:40 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,59,0,'',0,0,'',20211101000000,00000000000000,20000101164000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:40 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,38,'R',1,'Recibo',59,20211101000000,20211101000000,'','968564005/966020965',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:40 UPDATE documento_r1 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164000,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211101 16:40 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=202.9500,val_pend=0.0000,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211101 16:40 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,59,'D',2,'N/ Fatura',62,20211018000000,20211018000000,'','D',202.95,202.95,202.95,0.000,0.00,202.95,0.00,0.00,0,'A',165.00,37.95,202.95,165.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,37.95,0.00,0.00,0.00,0,'');
20211101 16:40 UPDATE reciboslinhas01 SET linha=5,cor=0,no=59,doc_mov='D',tp=2,document='N/ Fatura',n_doc=62,d_doc=20211018000000,d_venc=20211018000000,ref='',deb_cred='D',val_doc=202.95,val_pend=202.95,val_liqu=202.95,per_desc=0.000,val_desc=0.00,val_rec=202.95,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=165.00,tot_iva=37.95,tot_valor=202.95,suj_valor0=165.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=37.95,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=74 LIMIT 1;
20211101 16:40 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=38,doc_mov='R',tp=1,document='Recibo',no_doc=59,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='968564005/966020965',valor=202.95,pendente=202.95,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=123 LIMIT 1;
20211101 16:40 UPDATE documento_r1 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164000,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=202.9500,tot_desconto=0.0000,tot_liquido=202.9500,tot_iva=0.0000,tot_valor=202.9500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211101 16:40 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=38,doc_mov='R',tp=1,document='Recibo',no_doc=59,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='968564005/966020965',valor=202.95,pendente=202.95,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=123 LIMIT 1;
20211101 16:40 UPDATE documento_r1 SET linhas=0,no_doc=59,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164000,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=202.9500,tot_desconto=0.0000,tot_liquido=202.9500,tot_iva=0.0000,tot_valor=202.9500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211101 16:41 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,60,0,'',0,0,'',20211101000000,00000000000000,20000101164100,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:41 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,16,'R',1,'Recibo',60,20211101000000,20211101000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:41 UPDATE documento_r1 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164100,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211101 16:42 UPDATE documento_d2 SET linhas=0,no_doc=63,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101175600,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=138.0000,tot_desconto=0.0000,tot_liquido=138.0000,tot_iva=31.7400,tot_valor=169.7400,val_pago=169.7400,val_pend=0.0000,suj_valor0=138.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=31.7400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=64 LIMIT 1;
20211101 16:42 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,60,'D',2,'N/ Fatura',63,20211019000000,20211019000000,'','D',169.74,169.74,169.74,0.000,0.00,169.74,0.00,0.00,0,'A',138.00,31.74,169.74,138.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,31.74,0.00,0.00,0.00,0,'');
20211101 16:42 UPDATE reciboslinhas01 SET linha=5,cor=0,no=60,doc_mov='D',tp=2,document='N/ Fatura',n_doc=63,d_doc=20211019000000,d_venc=20211019000000,ref='',deb_cred='D',val_doc=169.74,val_pend=169.74,val_liqu=169.74,per_desc=0.000,val_desc=0.00,val_rec=169.74,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=138.00,tot_iva=31.74,tot_valor=169.74,suj_valor0=138.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=31.74,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=75 LIMIT 1;
20211101 16:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='R',tp=1,document='Recibo',no_doc=60,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='',valor=169.74,pendente=169.74,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=124 LIMIT 1;
20211101 16:42 UPDATE documento_r1 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164100,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=169.7400,tot_desconto=0.0000,tot_liquido=169.7400,tot_iva=0.0000,tot_valor=169.7400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211101 16:42 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=16,doc_mov='R',tp=1,document='Recibo',no_doc=60,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='',valor=169.74,pendente=169.74,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=124 LIMIT 1;
20211101 16:42 UPDATE documento_r1 SET linhas=0,no_doc=60,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164100,no_cf=16,nome_cf='JOMACOL-SERRALHARIA CIVIL, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=169.7400,tot_desconto=0.0000,tot_liquido=169.7400,tot_iva=0.0000,tot_valor=169.7400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=66 LIMIT 1;
20211101 16:43 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,61,0,'',0,0,'',20211101000000,00000000000000,20000101164300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:43 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'R',1,'Recibo',61,20211101000000,20211101000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:43 UPDATE documento_r1 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164300,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211101 16:43 UPDATE documento_d2 SET linhas=0,no_doc=64,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211019000000,d_venc=20211019000000,h_doc=20000101180200,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=161.2500,tot_desconto=0.0000,tot_liquido=161.2500,tot_iva=37.0900,tot_valor=198.3400,val_pago=198.3400,val_pend=0.0000,suj_valor0=161.2500,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.0900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=65 LIMIT 1;
20211101 16:43 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,61,'D',2,'N/ Fatura',64,20211019000000,20211019000000,'','D',198.34,198.34,198.34,0.000,0.00,198.34,0.00,0.00,0,'A',161.25,37.09,198.34,161.25,0.00,0.00,0.00,23.00,13.00,6.00,0.00,37.09,0.00,0.00,0.00,0,'');
20211101 16:43 UPDATE reciboslinhas01 SET linha=5,cor=0,no=61,doc_mov='D',tp=2,document='N/ Fatura',n_doc=64,d_doc=20211019000000,d_venc=20211019000000,ref='',deb_cred='D',val_doc=198.34,val_pend=198.34,val_liqu=198.34,per_desc=0.000,val_desc=0.00,val_rec=198.34,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=161.25,tot_iva=37.09,tot_valor=198.34,suj_valor0=161.25,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=37.09,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=76 LIMIT 1;
20211101 16:43 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=61,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='',valor=198.34,pendente=198.34,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=125 LIMIT 1;
20211101 16:43 UPDATE documento_r1 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164300,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=198.3400,tot_desconto=0.0000,tot_liquido=198.3400,tot_iva=0.0000,tot_valor=198.3400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211101 16:43 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=61,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='',valor=198.34,pendente=198.34,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=125 LIMIT 1;
20211101 16:43 UPDATE documento_r1 SET linhas=0,no_doc=61,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164300,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=198.3400,tot_desconto=0.0000,tot_liquido=198.3400,tot_iva=0.0000,tot_valor=198.3400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211101 16:44 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,62,0,'',0,0,'',20211101000000,00000000000000,20000101164400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:45 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,39,'R',1,'Recibo',62,20211101000000,20211101000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:45 UPDATE documento_r1 SET linhas=0,no_doc=62,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164400,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211101 16:46 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,63,0,'',0,0,'',20211101000000,00000000000000,20000101164600,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211101000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211101 16:46 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,37,'R',1,'Recibo',63,20211101000000,20211101000000,'','Sr. Eduardo, 961957435, 925313289',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211101 16:46 UPDATE documento_r1 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164600,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211101 16:46 UPDATE documento_d2 SET linhas=0,no_doc=66,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211027000000,d_venc=20211027000000,h_doc=20000101211900,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=300.0000,tot_desconto=0.0000,tot_liquido=300.0000,tot_iva=69.0000,tot_valor=369.0000,val_pago=369.0000,val_pend=0.0000,suj_valor0=300.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=69.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=67 LIMIT 1;
20211101 16:46 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,63,'D',2,'N/ Fatura',66,20211027000000,20211027000000,'','D',369.00,369.00,369.00,0.000,0.00,369.00,0.00,0.00,0,'A',300.00,69.00,369.00,300.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,69.00,0.00,0.00,0.00,0,'');
20211101 16:46 UPDATE reciboslinhas01 SET linha=5,cor=0,no=63,doc_mov='D',tp=2,document='N/ Fatura',n_doc=66,d_doc=20211027000000,d_venc=20211027000000,ref='',deb_cred='D',val_doc=369.00,val_pend=369.00,val_liqu=369.00,per_desc=0.000,val_desc=0.00,val_rec=369.00,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=300.00,tot_iva=69.00,tot_valor=369.00,suj_valor0=300.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=69.00,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=77 LIMIT 1;
20211101 16:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=37,doc_mov='R',tp=1,document='Recibo',no_doc=63,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='Sr. Eduardo, 961957435, 925313289',valor=369.00,pendente=369.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=127 LIMIT 1;
20211101 16:46 UPDATE documento_r1 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164600,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=369.0000,tot_desconto=0.0000,tot_liquido=369.0000,tot_iva=0.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211101 16:46 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=37,doc_mov='R',tp=1,document='Recibo',no_doc=63,d_doc=20211101000000,d_venc=20211101000000,ref='',obs='Sr. Eduardo, 961957435, 925313289',valor=369.00,pendente=369.00,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=127 LIMIT 1;
20211101 16:46 UPDATE documento_r1 SET linhas=0,no_doc=63,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211101000000,d_venc=20211101000000,h_doc=20000101164600,no_cf=37,nome_cf='Serralharia O Bota, Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Eduardo, 961957435, 925313289',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=369.0000,tot_desconto=0.0000,tot_liquido=369.0000,tot_iva=0.0000,tot_valor=369.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211101000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211103 11:05 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,67,0,'',0,0,'',20211103000000,20211103000000,20000101110500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211103 11:06 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211103 11:07 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,67,'','Destac/A(Oleo desc)Emb.20Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211103 11:07 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211103 11:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=67,codigo='',designacao='Destac/A(Oleo desc)Emb.20Lt',unidade='',com_iva='',quantidade=5.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=169 LIMIT 1;
20211103 11:07 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211103 11:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=67,codigo='',designacao='Destac/A(Oleo desc)Emb.20Lt',unidade='',com_iva='',quantidade=5.000000,preco_unit=4.9000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=24.50,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=169 LIMIT 1;
20211103 11:07 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,41,'D',2,'N/ Fatura',67,20211103000000,20211103000000,'','961 789 786, 911 996 464',30.14,30.14,'D',30.14,0.00,0.00,5.64,0.00,1.000000,0,0,'A','');
20211103 11:07 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=24.5000,tot_desconto=0.0000,tot_liquido=24.5000,tot_iva=5.6400,tot_valor=30.1400,val_pago=0.0000,val_pend=30.1400,suj_valor0=24.5000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=5.6400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211103 11:07 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=67,codigo='',designacao='Destac/A(Oleo desc)Emb.20Lt',unidade='',com_iva='',quantidade=100.000000,preco_unit=4.9000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=490.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=169 LIMIT 1;
20211103 11:07 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=41,doc_mov='D',tp=2,document='N/ Fatura',no_doc=67,d_doc=20211103000000,d_venc=20211103000000,ref='',obs='961 789 786, 911 996 464',valor=602.70,pendente=602.70,deb_cred='D',debito=602.70,credito=0.00,acumulado=0.00,val_iva=112.70,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20211103 11:07 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=490.0000,tot_desconto=0.0000,tot_liquido=490.0000,tot_iva=112.7000,tot_valor=602.7000,val_pago=0.0000,val_pend=602.7000,suj_valor0=490.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=112.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211103 11:07 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=41,doc_mov='D',tp=2,document='N/ Fatura',no_doc=67,d_doc=20211103000000,d_venc=20211103000000,ref='',obs='961 789 786, 911 996 464',valor=602.70,pendente=602.70,deb_cred='D',debito=602.70,credito=0.00,acumulado=0.00,val_iva=112.70,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=7 LIMIT 1;
20211103 11:07 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=490.0000,tot_desconto=0.0000,tot_liquido=490.0000,tot_iva=112.7000,tot_valor=602.7000,val_pago=0.0000,val_pend=602.7000,suj_valor0=490.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=112.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211104 10:59 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,68,0,'',0,0,'',20211104000000,20211104000000,20000101105900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211104 11:01 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211104 11:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,68,'','KingSoftBac/Gel Banho(Emb.5Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211104 11:02 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211104 11:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=68,codigo='',designacao='KingSoftBac/Gel Banho(Emb.5Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=170 LIMIT 1;
20211104 11:02 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211104 11:02 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=68,codigo='',designacao='KingSoftBac/Gel Banho(Emb.5Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=3.3000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=132.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=170 LIMIT 1;
20211104 11:02 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'D',2,'N/ Fatura',68,20211104000000,20211104000000,'','',162.36,162.36,'D',162.36,0.00,0.00,30.36,0.00,1.000000,0,0,'A','');
20211104 11:02 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211104 11:02 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,68,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211104 11:02 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=68,codigo='',designacao='Persiusos/L(Emb.10Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=171 LIMIT 1;
20211104 11:02 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=68,d_doc=20211104000000,d_venc=20211104000000,ref='',obs='',valor=162.36,pendente=162.36,deb_cred='D',debito=162.36,credito=0.00,acumulado=0.00,val_iva=30.36,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20211104 11:02 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=132.0000,tot_desconto=0.0000,tot_liquido=132.0000,tot_iva=30.3600,tot_valor=162.3600,val_pago=0.0000,val_pend=162.3600,suj_valor0=132.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=30.3600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211104 11:03 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=68,codigo='',designacao='Persiusos/L(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=171 LIMIT 1;
20211104 11:03 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=68,codigo='',designacao='Persiusos/L(Emb.10Lt)',unidade='',com_iva='',quantidade=40.000000,preco_unit=1.6000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=64.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=171 LIMIT 1;
20211104 11:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=68,d_doc=20211104000000,d_venc=20211104000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20211104 11:03 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211104 11:03 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='D',tp=2,document='N/ Fatura',no_doc=68,d_doc=20211104000000,d_venc=20211104000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='D',debito=241.08,credito=0.00,acumulado=0.00,val_iva=45.08,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20211104 11:03 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=0.0000,val_pend=241.0800,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211105 11:37 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,69,0,'',0,0,'',20211105000000,20211105000000,20000101113700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211105 11:37 UPDATE documento_d2 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211105000000,d_venc=20211105000000,h_doc=20000101113700,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211105 11:38 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,69,'','H/1(Desincrustante/oxidante)-Emb.20Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211105 11:38 UPDATE documento_d2 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211105000000,d_venc=20211105000000,h_doc=20000101113700,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211105 11:38 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=69,codigo='',designacao='H/1(Desincrustante/oxidante)-Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=172 LIMIT 1;
20211105 11:38 UPDATE documento_d2 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211105000000,d_venc=20211105000000,h_doc=20000101113700,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211105 11:38 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=69,codigo='',designacao='H/1(Desincrustante/oxidante)-Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=8.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=164.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=172 LIMIT 1;
20211105 11:38 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'D',2,'N/ Fatura',69,20211105000000,20211105000000,'','',201.72,201.72,'D',201.72,0.00,0.00,37.72,0.00,1.000000,1,0,'A','');
20211105 11:38 UPDATE documento_d2 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211105000000,d_venc=20211105000000,h_doc=20000101113700,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=164.0000,tot_desconto=0.0000,tot_liquido=164.0000,tot_iva=37.7200,tot_valor=201.7200,val_pago=0.0000,val_pend=201.7200,suj_valor0=164.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211105 11:38 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='D',tp=2,document='N/ Fatura',no_doc=69,d_doc=20211105000000,d_venc=20211105000000,ref='',obs='',valor=201.72,pendente=201.72,deb_cred='D',debito=201.72,credito=0.00,acumulado=0.00,val_iva=37.72,pend_rec=0.00,cambio=1.000000,nomoeda=1,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211105 11:38 UPDATE documento_d2 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211105000000,d_venc=20211105000000,h_doc=20000101113700,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=164.0000,tot_desconto=0.0000,tot_liquido=164.0000,tot_iva=37.7200,tot_valor=201.7200,val_pago=0.0000,val_pend=201.7200,suj_valor0=164.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211111 18:10 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,70,0,'',0,0,'',20211111000000,20211111000000,20000101181000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211111 18:10 UPDATE documento_d2 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211111000000,d_venc=20211111000000,h_doc=20000101181000,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211111 18:11 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,70,'','Persiusos/Tutti(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211111 18:11 UPDATE documento_d2 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211111000000,d_venc=20211111000000,h_doc=20000101181000,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211111 18:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=70,codigo='',designacao='Persiusos/Tutti(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=173 LIMIT 1;
20211111 18:11 UPDATE documento_d2 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211111000000,d_venc=20211111000000,h_doc=20000101181000,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211111 18:11 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=70,codigo='',designacao='Persiusos/Tutti(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.4000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=192.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=173 LIMIT 1;
20211111 18:11 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'D',2,'N/ Fatura',70,20211112000000,20211112000000,'','',236.16,236.16,'D',236.16,0.00,0.00,44.16,0.00,1.000000,0,0,'A','');
20211111 18:11 UPDATE documento_d2 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211112000000,d_venc=20211112000000,h_doc=20000101181000,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=0.0000,val_pend=236.1600,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211111 18:11 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='D',tp=2,document='N/ Fatura',no_doc=70,d_doc=20211112000000,d_venc=20211112000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='D',debito=236.16,credito=0.00,acumulado=0.00,val_iva=44.16,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20211111 18:11 UPDATE documento_d2 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211112000000,d_venc=20211112000000,h_doc=20000101181000,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=0.0000,val_pend=236.1600,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211116 17:57 INSERT INTO documento_d3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20211116000000,20211116000000,20000101175700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211116 17:58 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175700,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=1 LIMIT 1;
20211116 17:58 DELETE FROM documento_linhas_d3 WHERE  num_doc=1  AND  serdoc='a' 
20211116 17:58 DELETE FROM documento_linhas_d3 WHERE  num_doc=1  AND  serdoc='a' 
20211116 17:58 INSERT INTO documento_d3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20211116000000,20211116000000,20000101175800,38,'Serralharia Orgulho Geom‚trico Lda',0.0000,0,'968564005/966020965',1,0,0.0000,0,'',0,0,'','',0,'',165.0000,0.0000,165.0000,37.9500,202.9500,0.0000,202.9500,165.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,37.9500,0.0000,0.0000,0.0000,0,'',00000000000000,'',1.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211116 17:58 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=3,anulado='',no_moed=0,convertido=1,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=202.9500,val_pend=0.0000,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=3,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211116 17:58 INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','FATURA N. 62 de 18-10-2021','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,20211018000000,0,0,0.0000,62,'','',0,'A',0,0,0,0,0.000,'');
20211116 17:58 INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','Persiusos/A(Emb,30Lt)','','',30.000000,5.5000000,0.0000000,0.0000000,0.0000000,0.0000000,23.00,165.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,20211018000000,0,0,0.0000,62,'','',0,'A',0,0,0,0,0.000,'');
20211116 17:58 INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,15,0,1,'','Oferta Pulverizador','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,20211018000000,0,0,0.0000,62,'','',0,'A',0,0,0,0,0.000,'');
20211116 17:58 INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,20,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,20211018000000,0,0,0.0000,62,'','',0,'A',0,0,0,0,0.000,'');
20211116 17:58 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175800,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20211116 17:58 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,38,'D',3,'N/ Nota de Credito',1,20211116000000,20211116000000,'','968564005/966020965',202.95,202.95,'C',0.00,202.95,0.00,37.95,0.00,1.000000,0,0,'A','');
20211116 17:59 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175800,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=2 LIMIT 1;
20211116 17:59 DELETE FROM documento_linhas_d3 WHERE  num_doc=1  AND  serdoc='a' 
20211116 17:59 DELETE FROM documento_linhas_d3 WHERE  num_doc=1  AND  serdoc='a' 
20211116 17:59 INSERT INTO documento_d3 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,1,0,'',0,0,'',20211116000000,20211116000000,20000101175900,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211116 18:00 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20211116 18:00 UPDATE documento_d2 SET convertido='1' WHERE no_doc='62' and serdoc='A' 
20211116 18:01 INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,1,'','Pe','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211116 18:01 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20211116 18:01 UPDATE documento_linhas_d3 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='Persiusos /A(Emb. 30Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=5 LIMIT 1;
20211116 18:01 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20211116 18:01 INSERT INTO documento_linhas_d3 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,1,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211116 18:02 UPDATE documento_linhas_d3 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='Persiusos /A(Emb. 30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=5 LIMIT 1;
20211116 18:02 UPDATE documento_linhas_d3 SET lnh_f=5,cor=0,num_doc=1,codigo='',designacao='Persiusos /A(Emb. 30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=5.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=165.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=5 LIMIT 1;
20211116 18:02 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,38,'D',3,'N/ Nota de Credito',1,20211116000000,20211116000000,'','968564005/966020965',202.95,202.95,'C',0.00,202.95,0.00,37.95,0.00,1.000000,0,0,'A','');
20211116 18:02 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20211116 18:02 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=38,doc_mov='D',tp=3,document='N/ Nota de Credito',no_doc=1,d_doc=20211116000000,d_venc=20211116000000,ref='',obs='968564005/966020965',valor=202.95,pendente=202.95,deb_cred='C',debito=0.00,credito=202.95,acumulado=0.00,val_iva=37.95,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20211116 18:02 UPDATE documento_d3 SET linhas=0,no_doc=1,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101175900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=3 LIMIT 1;
20211116 18:03 UPDATE documento_d3 SET convertido='0' WHERE no_doc='1' and serdoc='A' 
20211116 18:07 DELETE FROM clientes__contactos_ WHERE  no=442 
20211116 18:07 DELETE FROM artigos_cliente WHERE  no=442 
20211116 18:07 DELETE FROM cliente_morada WHERE  numero=442 
20211116 18:07 DELETE FROM clientes__contactos_ WHERE  no=441 
20211116 18:07 DELETE FROM artigos_cliente WHERE  no=441 
20211116 18:07 DELETE FROM cliente_morada WHERE  numero=441 
20211116 18:08 DELETE FROM clientes__contactos_ WHERE  no=339 
20211116 18:08 DELETE FROM artigos_cliente WHERE  no=339 
20211116 18:08 DELETE FROM cliente_morada WHERE  numero=339 
20211116 18:08 DELETE FROM clientes__contactos_ WHERE  no=338 
20211116 18:08 DELETE FROM artigos_cliente WHERE  no=338 
20211116 18:08 DELETE FROM cliente_morada WHERE  numero=338 
20211116 18:08 DELETE FROM clientes__contactos_ WHERE  no=337 
20211116 18:08 DELETE FROM artigos_cliente WHERE  no=337 
20211116 18:08 DELETE FROM cliente_morada WHERE  numero=337 
20211116 18:08 DELETE FROM clientes__contactos_ WHERE  no=336 
20211116 18:08 DELETE FROM artigos_cliente WHERE  no=336 
20211116 18:08 DELETE FROM cliente_morada WHERE  numero=336 
20211116 18:11 UPDATE documento_d2 SET linhas=0,no_doc=62,emitido=3,anulado='',no_moed=0,convertido=1,referencia='',d_doc=20211018000000,d_venc=20211018000000,h_doc=20000101100900,no_cf=38,nome_cf='Serralharia Orgulho Geom‚trico Lda',desconto=0.0000,linha_pre=0,observacao='968564005/966020965',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=165.0000,tot_desconto=0.0000,tot_liquido=165.0000,tot_iva=37.9500,tot_valor=202.9500,val_pago=0.0000,val_pend=202.9500,suj_valor0=165.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=3,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=63 LIMIT 1;
20211116 18:13 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,71,0,'',0,0,'',20211116000000,20211116000000,20000101181300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211116 18:14 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211116 18:15 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,71,'','Persinod/A','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211116 18:15 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211116 18:15 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=71,codigo='',designacao='Persinod/A(Emb.30Lt)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=174 LIMIT 1;
20211116 18:15 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211116 18:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=71,codigo='',designacao='Persinod/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=174 LIMIT 1;
20211116 18:16 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211116 18:16 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=71,codigo='',designacao='Persinod/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.5000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=195.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=174 LIMIT 1;
20211116 18:16 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,30,'D',2,'N/ Fatura',71,20211116000000,20211116000000,'','D.DULCE',239.85,239.85,'D',239.85,0.00,0.00,44.85,0.00,1.000000,0,0,'A','');
20211116 18:16 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=195.0000,tot_desconto=0.0000,tot_liquido=195.0000,tot_iva=44.8500,tot_valor=239.8500,val_pago=0.0000,val_pend=239.8500,suj_valor0=195.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.8500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211116 18:16 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='D',tp=2,document='N/ Fatura',no_doc=71,d_doc=20211116000000,d_venc=20211116000000,ref='',obs='D.DULCE',valor=239.85,pendente=239.85,deb_cred='D',debito=239.85,credito=0.00,acumulado=0.00,val_iva=44.85,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=8 LIMIT 1;
20211116 18:16 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=195.0000,tot_desconto=0.0000,tot_liquido=195.0000,tot_iva=44.8500,tot_valor=239.8500,val_pago=0.0000,val_pend=239.8500,suj_valor0=195.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.8500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211122 18:27 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,72,0,'',0,0,'',20211122000000,20211122000000,20000101182700,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211122 18:27 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,72,'','Pesiusos/A(Emb.20Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211122 18:28 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=72,codigo='',designacao='Pesiusos/A(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=175 LIMIT 1;
20211122 18:28 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:28 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=72,codigo='',designacao='Pesiusos/A(Emb.20Lt)',unidade='',com_iva='',quantidade=20.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=120.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=175 LIMIT 1;
20211122 18:28 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,39,'D',2,'N/ Fatura',72,20211122000000,20211122000000,'','',147.60,147.60,'D',147.60,0.00,0.00,27.60,0.00,1.000000,0,0,'A','');
20211122 18:28 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:28 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,72,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211122 18:29 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=72,codigo='',designacao='Oferta 1 Pulvizador',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=176 LIMIT 1;
20211122 18:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:29 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:29 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=72,codigo='',designacao='Oferta 1 Pulvizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=176 LIMIT 1;
20211122 18:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:29 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:29 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=72,codigo='',designacao='Oferta 1 Pulvizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=176 LIMIT 1;
20211122 18:29 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:29 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:29 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=72,codigo='',designacao='Oferta 1 Pulvizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=176 LIMIT 1;
20211122 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:30 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:30 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=72,codigo='',designacao='Oferta 1 Pulvizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=176 LIMIT 1;
20211122 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:30 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:30 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=72,codigo='',designacao='Oferta 1 Pulvizador',unidade='',com_iva='',quantidade=1.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=176 LIMIT 1;
20211122 18:30 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:30 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:31 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211122 18:31 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='D',tp=2,document='N/ Fatura',no_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='D',debito=147.60,credito=0.00,acumulado=0.00,val_iva=27.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=9 LIMIT 1;
20211122 18:31 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=0.0000,val_pend=147.6000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211129 18:10 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,73,0,'',0,0,'',20211129000000,20211129000000,20000101181000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211129 18:11 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211129000000,d_venc=20211129000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:21 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,73,'','Persiusos/A(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211129 18:21 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211129000000,d_venc=20211129000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:21 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=73,codigo='',designacao='Persiusos/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=177 LIMIT 1;
20211129 18:21 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211129000000,d_venc=20211129000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:21 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=73,codigo='',designacao='Persiusos/A(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.1000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=183.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=177 LIMIT 1;
20211129 18:22 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'D',2,'N/ Fatura',73,20211129000000,20211129000000,'','',225.09,225.09,'D',225.09,0.00,0.00,42.09,0.00,1.000000,0,0,'A','');
20211129 18:22 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211129000000,d_venc=20211129000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=183.0000,tot_desconto=0.0000,tot_liquido=183.0000,tot_iva=42.0900,tot_valor=225.0900,val_pago=0.0000,val_pend=225.0900,suj_valor0=183.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.0900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:22 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,73,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211129 18:23 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=73,codigo='',designacao='Q.Car(Shampo/A)Emb.20Lt',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=178 LIMIT 1;
20211129 18:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=73,d_doc=20211129000000,d_venc=20211129000000,ref='',obs='',valor=225.09,pendente=225.09,deb_cred='D',debito=225.09,credito=0.00,acumulado=0.00,val_iva=42.09,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20211129 18:23 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211129000000,d_venc=20211129000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=183.0000,tot_desconto=0.0000,tot_liquido=183.0000,tot_iva=42.0900,tot_valor=225.0900,val_pago=0.0000,val_pend=225.0900,suj_valor0=183.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.0900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:23 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=73,codigo='',designacao='Q.Car(Shampo/A)Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=178 LIMIT 1;
20211129 18:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=73,d_doc=20211129000000,d_venc=20211129000000,ref='',obs='',valor=225.09,pendente=225.09,deb_cred='D',debito=225.09,credito=0.00,acumulado=0.00,val_iva=42.09,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=10 LIMIT 1;
20211129 18:23 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211129000000,d_venc=20211129000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=183.0000,tot_desconto=0.0000,tot_liquido=183.0000,tot_iva=42.0900,tot_valor=225.0900,val_pago=0.0000,val_pend=225.0900,suj_valor0=183.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.0900,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:23 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=73,codigo='',designacao='Q.Car(Shampo/A)Emb.20Lt',unidade='',com_iva='',quantidade=20.000000,preco_unit=5.2500000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=105.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=178 LIMIT 1;
20211129 18:23 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'D',2,'N/ Fatura',73,20211130000000,20211130000000,'','',354.24,354.24,'D',354.24,0.00,0.00,66.24,0.00,1.000000,0,0,'A','');
20211129 18:23 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211130000000,d_venc=20211130000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=0.0000,val_pend=354.2400,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211129 18:23 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='D',tp=2,document='N/ Fatura',no_doc=73,d_doc=20211130000000,d_venc=20211130000000,ref='',obs='',valor=354.24,pendente=354.24,deb_cred='D',debito=354.24,credito=0.00,acumulado=0.00,val_iva=66.24,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20211129 18:23 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211130000000,d_venc=20211130000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=0.0000,val_pend=354.2400,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211201 16:56 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,42,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211201 16:56 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 16:58 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820 203','','','');
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:01 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:02 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=42,nome_1='ORLANDO COSTA LEITE, UNIPESSOAL Lda',nome_2='',morada='Rua da Restaura‡Ćo N§ 205',localidade='FAFE',cod_post='4820 203',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='510972659',telefone='253 598129',fax='253 598129',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Orlando- 966070605',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=64 LIMIT 1;
20211201 17:14 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,64,0,'',0,0,'',00000000000000,00000000000000,20000101171400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:14 UPDATE documento_r1 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=00000000000000,h_doc=20000101171400,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=0.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211201 17:16 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,41,'R',1,'Recibo',64,20211201000000,20211201000000,'','961 789 786, 911 996 464',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:16 UPDATE documento_r1 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101171400,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211201 17:17 UPDATE documento_d2 SET linhas=0,no_doc=67,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211103000000,d_venc=20211103000000,h_doc=20000101110500,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=490.0000,tot_desconto=0.0000,tot_liquido=490.0000,tot_iva=112.7000,tot_valor=602.7000,val_pago=602.7000,val_pend=0.0000,suj_valor0=490.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=112.7000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=68 LIMIT 1;
20211201 17:17 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,64,'D',2,'N/ Fatura',67,20211103000000,20211103000000,'','D',602.70,602.70,602.70,0.000,0.00,602.70,0.00,0.00,0,'A',490.00,112.70,602.70,490.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,112.70,0.00,0.00,0.00,0,'');
20211201 17:17 UPDATE reciboslinhas01 SET linha=5,cor=0,no=64,doc_mov='D',tp=2,document='N/ Fatura',n_doc=67,d_doc=20211103000000,d_venc=20211103000000,ref='',deb_cred='D',val_doc=602.70,val_pend=602.70,val_liqu=602.70,per_desc=0.000,val_desc=0.00,val_rec=602.70,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=490.00,tot_iva=112.70,tot_valor=602.70,suj_valor0=490.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=112.70,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=78 LIMIT 1;
20211201 17:17 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=41,doc_mov='R',tp=1,document='Recibo',no_doc=64,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='961 789 786, 911 996 464',valor=602.70,pendente=602.70,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=136 LIMIT 1;
20211201 17:17 UPDATE documento_r1 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101171400,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=602.7000,tot_desconto=0.0000,tot_liquido=602.7000,tot_iva=0.0000,tot_valor=602.7000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211201 17:17 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=41,doc_mov='R',tp=1,document='Recibo',no_doc=64,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='961 789 786, 911 996 464',valor=602.70,pendente=602.70,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=136 LIMIT 1;
20211201 17:17 UPDATE documento_r1 SET linhas=0,no_doc=64,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101171400,no_cf=41,nome_cf='CONSTRU€™ES VIEIRA Unipessoal Lda',desconto=0.0000,linha_pre=0,observacao='961 789 786, 911 996 464',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=602.7000,tot_desconto=0.0000,tot_liquido=602.7000,tot_iva=0.0000,tot_valor=602.7000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211201 17:18 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,65,0,'',0,0,'',20211201000000,00000000000000,20000101171800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:18 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,7,'R',1,'Recibo',65,20211201000000,20211201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:18 UPDATE documento_r1 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101171800,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211201 17:18 UPDATE documento_d2 SET linhas=0,no_doc=68,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211104000000,d_venc=20211104000000,h_doc=20000101105900,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=196.0000,tot_desconto=0.0000,tot_liquido=196.0000,tot_iva=45.0800,tot_valor=241.0800,val_pago=241.0800,val_pend=0.0000,suj_valor0=196.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=45.0800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=69 LIMIT 1;
20211201 17:18 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,65,'D',2,'N/ Fatura',68,20211104000000,20211104000000,'','D',241.08,241.08,241.08,0.000,0.00,241.08,0.00,0.00,0,'A',196.00,45.08,241.08,196.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,45.08,0.00,0.00,0.00,0,'');
20211201 17:18 UPDATE reciboslinhas01 SET linha=5,cor=0,no=65,doc_mov='D',tp=2,document='N/ Fatura',n_doc=68,d_doc=20211104000000,d_venc=20211104000000,ref='',deb_cred='D',val_doc=241.08,val_pend=241.08,val_liqu=241.08,per_desc=0.000,val_desc=0.00,val_rec=241.08,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=196.00,tot_iva=45.08,tot_valor=241.08,suj_valor0=196.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=45.08,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=79 LIMIT 1;
20211201 17:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=65,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=137 LIMIT 1;
20211201 17:18 UPDATE documento_r1 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101171800,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=241.0800,tot_desconto=0.0000,tot_liquido=241.0800,tot_iva=0.0000,tot_valor=241.0800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211201 17:18 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=7,doc_mov='R',tp=1,document='Recibo',no_doc=65,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=241.08,pendente=241.08,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=137 LIMIT 1;
20211201 17:18 UPDATE documento_r1 SET linhas=0,no_doc=65,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101171800,no_cf=7,nome_cf='CASA DE TRABALHO DE FONTARCADA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=241.0800,tot_desconto=0.0000,tot_liquido=241.0800,tot_iva=0.0000,tot_valor=241.0800,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211201 17:20 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,66,0,'',0,0,'',20211201000000,00000000000000,20000101172000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:20 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,3,'R',1,'Recibo',66,20211201000000,20211201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:20 UPDATE documento_r1 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211201 17:21 UPDATE documento_d2 SET linhas=0,no_doc=69,emitido=3,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211105000000,d_venc=20211105000000,h_doc=20000101113700,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=164.0000,tot_desconto=0.0000,tot_liquido=164.0000,tot_iva=37.7200,tot_valor=201.7200,val_pago=201.7200,val_pend=0.0000,suj_valor0=164.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=37.7200,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='EURO',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=70 LIMIT 1;
20211201 17:21 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,66,'D',2,'N/ Fatura',69,20211105000000,20211105000000,'','D',201.72,201.72,201.72,0.000,0.00,201.72,0.00,0.00,0,'A',164.00,37.72,201.72,164.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,37.72,0.00,0.00,0.00,0,'');
20211201 17:21 UPDATE reciboslinhas01 SET linha=5,cor=0,no=66,doc_mov='D',tp=2,document='N/ Fatura',n_doc=69,d_doc=20211105000000,d_venc=20211105000000,ref='',deb_cred='D',val_doc=201.72,val_pend=201.72,val_liqu=201.72,per_desc=0.000,val_desc=0.00,val_rec=201.72,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=164.00,tot_iva=37.72,tot_valor=201.72,suj_valor0=164.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=37.72,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=80 LIMIT 1;
20211201 17:21 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='R',tp=1,document='Recibo',no_doc=66,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=201.72,pendente=201.72,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=138 LIMIT 1;
20211201 17:21 UPDATE documento_r1 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.7200,tot_desconto=0.0000,tot_liquido=201.7200,tot_iva=0.0000,tot_valor=201.7200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211201 17:21 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=3,doc_mov='R',tp=1,document='Recibo',no_doc=66,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=201.72,pendente=201.72,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=138 LIMIT 1;
20211201 17:21 UPDATE documento_r1 SET linhas=0,no_doc=66,emitido=0,anulado='',no_moed=1,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172000,no_cf=3,nome_cf='ARFERA€O, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=201.7200,tot_desconto=0.0000,tot_liquido=201.7200,tot_iva=0.0000,tot_valor=201.7200,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='EURO',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211201 17:22 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,67,0,'',0,0,'',20211201000000,00000000000000,20000101172200,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:22 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,12,'R',1,'Recibo',67,20211201000000,20211201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:22 UPDATE documento_r1 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211201 17:22 UPDATE documento_d2 SET linhas=0,no_doc=70,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211112000000,d_venc=20211112000000,h_doc=20000101181000,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=192.0000,tot_desconto=0.0000,tot_liquido=192.0000,tot_iva=44.1600,tot_valor=236.1600,val_pago=236.1600,val_pend=0.0000,suj_valor0=192.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.1600,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=71 LIMIT 1;
20211201 17:22 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,67,'D',2,'N/ Fatura',70,20211112000000,20211112000000,'','D',236.16,236.16,236.16,0.000,0.00,236.16,0.00,0.00,0,'A',192.00,44.16,236.16,192.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,44.16,0.00,0.00,0.00,0,'');
20211201 17:22 UPDATE reciboslinhas01 SET linha=5,cor=0,no=67,doc_mov='D',tp=2,document='N/ Fatura',n_doc=70,d_doc=20211112000000,d_venc=20211112000000,ref='',deb_cred='D',val_doc=236.16,val_pend=236.16,val_liqu=236.16,per_desc=0.000,val_desc=0.00,val_rec=236.16,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=192.00,tot_iva=44.16,tot_valor=236.16,suj_valor0=192.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=44.16,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=81 LIMIT 1;
20211201 17:22 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=67,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=139 LIMIT 1;
20211201 17:22 UPDATE documento_r1 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=236.1600,tot_desconto=0.0000,tot_liquido=236.1600,tot_iva=0.0000,tot_valor=236.1600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211201 17:22 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=12,doc_mov='R',tp=1,document='Recibo',no_doc=67,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=236.16,pendente=236.16,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=139 LIMIT 1;
20211201 17:22 UPDATE documento_r1 SET linhas=0,no_doc=67,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172200,no_cf=12,nome_cf='SERRALHARIA DOMINGOS SILVA UNIP.Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=236.1600,tot_desconto=0.0000,tot_liquido=236.1600,tot_iva=0.0000,tot_valor=236.1600,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211201 17:23 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,68,0,'',0,0,'',20211201000000,00000000000000,20000101172300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:24 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,30,'R',1,'Recibo',68,20211201000000,20211201000000,'','D.DULCE',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:24 UPDATE documento_r1 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211201 17:24 UPDATE documento_d2 SET linhas=0,no_doc=71,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211116000000,d_venc=20211116000000,h_doc=20000101181300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=195.0000,tot_desconto=0.0000,tot_liquido=195.0000,tot_iva=44.8500,tot_valor=239.8500,val_pago=239.8500,val_pend=0.0000,suj_valor0=195.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=44.8500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=72 LIMIT 1;
20211201 17:24 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,68,'D',2,'N/ Fatura',71,20211116000000,20211116000000,'','D',239.85,239.85,239.85,0.000,0.00,239.85,0.00,0.00,0,'A',195.00,44.85,239.85,195.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,44.85,0.00,0.00,0.00,0,'');
20211201 17:24 UPDATE reciboslinhas01 SET linha=5,cor=0,no=68,doc_mov='D',tp=2,document='N/ Fatura',n_doc=71,d_doc=20211116000000,d_venc=20211116000000,ref='',deb_cred='D',val_doc=239.85,val_pend=239.85,val_liqu=239.85,per_desc=0.000,val_desc=0.00,val_rec=239.85,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=195.00,tot_iva=44.85,tot_valor=239.85,suj_valor0=195.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=44.85,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=82 LIMIT 1;
20211201 17:24 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='R',tp=1,document='Recibo',no_doc=68,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='D.DULCE',valor=239.85,pendente=239.85,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=140 LIMIT 1;
20211201 17:24 UPDATE documento_r1 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=239.8500,tot_desconto=0.0000,tot_liquido=239.8500,tot_iva=0.0000,tot_valor=239.8500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211201 17:24 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=30,doc_mov='R',tp=1,document='Recibo',no_doc=68,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='D.DULCE',valor=239.85,pendente=239.85,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=140 LIMIT 1;
20211201 17:24 UPDATE documento_r1 SET linhas=0,no_doc=68,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172300,no_cf=30,nome_cf='ESFANI-CONFE€™ES, Lda',desconto=0.0000,linha_pre=0,observacao='D.DULCE',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=239.8500,tot_desconto=0.0000,tot_liquido=239.8500,tot_iva=0.0000,tot_valor=239.8500,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211201 17:25 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,69,0,'',0,0,'',20211201000000,00000000000000,20000101172500,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:26 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,39,'R',1,'Recibo',69,20211201000000,20211201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:26 UPDATE documento_r1 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172500,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211201 17:26 UPDATE documento_d2 SET linhas=0,no_doc=72,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211122000000,d_venc=20211122000000,h_doc=20000101182700,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=120.0000,tot_desconto=0.0000,tot_liquido=120.0000,tot_iva=27.6000,tot_valor=147.6000,val_pago=147.6000,val_pend=0.0000,suj_valor0=120.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=27.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=73 LIMIT 1;
20211201 17:26 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,69,'D',2,'N/ Fatura',72,20211122000000,20211122000000,'','D',147.60,147.60,147.60,0.000,0.00,147.60,0.00,0.00,0,'A',120.00,27.60,147.60,120.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,27.60,0.00,0.00,0.00,0,'');
20211201 17:26 UPDATE reciboslinhas01 SET linha=5,cor=0,no=69,doc_mov='D',tp=2,document='N/ Fatura',n_doc=72,d_doc=20211122000000,d_venc=20211122000000,ref='',deb_cred='D',val_doc=147.60,val_pend=147.60,val_liqu=147.60,per_desc=0.000,val_desc=0.00,val_rec=147.60,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=120.00,tot_iva=27.60,tot_valor=147.60,suj_valor0=120.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=27.60,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=83 LIMIT 1;
20211201 17:26 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='R',tp=1,document='Recibo',no_doc=69,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=141 LIMIT 1;
20211201 17:26 UPDATE documento_r1 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172500,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.6000,tot_desconto=0.0000,tot_liquido=147.6000,tot_iva=0.0000,tot_valor=147.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211201 17:26 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=39,doc_mov='R',tp=1,document='Recibo',no_doc=69,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=147.60,pendente=147.60,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=141 LIMIT 1;
20211201 17:26 UPDATE documento_r1 SET linhas=0,no_doc=69,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172500,no_cf=39,nome_cf='\"A Forja\"Serralh.Bruno Ismael Silv.Abreu',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=147.6000,tot_desconto=0.0000,tot_liquido=147.6000,tot_iva=0.0000,tot_valor=147.6000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211201 17:28 INSERT INTO documento_r1 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,70,0,'',0,0,'',20211201000000,00000000000000,20000101172800,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'H',20211201000000,'',0.0000000,'P',0,0.0000,0.0000,0.0000,0,0.0000,'',0,0,'');
20211201 17:28 INSERT INTO historico_contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,11,'R',1,'Recibo',70,20211201000000,20211201000000,'','',0.00,0.00,'C',0.00,0.00,0.00,0.00,0.00,1.000000,0,0,'','');
20211201 17:28 UPDATE documento_r1 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172800,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211201 17:28 UPDATE documento_d2 SET linhas=0,no_doc=73,emitido=3,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211130000000,d_venc=20211130000000,h_doc=20000101181000,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=288.0000,tot_desconto=0.0000,tot_liquido=288.0000,tot_iva=66.2400,tot_valor=354.2400,val_pago=354.2400,val_pend=0.0000,suj_valor0=288.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=66.2400,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=74 LIMIT 1;
20211201 17:28 INSERT INTO reciboslinhas01 (idx,linha,cor,no,doc_mov,tp,document,n_doc,d_doc,d_venc,ref,deb_cred,val_doc,val_pend,val_liqu,per_desc,val_desc,val_rec,val_iva,irs,prest,serdoc,tot_liquido,tot_iva,tot_valor,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,miva,rsv) VALUES(NULL,5,0,70,'D',2,'N/ Fatura',73,20211130000000,20211130000000,'','D',354.24,354.24,354.24,0.000,0.00,354.24,0.00,0.00,0,'A',288.00,66.24,354.24,288.00,0.00,0.00,0.00,23.00,13.00,6.00,0.00,66.24,0.00,0.00,0.00,0,'');
20211201 17:28 UPDATE reciboslinhas01 SET linha=5,cor=0,no=70,doc_mov='D',tp=2,document='N/ Fatura',n_doc=73,d_doc=20211130000000,d_venc=20211130000000,ref='',deb_cred='D',val_doc=354.24,val_pend=354.24,val_liqu=354.24,per_desc=0.000,val_desc=0.00,val_rec=354.24,val_iva=0.00,irs=0.00,prest=0,serdoc='A',tot_liquido=288.00,tot_iva=66.24,tot_valor=354.24,suj_valor0=288.00,suj_valor1=0.00,suj_valor2=0.00,suj_valor3=0.00,suj_taxa0=23.00,suj_taxa1=13.00,suj_taxa2=6.00,suj_taxa3=0.00,suj_iva0=66.24,suj_iva1=0.00,suj_iva2=0.00,suj_iva3=0.00,miva=0,rsv='' WHERE IDX=84 LIMIT 1;
20211201 17:28 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=70,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=354.24,pendente=354.24,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=142 LIMIT 1;
20211201 17:28 UPDATE documento_r1 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172800,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=354.2400,tot_desconto=0.0000,tot_liquido=354.2400,tot_iva=0.0000,tot_valor=354.2400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211201 17:28 UPDATE historico_contas_correntes_clientes SET linha_f=0,cor=0,no=11,doc_mov='R',tp=1,document='Recibo',no_doc=70,d_doc=20211201000000,d_venc=20211201000000,ref='',obs='',valor=354.24,pendente=354.24,deb_cred='C',debito=0.00,credito=0.00,acumulado=0.00,val_iva=0.00,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='',rsv='' WHERE IDX=142 LIMIT 1;
20211201 17:28 UPDATE documento_r1 SET linhas=0,no_doc=70,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211201000000,d_venc=20211201000000,h_doc=20000101172800,no_cf=11,nome_cf='JOS� MANUEL SILVA GON€ALVES, Lda',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=354.2400,tot_desconto=0.0000,tot_liquido=354.2400,tot_iva=0.0000,tot_valor=354.2400,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=0.0000,suj_taxa1=0.0000,suj_taxa2=0.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='H',d_lan=20211201000000,moeda='',cambio=1.0000000,doc_mov_c='P',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211208 15:22 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,43,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211208 15:23 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,74,0,'',0,0,'',20211208000000,20211208000000,20000101152300,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211208 15:23 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211208000000,d_venc=20211208000000,h_doc=20000101152300,no_cf=42,nome_cf='ORLANDO COSTA LEITE, UNIPESSOAL Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Orlando- 966070605',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211208 15:24 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,74,'','Braculant(˘leo corte) Emb-30Lt','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211208 15:24 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211208000000,d_venc=20211208000000,h_doc=20000101152300,no_cf=42,nome_cf='ORLANDO COSTA LEITE, UNIPESSOAL Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Orlando- 966070605',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211208 15:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=74,codigo='',designacao='Braculant(˘leo corte) Emb-30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=179 LIMIT 1;
20211208 15:24 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211208000000,d_venc=20211208000000,h_doc=20000101152300,no_cf=42,nome_cf='ORLANDO COSTA LEITE, UNIPESSOAL Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Orlando- 966070605',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211208 15:24 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=74,codigo='',designacao='Braculant(˘leo corte) Emb-30Lt',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.2000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=186.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=179 LIMIT 1;
20211208 15:24 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,42,'D',2,'N/ Fatura',74,20211209000000,20211209000000,'','Sr. Orlando- 966070605',228.78,228.78,'D',228.78,0.00,0.00,42.78,0.00,1.000000,0,0,'A','');
20211208 15:24 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211209000000,d_venc=20211209000000,h_doc=20000101152300,no_cf=42,nome_cf='ORLANDO COSTA LEITE, UNIPESSOAL Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Orlando- 966070605',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=186.0000,tot_desconto=0.0000,tot_liquido=186.0000,tot_iva=42.7800,tot_valor=228.7800,val_pago=0.0000,val_pend=228.7800,suj_valor0=186.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.7800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211208 15:24 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=42,doc_mov='D',tp=2,document='N/ Fatura',no_doc=74,d_doc=20211209000000,d_venc=20211209000000,ref='',obs='Sr. Orlando- 966070605',valor=228.78,pendente=228.78,deb_cred='D',debito=228.78,credito=0.00,acumulado=0.00,val_iva=42.78,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=11 LIMIT 1;
20211208 15:24 UPDATE documento_d2 SET linhas=0,no_doc=74,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211209000000,d_venc=20211209000000,h_doc=20000101152300,no_cf=42,nome_cf='ORLANDO COSTA LEITE, UNIPESSOAL Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Orlando- 966070605',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=186.0000,tot_desconto=0.0000,tot_liquido=186.0000,tot_iva=42.7800,tot_valor=228.7800,val_pago=0.0000,val_pend=228.7800,suj_valor0=186.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=42.7800,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=75 LIMIT 1;
20211215 17:31 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-121','','','');
20211215 17:31 UPDATE codigos_postais SET codigo='4820-121',concelho='FAFE',distrito='',rsv='' WHERE IDX=51 LIMIT 1;
20211215 17:31 UPDATE codigos_postais SET codigo='4820-121',concelho='FAFE',distrito='',rsv='' WHERE IDX=51 LIMIT 1;
20211215 17:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=43,nome_1='RStur-Viagens e Turismo Unip.Lda',nome_2='',morada='Av. do Brasil, Centro Coordenador Transportes-Lj5',localidade='Fafe',cod_post='4820-121',concelho='FAFE',distrito='',zona='',n_pais=0,pais='',contribuinte='514727101',telefone='253 065571',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@rstur-viagens.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Carlos Moura(937397030/937397031',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=65 LIMIT 1;
20211215 17:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=43,nome_1='RStur-Viagens e Turismo Unip.Lda',nome_2='',morada='Av. do Brasil, Centro Coordenador Transportes-Lj5',localidade='Fafe',cod_post='4820-121',concelho='FAFE',distrito='',zona='',n_pais=0,pais='',contribuinte='514727101',telefone='253 065571',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@rstur-viagens.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Carlos Moura(937397030/937397031',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=65 LIMIT 1;
20211215 17:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=43,nome_1='RStur-Viagens e Turismo Unip.Lda',nome_2='',morada='Av. do Brasil, Centro Coordenador Transportes-Lj5',localidade='Fafe',cod_post='4820-121',concelho='FAFE',distrito='',zona='',n_pais=0,pais='',contribuinte='514727101',telefone='253 065571',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='geral@rstur-viagens.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Carlos Moura(937397030/937397031',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=65 LIMIT 1;
20211215 17:34 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,75,0,'',0,0,'',20211215000000,20211215000000,20000101173400,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211215 17:34 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211215000000,d_venc=20211215000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:35 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,75,'','Q.CAR(Shampo)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211215 17:35 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211215000000,d_venc=20211215000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=75,codigo='',designacao='Q.CAR(Shampo)',unidade='',com_iva='',quantidade=5.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=180 LIMIT 1;
20211215 17:35 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211215000000,d_venc=20211215000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:35 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=75,codigo='',designacao='Q.CAR(Shampo)',unidade='',com_iva='',quantidade=5.000000,preco_unit=4.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=20.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=180 LIMIT 1;
20211215 17:35 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,43,'D',2,'N/ Fatura',75,20211215000000,20211215000000,'','Sr. Carlos Moura(937397030/937397031',24.60,24.60,'D',24.60,0.00,0.00,4.60,0.00,1.000000,0,0,'A','');
20211215 17:35 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211215000000,d_venc=20211215000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.0000,tot_desconto=0.0000,tot_liquido=20.0000,tot_iva=4.6000,tot_valor=24.6000,val_pago=0.0000,val_pend=24.6000,suj_valor0=20.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=4.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:35 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,10,0,75,'','','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211215 17:35 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=75,codigo='',designacao='CarbrillS/S(Abrilhantador)',unidade='',com_iva='',quantidade=0.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=0.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=181 LIMIT 1;
20211215 17:35 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=43,doc_mov='D',tp=2,document='N/ Fatura',no_doc=75,d_doc=20211215000000,d_venc=20211215000000,ref='',obs='Sr. Carlos Moura(937397030/937397031',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20211215 17:35 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211215000000,d_venc=20211215000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.0000,tot_desconto=0.0000,tot_liquido=20.0000,tot_iva=4.6000,tot_valor=24.6000,val_pago=0.0000,val_pend=24.6000,suj_valor0=20.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=4.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:36 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=75,codigo='',designacao='CarbrillS/S(Abrilhantador)',unidade='',com_iva='',quantidade=5.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=181 LIMIT 1;
20211215 17:36 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=43,doc_mov='D',tp=2,document='N/ Fatura',no_doc=75,d_doc=20211215000000,d_venc=20211215000000,ref='',obs='Sr. Carlos Moura(937397030/937397031',valor=24.60,pendente=24.60,deb_cred='D',debito=24.60,credito=0.00,acumulado=0.00,val_iva=4.60,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=12 LIMIT 1;
20211215 17:36 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211215000000,d_venc=20211215000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=20.0000,tot_desconto=0.0000,tot_liquido=20.0000,tot_iva=4.6000,tot_valor=24.6000,val_pago=0.0000,val_pend=24.6000,suj_valor0=20.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=4.6000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:36 UPDATE documento_linhas_d2 SET lnh_f=10,cor=0,num_doc=75,codigo='',designacao='CarbrillS/S(Abrilhantador)',unidade='',com_iva='',quantidade=5.000000,preco_unit=9.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=45.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=181 LIMIT 1;
20211215 17:36 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,43,'D',2,'N/ Fatura',75,20211216000000,20211216000000,'','Sr. Carlos Moura(937397030/937397031',79.95,79.95,'D',79.95,0.00,0.00,14.95,0.00,1.000000,0,0,'A','');
20211215 17:36 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=65.0000,tot_desconto=0.0000,tot_liquido=65.0000,tot_iva=14.9500,tot_valor=79.9500,val_pago=0.0000,val_pend=79.9500,suj_valor0=65.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:36 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=43,doc_mov='D',tp=2,document='N/ Fatura',no_doc=75,d_doc=20211216000000,d_venc=20211216000000,ref='',obs='Sr. Carlos Moura(937397030/937397031',valor=79.95,pendente=79.95,deb_cred='D',debito=79.95,credito=0.00,acumulado=0.00,val_iva=14.95,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=13 LIMIT 1;
20211215 17:36 UPDATE documento_d2 SET linhas=0,no_doc=75,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101173400,no_cf=43,nome_cf='RStur-Viagens e Turismo Unip.Lda',desconto=0.0000,linha_pre=0,observacao='Sr. Carlos Moura(937397030/937397031',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=65.0000,tot_desconto=0.0000,tot_liquido=65.0000,tot_iva=14.9500,tot_valor=79.9500,val_pago=0.0000,val_pend=79.9500,suj_valor0=65.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=14.9500,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=76 LIMIT 1;
20211215 17:40 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,76,0,'',0,0,'',20211216000000,20211216000000,20000101174000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211215 17:40 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101174000,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=77 LIMIT 1;
20211215 17:40 INSERT INTO documento_linhas_d2 (idx,lnh_f,cor,num_doc,codigo,designacao,unidade,com_iva,quantidade,preco_unit,desc1,desc_1,desc2,desc_2,iva,valor,ult_custo,custo_medio,armazem,grupo,ext,flg,sem_stk,m_qtd,m_altura,m_largura,m_extra,preco_serv,d_val,n_enc,linha_enc,qtd_por_emb,guia_n,tp_enc,serie,arm2,serdoc,tpdoc,miva,tpdoc2,idx2,qtd2,rsv) VALUES(NULL,5,0,76,'','Quimybus(Emb.30Lt)','','',0.000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.00,0.00,0.0000000,0.0000000,0,0,0,'','',0.00,0.0000,0.0000,0.0000,0.0000,00000000000000,0,0,0.0000,0,'','',0,'A',0,0,0,0,0.000,'');
20211215 17:40 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101174000,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=77 LIMIT 1;
20211215 17:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=76,codigo='',designacao='Quimybus(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=0.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=0.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=182 LIMIT 1;
20211215 17:40 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101174000,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=77 LIMIT 1;
20211215 17:40 UPDATE documento_linhas_d2 SET lnh_f=5,cor=0,num_doc=76,codigo='',designacao='Quimybus(Emb.30Lt)',unidade='',com_iva='',quantidade=30.000000,preco_unit=6.0000000,desc1=0.0000000,desc_1=0.0000000,desc2=0.0000000,desc_2=0.0000000,iva=23.00,valor=180.00,ult_custo=0.0000000,custo_medio=0.0000000,armazem=0,grupo=0,ext=0,flg='',sem_stk='',m_qtd=0.00,m_altura=0.0000,m_largura=0.0000,m_extra=0.0000,preco_serv=0.0000,d_val=00000000000000,n_enc=0,linha_enc=0,qtd_por_emb=0.0000,guia_n=0,tp_enc='',serie='',arm2=0,serdoc='A',tpdoc=0,miva=0,tpdoc2=0,idx2=0,qtd2=0.000,rsv='' WHERE IDX=182 LIMIT 1;
20211215 17:40 INSERT INTO contas_correntes_clientes (idx,linha_f,cor,no,doc_mov,tp,document,no_doc,d_doc,d_venc,ref,obs,valor,pendente,deb_cred,debito,credito,acumulado,val_iva,pend_rec,cambio,nomoeda,prest,serdoc,rsv) VALUES(NULL,0,0,9,'D',2,'N/ Fatura',76,20211216000000,20211216000000,'','',221.40,221.40,'D',221.40,0.00,0.00,41.40,0.00,1.000000,0,0,'A','');
20211215 17:40 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101174000,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=77 LIMIT 1;
20211215 17:40 UPDATE contas_correntes_clientes SET linha_f=0,cor=0,no=9,doc_mov='D',tp=2,document='N/ Fatura',no_doc=76,d_doc=20211216000000,d_venc=20211216000000,ref='',obs='',valor=221.40,pendente=221.40,deb_cred='D',debito=221.40,credito=0.00,acumulado=0.00,val_iva=41.40,pend_rec=0.00,cambio=1.000000,nomoeda=0,prest=0,serdoc='A',rsv='' WHERE IDX=14 LIMIT 1;
20211215 17:40 UPDATE documento_d2 SET linhas=0,no_doc=76,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211216000000,d_venc=20211216000000,h_doc=20000101174000,no_cf=9,nome_cf='MANUEL JOAQUIM NOVAIS OLIVEIRA',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=180.0000,tot_desconto=0.0000,tot_liquido=180.0000,tot_iva=41.4000,tot_valor=221.4000,val_pago=0.0000,val_pend=221.4000,suj_valor0=180.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=41.4000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=1.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=77 LIMIT 1;
20211215 17:48 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20211220 18:10 INSERT INTO documento_d2 (idx,linhas,no_doc,emitido,anulado,no_moed,convertido,referencia,d_doc,d_venc,h_doc,no_cf,nome_cf,desconto,linha_pre,observacao,no_operador,no_vended,comissao,n_cond_pag,cond_pagam,prazo,num_fp,des_fp,com_fp,no_banco,nome_banco,tot_material,tot_desconto,tot_liquido,tot_iva,tot_valor,val_pago,val_pend,suj_valor0,suj_valor1,suj_valor2,suj_valor3,suj_taxa0,suj_taxa1,suj_taxa2,suj_taxa3,suj_iva0,suj_iva1,suj_iva2,suj_iva3,tdc,estado,d_lan,moeda,cambio,doc_mov_c,lnhs_pgm,recebido,bruto,irs,morada,custos,serdoc,tpdoc,ivac,rsv) VALUES(NULL,0,77,0,'',0,0,'',20211220000000,20211220000000,20000101181000,0,'',0.0000,0,'',1,0,0.0000,0,'',0,0,'','',0,'',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,23.0000,13.0000,6.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0,'',00000000000000,'',0.0000000,'',0,0.0000,0.0000,0.0000,0,0.0000,'A',0,0,'');
20211220 18:10 UPDATE documento_d2 SET linhas=0,no_doc=77,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211220000000,d_venc=20211220000000,h_doc=20000101181000,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=78 LIMIT 1;
20211221 22:13 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,44,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211221 22:13 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=44,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=66 LIMIT 1;
20211221 22:15 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4820-909','','','');
20211221 22:18 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,45,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211221 22:23 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=44,nome_1='TSP-Transportes Sol Poente Lda',nome_2='',morada='Zona Industrial do Socorro, Lote 55-Apart.371',localidade='FAFE',cod_post='4820-909',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='504919172',telefone='253595414- 965310460',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='trans.solpoente@sapo.pt',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='Sr. Alberto Costa',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=66 LIMIT 1;
20211228 18:31 INSERT INTO codigos_postais (idx,codigo,concelho,distrito,rsv) VALUES(NULL,'4850-273','','','');
20211228 18:32 UPDATE codigos_postais SET codigo='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='',rsv='' WHERE IDX=53 LIMIT 1;
20211228 18:32 UPDATE codigos_postais SET codigo='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='Vieira do Minho',rsv='' WHERE IDX=53 LIMIT 1;
20211228 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=45,nome_1='Victor Manuel Sousa Gomes',nome_2='',morada='Rua do Covelo n§ 362',localidade='Pinheiro- Vieira do Minho',cod_post='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='19472721',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=67 LIMIT 1;
20211228 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=45,nome_1='Victor Manuel Sousa Gomes',nome_2='',morada='Rua do Covelo n§ 362',localidade='Pinheiro- Vieira do Minho',cod_post='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='19472721',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=67 LIMIT 1;
20211228 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=45,nome_1='Victor Manuel Sousa Gomes',nome_2='',morada='Rua do Covelo n§ 362',localidade='Pinheiro- Vieira do Minho',cod_post='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='19472721',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=67 LIMIT 1;
20211228 18:33 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=45,nome_1='Victor Manuel Sousa Gomes',nome_2='',morada='Rua do Covelo n§ 362',localidade='Pinheiro- Vieira do Minho',cod_post='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='194727211',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=67 LIMIT 1;
20211228 18:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=45,nome_1='Victor Manuel Sousa Gomes',nome_2='',morada='Rua do Covelo n§ 362',localidade='Pinheiro- Vieira do Minho',cod_post='4850-273',concelho='Pinheiro-Vieira do Minho',distrito='Vieira do Minho',zona='',n_pais=0,pais='',contribuinte='194727211',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=67 LIMIT 1;
20211228 18:34 INSERT INTO clientes (idx,lnhcco,lnhcnt,lnhart,lnhcmp,numero,nome_1,nome_2,morada,localidade,cod_post,concelho,distrito,zona,n_pais,pais,contribuinte,telefone,fax,n_cp,c_pagamento,prazo,desconto,linha_precos,n_bnc,email,conta,n_vendedor,vendedor,comissao,ppz,saldo0,saldo1,obs,dsc_linha,plafont,no_classe,des_classe,lim_cred,data,miva,venc,rsv) VALUES(NULL,0,0,0,0,46,'','','','','','','','',0,'','','','',0,'',0,0.00,1,0,'','',0,'',0.00,'',0.00,0.00,'',0.00,0.00,0,'',0,00000000000000,0,0,'');
20211228 18:34 UPDATE clientes SET lnhcco=0,lnhcnt=0,lnhart=0,lnhcmp=0,numero=46,nome_1='',nome_2='',morada='',localidade='',cod_post='',concelho='',distrito='',zona='',n_pais=0,pais='',contribuinte='',telefone='',fax='',n_cp=0,c_pagamento='',prazo=0,desconto=0.00,linha_precos=1,n_bnc=0,email='',conta='',n_vendedor=0,vendedor='',comissao=0.00,ppz='',saldo0=0.00,saldo1=0.00,obs='',dsc_linha=0.00,plafont=0.00,no_classe=0,des_classe='',lim_cred=0,data=00000000000000,miva=0,venc=0,rsv='' WHERE IDX=68 LIMIT 1;
20211231 12:01 UPDATE documento_d2 SET linhas=0,no_doc=77,emitido=0,anulado='',no_moed=0,convertido=0,referencia='',d_doc=20211220000000,d_venc=20211220000000,h_doc=20000101181000,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=78 LIMIT 1;
20211231 12:01 UPDATE documento_d2 SET linhas=0,no_doc=77,emitido=0,anulado='S',no_moed=0,convertido=0,referencia='',d_doc=20211220000000,d_venc=20211220000000,h_doc=20000101181000,no_cf=0,nome_cf='',desconto=0.0000,linha_pre=0,observacao='',no_operador=1,no_vended=0,comissao=0.0000,n_cond_pag=0,cond_pagam='',prazo=0,num_fp=0,des_fp='',com_fp='',no_banco=0,nome_banco='',tot_material=0.0000,tot_desconto=0.0000,tot_liquido=0.0000,tot_iva=0.0000,tot_valor=0.0000,val_pago=0.0000,val_pend=0.0000,suj_valor0=0.0000,suj_valor1=0.0000,suj_valor2=0.0000,suj_valor3=0.0000,suj_taxa0=23.0000,suj_taxa1=13.0000,suj_taxa2=6.0000,suj_taxa3=0.0000,suj_iva0=0.0000,suj_iva1=0.0000,suj_iva2=0.0000,suj_iva3=0.0000,tdc=0,estado='',d_lan=00000000000000,moeda='',cambio=0.0000000,doc_mov_c='',lnhs_pgm=0,recebido=0.0000,bruto=0.0000,irs=0.0000,morada=0,custos=0.0000,serdoc='A',tpdoc=0,ivac=0,rsv='' WHERE IDX=78 LIMIT 1;
20211231 12:01 DELETE FROM documento_linhas_d2 WHERE  num_doc=77  AND  serdoc='a' 
20211231 12:01 DELETE FROM documento_linhas_d2 WHERE  num_doc=77  AND  serdoc='a' 
20211231 12:01 UPDATE documento_d2 SET convertido='0' WHERE no_doc='76' and serdoc='A' 
20220406 14:38 TRUNCATE TABLE documento_D1
20220406 14:38 TRUNCATE TABLE documento_linhas_D1
20220406 14:38 TRUNCATE TABLE documento_D1_a_hash
20220406 14:38 TRUNCATE TABLE documento_D2
20220406 14:38 TRUNCATE TABLE documento_linhas_D2
20220406 14:38 TRUNCATE TABLE documento_D2_a_hash
20220406 14:38 TRUNCATE TABLE documento_D3
20220406 14:38 TRUNCATE TABLE documento_linhas_D3
20220406 14:38 TRUNCATE TABLE documento_D3_a_hash
20220406 14:38 TRUNCATE TABLE documento_D5
20220406 14:38 TRUNCATE TABLE documento_linhas_D5
20220406 14:38 TRUNCATE TABLE documento_D5_a_hash
20220406 14:38 TRUNCATE TABLE documento_D6
20220406 14:38 TRUNCATE TABLE documento_linhas_D6
20220406 14:38 TRUNCATE TABLE documento_D6_a_hash
20220406 14:38 TRUNCATE TABLE documento_D7
20220406 14:38 TRUNCATE TABLE documento_linhas_D7
20220406 14:38 TRUNCATE TABLE documento_D7_a_hash
20220406 14:38 TRUNCATE TABLE documento_D10
20220406 14:38 TRUNCATE TABLE documento_linhas_D10
20220406 14:38 TRUNCATE TABLE documento_D10_a_hash
20220406 14:38 TRUNCATE TABLE documento_D11
20220406 14:38 TRUNCATE TABLE documento_linhas_D11
20220406 14:38 TRUNCATE TABLE documento_D11_a_hash
20220406 14:38 TRUNCATE TABLE documento_D13
20220406 14:38 TRUNCATE TABLE documento_linhas_D13
20220406 14:38 TRUNCATE TABLE documento_D13_a_hash
20220406 14:38 TRUNCATE TABLE documento_D14
20220406 14:38 TRUNCATE TABLE documento_linhas_D14
20220406 14:38 TRUNCATE TABLE documento_D14_a_hash
20220406 14:38 TRUNCATE TABLE documento_D15
20220406 14:38 TRUNCATE TABLE documento_linhas_D15
20220406 14:38 TRUNCATE TABLE documento_D15_a_hash
20220406 14:38 TRUNCATE TABLE documento_D16
20220406 14:38 TRUNCATE TABLE documento_linhas_D16
20220406 14:38 TRUNCATE TABLE documento_D16_a_hash
20220406 14:38 TRUNCATE TABLE documento_D17
20220406 14:38 TRUNCATE TABLE documento_linhas_D17
20220406 14:38 TRUNCATE TABLE documento_D17_a_hash
20220406 14:38 TRUNCATE TABLE documento_D18
20220406 14:38 TRUNCATE TABLE documento_linhas_D18
20220406 14:38 TRUNCATE TABLE documento_D18_a_hash
20220406 14:38 TRUNCATE TABLE documento_D20
20220406 14:38 TRUNCATE TABLE documento_linhas_D20
20220406 14:38 TRUNCATE TABLE documento_D20_a_hash
20220406 14:38 TRUNCATE TABLE documento_D21
20220406 14:38 TRUNCATE TABLE documento_linhas_D21
20220406 14:38 TRUNCATE TABLE documento_D21_a_hash
20220406 14:38 TRUNCATE TABLE documento_D22
20220406 14:38 TRUNCATE TABLE documento_linhas_D22
20220406 14:38 TRUNCATE TABLE documento_D22_a_hash
20220406 14:38 TRUNCATE TABLE documento_R1
20220406 14:38 TRUNCATE TABLE reciboslinhas01
20220406 14:38 TRUNCATE TABLE documento_R2
20220406 14:38 TRUNCATE TABLE reciboslinhas02
