Topic: Invoice record amount calculation

How to put calculation on the invoice details form?

Post's attachments

Attachment icon Invoice Record.zip 379.59 kb, 308 downloads since 2021-03-04 

Re: Invoice record amount calculation

procedure frmDetails_edUp1_OnChange (Sender: TObject);
begin
  frmDetails.edAmount1.text := FloatToStr(StrToFloat(frmdetails.edQ1.text)* StrToFloat(frmdetails.edUp1.text ));
end;

procedure frmDetails_edQ1_OnChange (Sender: TObject);
begin
   frmDetails.edAmount1.text := FloatToStr(StrToFloat(frmdetails.edQ1.text)* StrToFloat(frmdetails.edUp1.text ));
end;

In the same way for the other lines.
It is simpler if you process the fields in the database from text to currency.

Re: Invoice record amount calculation

WHAT IS THE PASSWORD