Mysql Table Post
Posted: 20.12.2005, 16:36
Hi.
I have a small application to process invoices.
I create the invoice, but when a change the values the invoice table still have the last value.
I have tried to commit data, but the table still have the firts values.
What are the problem???
I use D7, Mysql 5, ZeosLib 6.5.1.
Code:
zroqCalc.Close;
zroqCalc.Sql.Clear;
zroqCalc.Sql.Add(SQL STATEMENT );
zroqCalc.Open;
ztDocumentos.edit;
ztDocumentosdesconto.Value := zroqCalcsumvdesconto.Value;
ztDocumentosTotalIva.Value := zroqCalcsumviva.Value;
ztDocumentosTotaliLiquido.Value := zroqCalcsumPIliquido.Value;
ztDocumentosTotalDoc.Value := zroqCalcsumPIliquido.Value - zroqCalcsumvdesconto.Value + zroqCalcsumviva.Value;
ztDocumentos.Post;
Thank's in advance
MB
I have a small application to process invoices.
I create the invoice, but when a change the values the invoice table still have the last value.
I have tried to commit data, but the table still have the firts values.
What are the problem???
I use D7, Mysql 5, ZeosLib 6.5.1.
Code:
zroqCalc.Close;
zroqCalc.Sql.Clear;
zroqCalc.Sql.Add(SQL STATEMENT );
zroqCalc.Open;
ztDocumentos.edit;
ztDocumentosdesconto.Value := zroqCalcsumvdesconto.Value;
ztDocumentosTotalIva.Value := zroqCalcsumviva.Value;
ztDocumentosTotaliLiquido.Value := zroqCalcsumPIliquido.Value;
ztDocumentosTotalDoc.Value := zroqCalcsumPIliquido.Value - zroqCalcsumvdesconto.Value + zroqCalcsumviva.Value;
ztDocumentos.Post;
Thank's in advance
MB