frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
17.79k stars 6.78k forks source link

solar hijri calendar #3473

Closed MiladHossein closed 6 years ago

MiladHossein commented 9 years ago

hi please let me know how i can add persian calendar to this application. This link is template of js persian calendar. http://farhadi.ir/projects/jalalijscalendar/

rmehta commented 9 years ago

You will have to extend the standard JQuery datepicker:

https://github.com/frappe/frappe/blob/develop/frappe/public/js/frappe/form/control.js#L492

mhbu50 commented 7 years ago

+1

me2ne commented 7 years ago

Hello @MiladHossein and @mhbu50 I add this issue in bounty source , hope you can contribute to add this calendar to ERPNEXT .

bounty source link is : https://www.bountysource.com/issues/22105311-solar-hijri-calendar Regards Meisam

ardavank commented 7 years ago

Any update on this? I think ERPNext should add the support to choose between different calendar types such as Solar Hijri (Jalali), Chinese, etc as the base calendar for the whole system. This includes a date picker for all the forms and the correct date format in all the reports, PDFs and etc. @rmehta

ardavank commented 7 years ago

The simplest method that I can come up with, is to use Gregorian calendar in DB and have functions to convert TO and FROM other calendar types in both Python and Javascript to show it on the forms and reports. (we probably need to have a special date picker based on the calendar system) This way not only it becomes modular, but also, the user can change the calendar type at any moment without affecting the data itself.

ardavank commented 7 years ago

I found a great library to use Jalali dates in Python: https://github.com/slashmili/python-jalali

me2ne commented 7 years ago

It's one of important feature erpnext need it to use globally . hope some one can add this feature . any one can help please bounty in bountysource to add jalai dates in erpnext . https://www.bountysource.com/issues/22105311-solar-hijri-calendar

PawanMeh commented 6 years ago

There exists issue #8874 for tracking this, hence closing this one.

abehnamfard commented 2 years ago

+1

alkuhlani commented 2 years ago