Skip to content

Commit

Permalink
fix: inn shifht checkout to gmt+7 autofill
Browse files Browse the repository at this point in the history
  • Loading branch information
anhilmy committed Jul 4, 2024
1 parent ccfd5f9 commit a047803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inn/inn_hotels/doctype/inn_shift/inn_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import unicode_literals

from datetime import datetime
from datetime import datetime, timedelta

import frappe
from frappe.model.document import Document
Expand Down Expand Up @@ -478,7 +478,7 @@ def populate_cr_refund(shift_id):
@frappe.whitelist()
def close_shift(shift_id):
doc = frappe.get_doc('Inn Shift', shift_id)
doc.time_out = datetime.now()
doc.time_out = datetime.now() + timedelta(hours=7)
doc.username = frappe.session.user
doc.status = 'Closed'
doc.save()
Expand Down

0 comments on commit a047803

Please sign in to comment.