Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 52: | Line 52: | ||
; Add these fields to Orders: | ; Add these fields to Orders: | ||
:* '''Product margin''' — [[ | :* '''Product margin''' — [[Calculation 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"> | ||
#{product.std price} - #{product.cost} | |||
</source> | </source> | ||
:* '''Order margin''' — [[ | :* '''Order margin''' — [[Calculation field]] | ||
::* Enter this script: | ::* Enter this script: | ||
<source lang="JavaScript"> | <source lang="JavaScript"> | ||
#{price} - #{product.cost} | |||
</source> | </source> | ||