We have added a child table to Opportunity which stores some rows consisting of a string and a date. Code was added in opportunity.py to autopopulate this table with a few rows with predefined strings and initially blank dates, and opportunity.js had code added to set the date in the appropriate row when its corresponding string is selected from a Select in Opportunity (so we can keep track of when these were selected).
This works fine for newly-created Opportunities, but for Opportunities created before the code was modified, the added table is missing some rows. Is there a way we can modify opportunity.js so that when a string is selected from the Select, it will create a new row in the child table if it is not already present? We already have the check for rows' existence implemented, but it is adding new rows from JavaScript when necessary that we are stuck on. Thanks!
–
Note:
If you are posting an issue,
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
We have a decided that since many devs are not complying with GPL norms (enhancements *must* be public) we will not help unless you share your fork and make public commits.
We have added a child table to Opportunity which stores some rows consisting of a string and a date. Code was added in opportunity.py to autopopulate this table with a few rows with predefined strings and initially blank dates, and opportunity.js had code added to set the date in the appropriate row when its corresponding string is selected from a Select in Opportunity (so we can keep track of when these were selected).
This works fine for newly-created Opportunities, but for Opportunities created before the code was modified, the added table is missing some rows. Is there a way we can modify opportunity.js so that when a string is selected from the Select, it will create a new row in the child table if it is not already present? We already have the check for rows' existence implemented, but it is adding new rows from JavaScript when necessary that we are stuck on. Thanks!
–
Note:
If you are posting an issue,
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.