Dear Developers, I created code for sending mail after saving sales voucher, but it's not working with "prevent duplicates" option ON in sales voucher type, please help me fix it Code file is attached Thanks in Advance
[#Form: Sales Color] Option : SendAutoEmail : $$InCreateMode [!Form : SendAutoEmail] On : Form Accept : Action : Mail Report
Dear Mr. Amit Kamdar, Thanks for the reply, But after changing code as per yours, now nothing is happening, please do check at your side and i forgot to say that it's not working with ewaybill option on in statutory, otherwise it's working fine
Dear Mr. Raval, Am unable to check, because I do no have similar data structure or company to try. However if it creates problem in CREATE mode, then you can try it in ALTER mode. In create mode, the data is not yet saved, hence other Control/Conditions like "prevent duplicate number" etc might be preventing it, as it has not been executed yet. Also you might study the "Print after Save", which works.... so you can use the same methodology.