Need for a Check Digit in Erpnext

瀏覽次數:16 次
跳到第一則未讀訊息

Aditya Duggal

未讀,
2013年4月2日 上午11:15:442013/4/2
收件者:erpnext-dev...@googlegroups.com
Hi,

I have been after Rushabh's life and I know I keep nagging you people a lot for a lot of features but I guess it is time that erpnext understands the need of check digit.
If anyone is interest to have a reading then here are some resources on check digit and their uses:
  1. Open MRS about check digit
  2. Wikipedia about check digit

After reading some more resources and also analyzing some of the major companies in my industry, I found out that most, if not all use a check digit in their item codes. The use of check digit is prevalent in the Banking Sector where our Account numbers, Credit Card NUmbers, Debit Card Numbers are all using check digit and any system which does not support this cannot be used in such industries. The best system for check digit for which any kind of open source could be found is LUHN ALGORITHM

I know erpnext is a long way from being a major player in the industry but to look at the future is a good thing. Now why am I posting this on the developer forums is because I guess that I have found a code that we could easily convert to javascript and use it via custom script and I would need the help of the developers to convert this since my coding knowledge is limited by google search and no matter how good google is it still cannot teach you.

The code that I have is from the link in Open MRS which is a java code but I would love to use it in custom script but I guess JAVA is different from JAVA SCRIPT and hence I would want someone to help me convert this to a more usable format so that  we could use it in custom script.

I have tried to convert a part of the code mentioned under JAVA code in OPENMRS but I know it still has a lot of bug anyhow the modified code is HERE.


I hope that some one would come up with a solution to this or at least guide me in the right direction.

Aditya Duggal

未讀,
2013年4月2日 上午11:17:482013/4/2
收件者:erpnext-dev...@googlegroups.com
Sorry forgot to mention the link of the modified code:


"I have tried to convert a part of the code mentioned under JAVA code in OPENMRS but I know it still has a lot of bug anyhow the modified code is HERE.

Nabin Hait

未讀,
2013年4月2日 下午2:12:072013/4/2
收件者:erpnext-dev...@googlegroups.com
Hi Aditya,

Instead of doing client side scripting, if you do it in server side script (python), then life will be lot easier. 

I have made a gist, it will do the trick, please check this link https://gist.github.com/nabinhait/5294657

Regards,
Nabin Hait

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/3Yik5qX3w7kJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

回覆所有人
回覆作者
轉寄
0 則新訊息