frappe / erpnext

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

Supporting another calendar #8874

Open AbdullahObaid opened 7 years ago

AbdullahObaid commented 7 years ago

Hi, I know the issue already asked many times ( #3473 #8851 ), I'm trying here to clarify what is the issue exactly and how it should be resolved.

Many countries use different calendar systems than Georgian, for us we use Hijri Calendar. As a non python developer I don't know how to implement my solution that I already implemented in many other projects I worked in.

To clarify, supporting Hijri Calendar Doesn't require changing anything in the database or the backend , how we implement it is :

  1. Everything in the database is stored in Georgian Dates as usual.
  2. We need to change the date picker to another one that supports Hijri Dates for example
  3. We need to add a processor that convert any date we get from the Database - before sending it to the view - to it's equivalent Hijri date - here is a Hijri Date Converter for python.

To sum up : The date conversion happens after we get the input from the user ( Hijri to Georgian ) and before we display any date to the user ( Georgian to Hijri )

If I know python I would be happy to implement this feature myself, and it will not a lot of time to do. I wrote the idea here that we use in our PHP, ASP web apps so if someone can implement. I can help to explain any details if someone is interested.

Thanks

mhbu50 commented 7 years ago

+1

j209 commented 7 years ago

+1

me2ne commented 6 years ago

+1

smayar commented 6 years ago

+1

me2ne commented 6 years ago

some country like Iran also use Hijri Shamsi calendar that is different with Hijri calendar use in Saudi Arabia

ahmed-madi commented 6 years ago

+1

gsbaig commented 5 years ago

If some one can add this option it will be great and we can make many implementation in GCC. I can contribute as well by supporting developer with some funds

mostify commented 4 years ago

I have done this feature for Odoo and I would like to do this for ERPNext. @AbdullahObaid please share your knowledge with me. Thanks.

gsbaig commented 4 years ago

Dear Mostafa, did you finish this hijri calendar with erpnext

On Fri, Jun 26, 2020 at 11:19 AM Mostafa notifications@github.com wrote:

I have done this feature for Odoo and I would like to do this for ERPNext. @AbdullahObaid https://github.com/AbdullahObaid please share your knowledge with me. Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/frappe/erpnext/issues/8874#issuecomment-650050871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALXCXZXP2SAIQ73DY6PS43RYRK2HANCNFSM4DLSX3OA .

mostify commented 4 years ago

Dear Mostafa, did you finish this hijri calendar with erpnext On Fri, Jun 26, 2020 at 11:19 AM Mostafa @.***> wrote: I have done this feature for Odoo and I would like to do this for ERPNext. @AbdullahObaid https://github.com/AbdullahObaid please share your knowledge with me. Thanks. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#8874 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALXCXZXP2SAIQ73DY6PS43RYRK2HANCNFSM4DLSX3OA .

No, I am going to start. Have you any idea?

ShahzadNaser commented 4 years ago

@SafaCore any update ?

zeintiz commented 3 years ago

+1

abehnamfard commented 3 years ago

+1

SudoNova commented 3 years ago

Is this related to https://github.com/t1m0n/air-datepicker/issues/193 ?

hadeeld7 commented 2 years ago

is there any update regarding this ?

moosavimaleki commented 2 years ago

@AbdullahObaid A few other things need to change

  1. Some queries that refer to this month (or this week) (for example: Profit rate from the beginning of the month until now)
  2. Some JavaScript components that are related to date (date picker , calendar , timeline...)
mohamadosama commented 2 years ago

+1

hadifarnoud commented 2 years ago

it's called "Jalali" calendar not "Hijri Shamsi" and there are many opensource packages for it.

mhbu50 commented 2 years ago

@ankush Could you add this as an option to the current Date control:

https://github.com/ronozoro/frappe_hijri_datepicker

ankush commented 2 years ago

@mhbu50 feel free to send PR. Someone from our team can work on it to get it merged in core.

I personally do not have much context on this issue :sweat_smile:

Shahin-rmz commented 1 year ago

Hello every one. is this issue still a thing? just western calendars are accepted in ERP next?

lekhnath commented 7 months ago

Check out this short demo I made to show how Nepali Date Integration in Frappe Framework v15 works:

Watch it here: https://www.youtube.com/watch?v=26iOn4RIjLE

SajjadSedaqat commented 4 months ago

+1

xximj commented 2 months ago

7 years???