Merge pull request #25702 from rohitwaghchaure/change-today-to-now-for-reposting
fix: change today to now to get data for reposting
This commit is contained in:
commit
ba940bb9e1
@ -5,7 +5,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe, erpnext
|
import frappe, erpnext
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
from frappe.utils import cint, get_link_to_form, add_to_date, today
|
from frappe.utils import cint, get_link_to_form, add_to_date, now, today
|
||||||
from erpnext.stock.stock_ledger import repost_future_sle
|
from erpnext.stock.stock_ledger import repost_future_sle
|
||||||
from erpnext.accounts.utils import update_gl_entries_after, check_if_stock_and_account_balance_synced
|
from erpnext.accounts.utils import update_gl_entries_after, check_if_stock_and_account_balance_synced
|
||||||
from frappe.utils.user import get_users_with_role
|
from frappe.utils.user import get_users_with_role
|
||||||
@ -127,7 +127,7 @@ def repost_entries():
|
|||||||
check_if_stock_and_account_balance_synced(today(), d.name)
|
check_if_stock_and_account_balance_synced(today(), d.name)
|
||||||
|
|
||||||
def get_repost_item_valuation_entries():
|
def get_repost_item_valuation_entries():
|
||||||
date = add_to_date(today(), hours=-3)
|
date = add_to_date(now(), hours=-3)
|
||||||
|
|
||||||
return frappe.db.sql(""" SELECT name from `tabRepost Item Valuation`
|
return frappe.db.sql(""" SELECT name from `tabRepost Item Valuation`
|
||||||
WHERE status != 'Completed' and creation <= %s and docstatus = 1
|
WHERE status != 'Completed' and creation <= %s and docstatus = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user