diff --git a/foundation/erpnext_foundation/doctype/bounty/bounty.py b/foundation/erpnext_foundation/doctype/bounty/bounty.py index 25c3c708..710b39b1 100644 --- a/foundation/erpnext_foundation/doctype/bounty/bounty.py +++ b/foundation/erpnext_foundation/doctype/bounty/bounty.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals import frappe from frappe.website.website_generator import WebsiteGenerator from frappe.website.utils import get_comment_list -from frappe.utils import date_diff, nowdate, fmt_money +from frappe.utils import date_diff, nowdate, fmt_money, add_months from frappe.website.utils import get_comment_list class Bounty(WebsiteGenerator): @@ -54,13 +54,16 @@ class Bounty(WebsiteGenerator): bounty_backers.append(backer) self.bounty_backer = bounty_backers + if not self.end_date: + self.end_date = add_months(nowdate(), 1) + def get_list_context(context): context.allow_guest = True context.no_cache = True context.title = 'ERPNext Bounties' context.no_breadcrumbs = True context.order_by = 'creation desc' - context.introduction = 'Start a new Bounty' + context.introduction = '
' context.fmt_money = fmt_money context.get_paid_backers = get_paid_backers diff --git a/foundation/erpnext_foundation/web_form/start_a_new_bounty/start_a_new_bounty.json b/foundation/erpnext_foundation/web_form/start_a_new_bounty/start_a_new_bounty.json index 227756fc..7d35360d 100644 --- a/foundation/erpnext_foundation/web_form/start_a_new_bounty/start_a_new_bounty.json +++ b/foundation/erpnext_foundation/web_form/start_a_new_bounty/start_a_new_bounty.json @@ -18,8 +18,8 @@ "is_standard": 1, "login_required": 1, "max_attachment_size": 0, - "modified": "2017-08-23 18:04:50.092049", - "modified_by": "faris@erpnext.com", + "modified": "2017-08-29 13:03:00.918927", + "modified_by": "Administrator", "module": "ERPNext Foundation", "name": "start-a-new-bounty", "owner": "Administrator", @@ -45,22 +45,12 @@ "fieldname": "goal", "fieldtype": "Data", "hidden": 0, - "label": "Goal", + "label": "Goal (in USD)", "max_length": 0, "max_value": 0, "read_only": 0, "reqd": 1 }, - { - "fieldname": "end_date", - "fieldtype": "Date", - "hidden": 0, - "label": "End Date", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0 - }, { "fieldname": "description", "fieldtype": "Text Editor", diff --git a/foundation/www/bounties-faq.md b/foundation/www/bounties-faq.md new file mode 100644 index 00000000..c5016a55 --- /dev/null +++ b/foundation/www/bounties-faq.md @@ -0,0 +1,32 @@ +# ERPNext Bounties FAQ + +### 1. What is ERPNext Bounties? + +ERPNext Bounties is the feature funding platform for development of ERPNext. Users can help improve this project by creating/backing bounties and pledging to fundraisers. + +--- + +### 2. How does it work? +> You need to have an account on https://erpnext.org, if you don't have one create one [here](https://erpnext.org/login#signup). + +You can start a new bounty by going to our [Bounties](https://erpnext.org/bounties) page. Enter the Bounty Title and set an achievable goal (in USD). Make sure to write a detailed description of the feature you are adding, so that it is easier for developers to understand the requirement who would later take on the bounty. A page will be created for this bounty where all these information will be listed. + +--- + +### 3. How do I contribute? + +After the bounty is created, you (and others) can back it by going to the Bounty page. We have 2 payments options, PayPal and Razorpay for International and Indian participants respectively. People can also discuss about the feature and provide feedback. + +--- + +### 4. What if the goal is not reached? + +If the goal is not reached, the bounty will be closed. Each participant who backed the bounty will have their amount refunded in full. + +But if any developer is happy with the Bounty Amount collected so far and is ready to start the development, it will not be closed. + +--- + +### 5. How to track the development of the feature? + +There is an option of linking the bounty to a GitHub Issue. You can see it on the Bounty page. \ No newline at end of file