Thanks a lot sir Can we apply this in a specific vouch type ? Set as : if @@isreceipt then $$machinedate else plain vch date like this ?