Skip to content

Commit

Permalink
Merge pull request #34 from libracore/ticketing
Browse files Browse the repository at this point in the history
Ticketing
  • Loading branch information
lasalesi authored Jun 22, 2022
2 parents cda5f0a + e9b8951 commit 2987cc1
Show file tree
Hide file tree
Showing 39 changed files with 3,546 additions and 2 deletions.
33 changes: 32 additions & 1 deletion lifefair/config/lifefair.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def get_data():
"color": "#f88c00",
"icon": "octicon octicon-clippy",
"description": _("Exhibitor")
},
{
"type": "doctype",
"name": "Block Price",
"label": _("Block Price"),
"description": _("Block Price")
}
]
},
Expand Down Expand Up @@ -125,6 +131,18 @@ def get_data():
"description": _("Testimonials"),
"is_query_report": True
},
{
"type": "doctype",
"name": "Contact Data Change",
"label": _("Contact Data Change"),
"description": _("Contact Data Change")
},
{
"type": "doctype",
"name": "Ticket Voucher",
"label": _("Ticket Voucher"),
"description": _("Ticket Voucher")
},
]
},
{
Expand Down Expand Up @@ -190,7 +208,20 @@ def get_data():
"name": "SDG Goal",
"label": _("SDG Goal"),
"description": _("SDG Goal")
}
},
{
"type": "doctype",
"name": "Ticketing Settings",
"label": _("Ticketing Settings"),
"description": _("Ticketing Settings")
},
{
"type": "doctype",
"name": "Visitor Type",
"label": _("Visitor Type"),
"description": _("Visitor Type")
},

]
}
]
Empty file.
17 changes: 17 additions & 0 deletions lifefair/lifefair/doctype/block_price/block_price.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) 2022, libracore and contributors
// For license information, please see license.txt

cur_frm.fields_dict.blocks.grid.get_field('block').get_query =
function() {
return {
filters: {
"meeting": cur_frm.doc.meeting
}
}
};

frappe.ui.form.on('Block Price', {
// refresh: function(frm) {

// }
});
99 changes: 99 additions & 0 deletions lifefair/lifefair/doctype/block_price/block_price.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"creation": "2022-06-07 14:36:21.386116",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"visitor_type",
"rate",
"col_main",
"meeting",
"sec_blocks",
"blocks"
],
"fields": [
{
"fieldname": "visitor_type",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Visitor Type",
"options": "Visitor Type",
"reqd": 1
},
{
"fieldname": "blocks",
"fieldtype": "Table",
"label": "Blocks",
"options": "Block Price Block",
"reqd": 1
},
{
"fieldname": "rate",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Rate",
"reqd": 1
},
{
"fieldname": "col_main",
"fieldtype": "Column Break"
},
{
"fieldname": "meeting",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Meeting",
"options": "Meeting",
"reqd": 1
},
{
"fieldname": "sec_blocks",
"fieldtype": "Section Break",
"label": "Blocks"
}
],
"modified": "2022-06-21 16:16:52.084853",
"modified_by": "Administrator",
"module": "Lifefair",
"name": "Block Price",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Lifefair User",
"share": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Lifefair Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"title_field": "visitor_type",
"track_changes": 1
}
10 changes: 10 additions & 0 deletions lifefair/lifefair/doctype/block_price/block_price.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022, libracore and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document

class BlockPrice(Document):
pass
10 changes: 10 additions & 0 deletions lifefair/lifefair/doctype/block_price/test_block_price.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022, libracore and Contributors
# See license.txt
from __future__ import unicode_literals

# import frappe
import unittest

class TestBlockPrice(unittest.TestCase):
pass
Empty file.
30 changes: 30 additions & 0 deletions lifefair/lifefair/doctype/block_price_block/block_price_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"creation": "2022-06-07 15:03:27.871217",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"block"
],
"fields": [
{
"fieldname": "block",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Block",
"options": "Block",
"reqd": 1
}
],
"istable": 1,
"modified": "2022-06-07 15:03:27.871217",
"modified_by": "Administrator",
"module": "Lifefair",
"name": "Block Price Block",
"owner": "Administrator",
"permissions": [],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}
10 changes: 10 additions & 0 deletions lifefair/lifefair/doctype/block_price_block/block_price_block.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022, libracore and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document

class BlockPriceBlock(Document):
pass
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2022, libracore and contributors
// For license information, please see license.txt

frappe.ui.form.on('Contact Data Change', {
// refresh: function(frm) {

// }
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"creation": "2022-06-20 16:22:42.345820",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"person",
"form_data"
],
"fields": [
{
"fieldname": "person",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Person",
"options": "Person",
"read_only": 1,
"unique": 1
},
{
"fieldname": "form_data",
"fieldtype": "Long Text",
"label": "Form Data",
"read_only": 1
}
],
"modified": "2022-06-21 16:18:24.751241",
"modified_by": "Administrator",
"module": "Lifefair",
"name": "Contact Data Change",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Lifefair User",
"share": 1,
"write": 1
}
],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022, libracore and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document

class ContactDataChange(Document):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022, libracore and Contributors
# See license.txt
from __future__ import unicode_literals

# import frappe
import unittest

class TestContactDataChange(unittest.TestCase):
pass
17 changes: 16 additions & 1 deletion lifefair/lifefair/doctype/person/person.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"section_business_card",
"business_card_html",
"section_addresses",
"customer_address",
"address_html",
"section_contact_display",
"contact_html",
Expand Down Expand Up @@ -61,6 +62,7 @@
"linkedin_id",
"homepage",
"personal_postal_code",
"customer",
"section_salutation",
"salutation",
"title",
Expand Down Expand Up @@ -509,10 +511,23 @@
"fieldname": "ausland",
"fieldtype": "Check",
"label": "Ausland"
},
{
"fieldname": "customer",
"fieldtype": "Data",
"label": "Customer",
"options": "Customer"
},
{
"fieldname": "customer_address",
"fieldtype": "Link",
"hidden": 1,
"label": "Customer Address",
"options": "Address"
}
],
"image_field": "image",
"modified": "2021-03-22 10:28:40.866562",
"modified": "2022-06-21 16:26:27.886563",
"modified_by": "Administrator",
"module": "Lifefair",
"name": "Person",
Expand Down
Empty file.
10 changes: 10 additions & 0 deletions lifefair/lifefair/doctype/ticket_voucher/test_ticket_voucher.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2022, libracore and Contributors
# See license.txt
from __future__ import unicode_literals

# import frappe
import unittest

class TestTicketVoucher(unittest.TestCase):
pass
8 changes: 8 additions & 0 deletions lifefair/lifefair/doctype/ticket_voucher/ticket_voucher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2022, libracore and contributors
// For license information, please see license.txt

frappe.ui.form.on('Ticket Voucher', {
// refresh: function(frm) {

// }
});
Loading

0 comments on commit 2987cc1

Please sign in to comment.