UPDATE VS4TARVDocRef Set TRDRCurAmount=(TRDRTaxBase+TRDRVATTotal) WHERE TRDRCurAmount=0 or TRDRCurAmount IS NULL
GO
UPDATE VS4TARVDocRef Set TRDRCurRate=1 WHERE TRDRCurRate=0 or TRDRCurRate IS NULL
GO
UPDATE VS4TARVDocRef Set TRDRAmountRate=(TRDRCurAmount*TRDRCurRate) WHERE TRDRAmountRate=0 or TRDRAmountRate IS NULL
GO