1. Open the stock control area.
2. Click on the Transactions vertical tab button.
3. Click on the Stock Sales tab.
4. Right click with your mouse and select Column Properties.
5. Click on the Custom button and select an empty custom column.
6. Paste the following script into the editor window:
Code: Select all
OpenTable("CONTENTS")
If CONTENTS->(Find((cTable)->InvoiceNo + (cTable)->LineRef + (cTable)->StockID, "TRANREF"))
Return CONTENTS->Title
Endif
Return (cTable)->Title8. Set the Type to 'Read Only'.
9. Press Save All and then add the new column to your grid, replacing it with the 'Description' column.
