I have a dbf with orders of a restaurant
Each record is for only one order ( Numdoc)
first operation I made when I open the dbf I must scope to Numdoc
SELECT CO
CO->(OrdSetFocus(1)) //NUMDOC
CO->( OrdScope(0, alltrim(cNumDoc)))
CO->( OrdScope(1, alltrim(cNumDoc)))
CO->(DbGoTop())
[img:13s1so5t]https://s29.postimg.org/ufqiy8ht3/image.jpg[/img:13s1so5t]
As you can see on picture for each record I have two type of record
P Main producto
A variantes
The variant is an extra product that the customer wants when taking a meal for example if the customer takes a pizza asking for more cheese or not
for show all products and his variantes I thinked to use xbrowse with tree
[img:13s1so5t]https://s13.postimg.org/lfnuujtg7/repeat.jpg[/img:13s1so5t]
the problem is this test I made repeat the product two times
How I can correct it ?
this is the test sample
[code=fw:13s1so5t][/code:13s1so5t]
then I wish colorize with rgb(248,244,207) only the record are co->tipo== "A" ( variantes)
I tried with :bClrStd := {|| { IIF(CO->TIPO="A", rgb(248,244,207),),CLR_WHITE } } but not run
↧