UPDATE VS4TAPInvoice Set TIAPRefDate=TIAPDate WHERE TIAPRefDate is null
GO
UPDATE VS4TAPCreditNote Set TPCNRefDate=TPCNDate WHERE TPCNRefDate is null
GO
UPDATE VS4TAPDebitNote Set TDENRefDate=TDENDate WHERE TDENRefDate is null
GO
