Stamping Server time

10 views
Skip to first unread message

SK

unread,
Dec 3, 2012, 3:25:06 PM12/3/12
to erpnext-dev...@googlegroups.com
Hi Friends,

I am keen to have server time in a text box when a button is clicked.Can anyone guide me on this.

Thanks
Sharhan

Rushabh Mehta

unread,
Dec 3, 2012, 11:12:43 PM12/3/12
to erpnext-dev...@googlegroups.com
Sharhan, what are you trying to achieve. Did not get your problem.

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

Sharhan Kassim ( SAPCLE)

unread,
Dec 4, 2012, 12:01:29 AM12/4/12
to erpnext-dev...@googlegroups.com
Rushabh,

For Attendance marking i have a button called check in

When check in button is clicked, i need to get server time and store that time in a text box.

I have already done using client time, but users could be easily manipulate time using system clock.

Have you understood the issue now.

Kindly help.

Thanks
Sharhan

Rushabh Mehta

unread,
Dec 4, 2012, 12:06:02 AM12/4/12
to erpnext-dev...@googlegroups.com
You will have to write a server / update script to do that - modify the on_update or validate method in the attendance.py file (or equivalent).

In any case, the timestamps of creation and updation are already stored in the "creation" and "modified" columns. You could use those for your purpose too.

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

Sharhan Kassim ( SAPCLE)

unread,
Dec 4, 2012, 12:19:55 AM12/4/12
to erpnext-dev...@googlegroups.com
Hi Rushabh,

Thanks.As i am new to this, can you guide me with any documentation, or atleast give me some part of code.
One more thing, in validate method, how will i check button is clicked or not?
 
Thanks

On Behalf of Team SAPCLE


Sharhan Kassim
Consultant - Applications

 

Description: Description: Description: Description: logo

Mob : +918015700445

Description: lines

Description: oracle  Description: s Description: b Description: on Description: in Description: f Description: t


52786722-FC17-4397-9043-01A28908796C[1].png
FE991C31-3ED1-498A-9AED-E6441DB01841.png
E88958C8-E766-48B8-BEB4-EDC5139C00B0[1].png
87178980-F4B6-4AC1-8D91-55AA627012FD[1].png
DA628BCA-0CD6-4236-9CA6-DB83DF5F1869.png
93FE60D1-0DFC-4C0A-B677-E0B58F3C1CE0.png
52D6C7FB-D0BF-4716-8E21-4F5FB7573C1C.png
D550393B-4809-4B60-A60A-19BFFC30BB5C.png
7E4A3D03-9B18-448D-9298-293BBFE94399.png

Rushabh Mehta

unread,
Dec 4, 2012, 12:30:55 AM12/4/12
to erpnext-dev...@googlegroups.com
Sharhan,

Sorry not much documentation apart from the GitHub wiki. The fastest way would be to play with the existing code and infer.

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

Reply all
Reply to author
Forward
0 new messages