-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch/Serial Number entry modal #3298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix all TODO
Edit: sorry it was still showing me the old commit.
frappe/public/js/frappe/form/grid.js
Outdated
if(!idx) { | ||
this.df.data.push({name: "batch " + (this.df.data.length+1), idx: this.df.data.length+1}); | ||
} else { | ||
// TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both are same?
ok for me. 👍. @mbauskar you can test and merge. |
Pull Request SummaryImage or animted GIF Not AddedPlease add an image or animated GIF as proof that you have manually tested this contribution. Hint: use LiceCAP to capture animated GIFs. Large PatchThis is a very large pull request, unless there is a very good reason, please try and break it down to smaller changes. Read this strategy on how it can be done Result
This summary was automatically generated based on this script |
this.frm.script_manager.trigger(this.df.fieldname + "_add", d.doctype, d.name); | ||
this.refresh(); | ||
} else { | ||
this.df.data.push({name: "batch " + (this.df.data.length+1), idx: this.df.data.length+1}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep a random name as a prefix
With frappe/erpnext#8848