calculated text areas

Sometimes we sell our products in other currencies so we register price of the respective product in the table from the currency selected. But the invoice should be emitted in the local currency. So i need to multiply registered sales price with the exchange rate of the respective currency if the product's sales price is registered with another currency so it should be like the following :
if table.currency = 'EURO' then
inv_price := table.price*table.exch_rate
else
inv_price := table.price
end;

how may i do such thing in fast report?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 1:49PM
    you can change the memo's text from the obp event of its band or use the iif function inside the memo. do not connect the memo to a dataset field.
    from the band obp
    if table.currency = 'EURO' then
    memoname.text :='[(<table."price">*<table."exch_rate">)]'
    else
    memoname.text '[ table."price"]'
    end;

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.