How:Slice & Dice Library Data: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 51: Line 51:
:* '''Product margin''' — [[JavaScript field]]
:* '''Product margin''' — [[JavaScript field]]
::* Either using the '''+Field''' button or by just typing, enter this script:
::* Either using the '''+Field''' button or by just typing, enter this script:
<source lang="JavaScript">
<source lang="JavaScript">field('Product std price') - field('Product cost')</source>
field('Product std price') - field('Product cost')
</source>
:* '''Order margin''' &mdash; [[JavaScript field]]
:* '''Order margin''' &mdash; [[JavaScript field]]
::* Enter this script:
::* Enter this script: