calulate where? price tva

edited 7:34AM in FastReport 4.0
Hello everybody i come from rave report and try FastReport.

i have a query with total price and price without taxe et i want total taxe, how calculate that, i don't find what write in my memoview

there is my two values
[Query."INVOICE_PRICE_HT"] [Query."INVOICE_PRICE_TOTAL"]
i have tried ([Query."INVOICE_PRICE_TOTAL"]-[Query."INVOICE_PRICE_HT"]) and lot others without success.

i'tried with code too:
var
TVA:Curency;
begin
frxReport.Variables[' ' + 'Others'] := Null;
TVA:=            Currency(FieldValues['INVOICE_PRICE_TOTAL']) - Currency(FieldValues['INVOICE_PRICE_HT']);
        frxReport.Variables['TVA']:=         TVA;

and in a memoview in report [TVA] say don't finded.

thanks for your help.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:34AM
    ([Query."INVOICE_PRICE_TOTAL"]-[Query."INVOICE_PRICE_HT"])
    brackets in wrong place

    [(<Query."INVOICE_PRICE_TOTAL">-<Query."INVOICE_PRICE_HT">)]

    use the expression builder when building expressions it will get them right for you.
  • edited 7:34AM
    ok, thanks you. i understand better now how that work.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.