[#Field : VCH Number] Invisible : not $$issales:$VoucherTypeName [#Line: VCH Type] Add : Field : Man VCH Number [Field: Man VCH Number] Use : Name Field Set as : "XYZ/"+$$ZeroFill$$YearOfDate:$$CurrentDate):2+"/"+ $$ZeroFill$$MonthOfDate:$$CurrentDate):2+"/"+$$ZeroFill$$DayOfDate:$$CurrentDate):2+"-"+$$string:#VCHNumber Skip on : Yes Inactive:$$issales:$VoucherTypeName [#Field: PPR VchNumber] Use : Name Field Set as : "XYZ/"+$$ZeroFill$$YearOfDate:$$CurrentDate):2+"/"+ $$ZeroFill$$MonthOfDate:$$CurrentDate):2+"/"+$$ZeroFill$$DayOfDate:$$CurrentDate):2+"-"+$$string:#VoucherNumber Inactive : @@NoVchNumbering Full Width : Yes i am looking to make that XYZ thing dymanic and change as per the voucher type. eg: if its a Bank journal entry under voucher type Journal, it should name it Bank journal/2019/03/10-01...something like this... any help will be appreciated.
Code: Set as : ##SVVoucherType+"/"+$$ZeroFill:($$YearOfDate:$$CurrentDate):2+"/"+ $$ZeroFill:($$MonthOfDate:$$CurrentDate):2+"/"+$$ZeroFill:($$DayOfDate:$$CurrentDate):2+"-"+$$string:#VCHNumber