mit# Nepali Date
This Frappe application allows you to use Nepali Date on the Frappe Framework. Detail Documentation on Wiki
To install the Nepali Date application, follow these steps:
-
Navigate to the
frappe-bench
directory:cd frappe-bench
-
Clone the repository to your local machine:
bench get-app https://github.com/rbnkoirala/nepalidate.git
-
Install the application dependencies:
bench --site sitename install-app nepalidate
-
Run the Frappe development server: For Development Server
bench start
For Production Server
sudo supervisorctl restart all
-
Open your web browser and visit
http://localhost:8000
. -
Log in to the Frappe application using your credentials.
-
To Test the search "Nepali Date Demo" doctype and try.
Check on Client Side Script Latest Code
frappe.ui.form.on("Nepali Date Demo", {
refresh(frm) {
add_nepali_date_picker(frm, "nepali_date"); // if you dont want to add nepali date only
add_nepali_date_picker(frm, "nepali_date_convert", "english_date_convert"); // if you want to add nepali date and convert to english date
add_nepali_date_picker(frm, "nepali_date_time_convert", "english_datetime_convert"); // convert in time field
add_nepali_date_picker(frm, "nepali_date_convert_one", "english_date_convert_one");
},
english_date_convert(frm) {
convert_ADBS(frm, "english_date_convert", "nepali_date_convert");
},
english_datetime_convert(frm) {
convert_ADBS(frm, "english_datetime_convert", "nepali_date_time_convert");
},
english_date_convert_one(frm) {
convert_ADBS(frm, "english_date_convert_one", "nepali_date_convert_one");
},
english_datetime_convert_one(frm) {
convert_ADBS(frm, "english_datetime_convert_one", "nepali_date_convert_one");
}
});
The following features are planned for future releases:
- Calender POPUP on Child Table #child table code
This application is licensed under the MIT License. See the LICENSE file for more information.