Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: When customer balance change

$
0
0
Hi Thomas, Thank you for your reply. I'm almost there :) I have created a field on the Customer table called: BalanceField Thing is, i have to do this from a code unit, and i have made the following Customer.SETFILTER(Customer.Balance, '<>%1',Customer.BalanceField); IF Customer.FINDSET(TRUE, FALSE) THEN BEGIN REPEAT // Do some export stuff here Customer.CALCFIELDS(Balance); Customer.BalanceField := Customer.Balance; Customer.MODIFY; UNTIL Customer.NEXT = 0; END; Seems like i'm having issues with the SETFILTER command. Cause it always find customers with a balance, and not where it differs from the balancefield. Best regards Jens

Viewing all articles
Browse latest Browse all 11285

Trending Articles