I wants to have expiry_date(Date type field) of Batch to be fetch to Sales Invoice’s field expiry_date(Date type field)
I added below script in Sales Invoice but not getting anything:
Came to know that my code is perfect only but main issue is:
By selecting Item, (Automatically) batch id is selecting because default warehouse is set, but now expiry is not coming (automatic) based on that. To get expiry date I have to remove batch id and then re-add, then only expiry date comes.
No there is nothing in option, I was just asking good explanation for difference between those.
Code give this error
SyntaxError: Invalid or unexpected token
at Class.setup (http://192.168.0.140:8001/assets/js/form.min.js?ver=1507184322.42:2616:18)
at _f.Frm.setup (http://192.168.0.140:8001/assets/js/form.min.js?ver=1507184322.42:172:22)
at _f.Frm.refresh (http://192.168.0.140:8001/assets/js/form.min.js?ver=1507184322.42:441:9)
at Class.load (http://192.168.0.140:8001/assets/js/form.min.js?ver=1507184322.42:87:33)
at http://192.168.0.140:8001/assets/js/form.min.js?ver=1507184322.42:73:10
at Object.callback (http://192.168.0.140:8001/assets/js/desk.min.js?ver=1507184322.42:5497:6)
at Object.callback [as success_callback] (http://192.168.0.140:8001/assets/js/desk.min.js?ver=1507184322.42:1354:16)
at _ (http://192.168.0.140:8001/assets/js/desk.min.js?ver=1507184322.42:1378:34)
at Object. (http://192.168.0.140:8001/assets/js/desk.min.js?ver=1507184322.42:1478:5)
at i (http://192.168.0.140:8001/assets/frappe/js/lib/jquery/jquery.min.js:2:27151)