mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
feat: updated pricing
This commit is contained in:
@@ -12,7 +12,7 @@ class ConferenceParticipant(Document):
|
||||
self.conference = '2019'
|
||||
|
||||
def validate_payment(self):
|
||||
self.amount = self.full_conference_tickets * (5000 if self.currency == 'INR' else 80)
|
||||
self.amount = self.full_conference_tickets * (6000 if self.currency == 'INR' else 90)
|
||||
|
||||
def on_payment_authorized(self, status_changed_to=None):
|
||||
self.paid = 1
|
||||
@@ -24,7 +24,7 @@ class ConferenceParticipant(Document):
|
||||
if not transaction:
|
||||
return
|
||||
naming_series = 'BC-19-20-'
|
||||
rate = '5000'
|
||||
rate = '6000'
|
||||
currency = 'INR'
|
||||
customer = 'ERPNext Conference 2019 Participant'
|
||||
item_income_account = 'Sales - Event Tickets - EF'
|
||||
@@ -48,7 +48,7 @@ class ConferenceParticipant(Document):
|
||||
|
||||
if transaction.service == 'Paypal':
|
||||
naming_series = 'EXP-19-20-'
|
||||
rate = '80'
|
||||
rate = '90'
|
||||
currency = 'USD'
|
||||
account_type = 'Debtors USD - EF'
|
||||
customer = 'ERPNext Conference 2019 Participant International'
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"event": "Save",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"message": "<p>Dear {{ doc.participant_name }},</p>\n\n<p>Thank you for registering for the 2019 ERPNext Conference!</p>\n\n<p>Here are your ticket details:</p>\n\n<h4>Ticket Number {{ doc.name}}</h4>\n\n<table class=\"table table-bordered\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"padding: 30px 0px\">\n\t<tr>\n\t\t<th style='width: 50%'>Ticket Type</th>\n\t\t<th style='width: 25%'>Qty</th>\n\t\t<th style='width: 25%'>Rate</th>\n\t</tr>\n\t<tr>\n\t\t<td>Conference Tickets + Lunch + Dinner</td>\n\t\t<td>{{ doc.full_conference_tickets or 0 }}</td>\n\t\t<td>{% if doc.currency==\"INR\" %}5000{% else %}80{% endif %}</td>\n\t</tr>\n</table>\n\n<h5>Total Amount: {{ doc.currency }} {{ doc.get_formatted('amount') }}</h5>\n\n\n<p>If you need any help, please email us at foundation@erpnext.com</p>",
|
||||
"message": "<p>Dear {{ doc.participant_name }},</p>\n\n<p>Thank you for registering for the 2019 ERPNext Conference!</p>\n\n<p>Here are your ticket details:</p>\n\n<h4>Ticket Number {{ doc.name}}</h4>\n\n<table class=\"table table-bordered\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"padding: 30px 0px\">\n\t<tr>\n\t\t<th style='width: 50%'>Ticket Type</th>\n\t\t<th style='width: 25%'>Qty</th>\n\t\t<th style='width: 25%'>Rate</th>\n\t</tr>\n\t<tr>\n\t\t<td>Conference Tickets + Lunch + Dinner</td>\n\t\t<td>{{ doc.full_conference_tickets or 0 }}</td>\n\t\t<td>{% if doc.currency==\"INR\" %}6000{% else %}80{% endif %}</td>\n\t</tr>\n</table>\n\n<h5>Total Amount: {{ doc.currency }} {{ doc.get_formatted('amount') }}</h5>\n\n\n<p>If you need any help, please email us at foundation@erpnext.com</p>",
|
||||
"modified": "2019-08-22 07:01:42.934136",
|
||||
"modified_by": "Administrator",
|
||||
"module": "ERPNext Foundation",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<tr>
|
||||
<td>Conference Tickets + Lunch + Dinner</td>
|
||||
<td>{{ doc.full_conference_tickets or 0 }}</td>
|
||||
<td>{% if doc.currency=="INR" %}5000{% else %}80{% endif %}</td>
|
||||
<td>{% if doc.currency=="INR" %}6000{% else %}90{% endif %}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ frappe.ready(function() {
|
||||
// bind events here
|
||||
frappe._calculate = function() {
|
||||
frappe.web_form.set_value('amount',
|
||||
parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 5000
|
||||
parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 6000
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"description": "\u20b9 5000 per person. Includes lunch and dinner on both days",
|
||||
"description": "\u20b9 6000 per person. Includes lunch and dinner on both days",
|
||||
"fieldname": "full_conference_tickets",
|
||||
"fieldtype": "Int",
|
||||
"hidden": 0,
|
||||
|
||||
@@ -2,7 +2,7 @@ frappe.ready(function() {
|
||||
// bind events here
|
||||
frappe._calculate = function() {
|
||||
frappe.web_form.set_value('amount',
|
||||
parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 80
|
||||
parseInt(frappe.web_form.get_value('full_conference_tickets') || 0) * 90
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"description": "$80 per person. Includes lunch and dinner on both days",
|
||||
"description": "$90 per person. Includes lunch and dinner on both days",
|
||||
"fieldname": "full_conference_tickets",
|
||||
"fieldtype": "Int",
|
||||
"hidden": 0,
|
||||
|
||||
Reference in New Issue
Block a user