Either use CALCFIELDS on fields Amount and Amount Including VAT in Sales Header or loop through the records in Sales Line an add the field Line Amount to a decimal variable.
I use the Nav stylesheet tool.
I select "sales order header" and "sales order"
Makes both tables ( fields) available in MS Word using the mail merge.
First I select all the fields from the sales order header - no worries.
Then I select all the fields from the lines - no worries.
The problem starts when I need to do the TOTAL amount of the sales order - as I ( inside Word) need to calculate the Sum for all the lines.
I use the Nav stylesheet tool.
I select "sales order header" and "sales order"
Makes both tables ( fields) available in MS Word using the mail merge.
First I select all the fields from the sales order header - no worries.
Then I select all the fields from the lines - no worries.
The problem starts when I need to do the TOTAL amount of the sales order - as I ( inside Word) need to calculate the Sum for all the lines.
Is that possible - how?
Easiest way is to have flowfield on header which will calc the sum from the lines and than you need nothing more... ;-) if the field is not there, you can add it easily...
Comments
Sorry i needed to be more specific.
I use the Nav stylesheet tool.
I select "sales order header" and "sales order"
Makes both tables ( fields) available in MS Word using the mail merge.
First I select all the fields from the sales order header - no worries.
Then I select all the fields from the lines - no worries.
The problem starts when I need to do the TOTAL amount of the sales order - as I ( inside Word) need to calculate the Sum for all the lines.
Is that possible - how?
else,
In word, if it creates a table you click
Table->Formula (create your formula) like
1
2
3
4
=SUM(ABOVE)
10
Sorry ( i don't have stylesheets ) but this is the methods I use.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Easiest way is to have flowfield on header which will calc the sum from the lines and than you need nothing more... ;-) if the field is not there, you can add it easily...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.