by COBS Tech Support » Wed Jun 14, 2006 6:11 pm
Provided that you have linked your extended description lines to your product code this can be done. By 'linking' we mean that you have pressed the Insert key on the description line of your invoice, and when the text box has appeared, entered your detailed description inside this box. If you have entered your description as separate lines on your transaction then CAPITAL will treat these as separate also and will not be able to group them together.
Using VB, under Edit|Form Properties, Questions tab, Postscript button add this to the bottom of your invoice:
Declare cItemNo Type Character
cItemNo := ""
Under Body Properties, Rules tab, "All These Rules Must Be True" add this rule:
If Stock->Name = "TEST123"
cItemNo := Contents->Lineref
Endif
If cItemNo == Contents->Lineref
Return TRUE
Endif
Return FALSE
Change the product code from "TEST123" to whatever product code you want to use.
Note that the invoice won't "balance" if users add lines to their invoices that have chargeable items on them. So be careful when creating forms that do such non-standard things.