To All
I have an xBrowse that uses :MakeTotals() on the 'Balance' field and it was brought to my attention the total does not add up correctly when there is a negative number in the column ..
In the screenshot below there is one invoice ( on top ) with a positive value of $99.00 and one with a credit balance of -150.00 and the balance should be -51.00 not zero.
Thanks
Rick Lipkin

I have an xBrowse that uses :MakeTotals() on the 'Balance' field and it was brought to my attention the total does not add up correctly when there is a negative number in the column ..
In the screenshot below there is one invoice ( on top ) with a positive value of $99.00 and one with a credit balance of -150.00 and the balance should be -51.00 not zero.
Thanks
Rick Lipkin
REDEFINE xBROWSE oLbxA ;
RECORDSET oRsInvoice ;
COLUMNS "REPAIR NUMBER", ;
"TRANSACTION TYPE", ;
"INVOICED DATE", ;
"TOTAL", ;
"BALANCE" ;
COLSIZES 80,80,80,80,80 ;
HEADERS "Invoice #", ;
"Type", ;
"Date", ;
"Total", ;
"Balance" ;
ID 132 of oFld:aDialogs[1] ;
AUTOCOLS FOOTERS LINES CELL
oLbxA:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbxA:lRecordSelector := .f.
WITH OBJECT oLbxA
:Balance:nFooterType := AGGR_SUM
:MakeTotals()
END
