rbnkoirala / nepalidate Goto Github PK
View Code? Open in Web Editor NEWThis Frappe application allows you to use Nepali Date on the Frappe Framework
Home Page: https://github.com/rbnkoirala/nepalidate/wiki
License: MIT License
This Frappe application allows you to use Nepali Date on the Frappe Framework
Home Page: https://github.com/rbnkoirala/nepalidate/wiki
License: MIT License
This current version works by adding a new date data field. Would it be possible to integrate the conversion by replacing the date picker-showing both AD and BS dates together, recording AD date in system while also displaying BS date below or beside the original date field ?
### Route
Form/Nepali Date Demo/Nepali Date Demo
### Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 110, in application
response = frappe.api.handle(request)
File "apps/frappe/frappe/api/init.py", line 49, in handle
data = endpoint(**arguments)
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/init.py", line 1683, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/desk/form/load.py", line 34, in getdoc
doc = frappe.get_doc(doctype, name)
File "apps/frappe/frappe/init.py", line 1266, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 80, in get_doc
controller = get_controller(doctype)
File "apps/frappe/frappe/model/base_document.py", line 69, in get_controller
site_controllers[doctype] = import_controller(doctype)
File "apps/frappe/frappe/model/base_document.py", line 99, in import_controller
raise ImportError(
ImportError: Nepali Date Demo
### Request Data
{
"type": "GET",
"args": {
"doctype": "Nepali Date Demo",
"name": "Nepali Date Demo"
},
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.load.getdoc",
"request_id": null
}
### Response Data
{
"exception": "ImportError: Nepali Date Demo",
"exc_type": "ImportError"
}
Currently, the date value is not registered until we manually click the date in the date picker. In the default date picker (AD), we can do any of the following:
But in Nepali date field, only one option works: navigate to month and click on date.
If we type in the date value, the corresponding AD date is not converted. Can you add this functionality to make date field more interactive?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.