mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix: posting date and time
This commit is contained in:
committed by
kavin-114
parent
9ff3e28f5d
commit
ba1f40fdd9
@@ -11,6 +11,7 @@ from erpnext.stock.deprecated_serial_batch import (
|
||||
DeprecatedBatchNoValuation,
|
||||
DeprecatedSerialNoValuation,
|
||||
)
|
||||
from erpnext.stock.utils import get_combine_datetime
|
||||
from erpnext.stock.valuation import round_off_if_near_zero
|
||||
|
||||
CONSUMED_SERIAL_NO_STOCK_ENTRY_PURPOSES = (
|
||||
@@ -1072,6 +1073,10 @@ class SerialBatchCreation:
|
||||
def set_other_details(self):
|
||||
from erpnext.stock.utils import get_combine_datetime
|
||||
|
||||
if not self.get("posting_datetime"):
|
||||
if self.get("posting_date") and self.get("posting_time"):
|
||||
self.posting_datetime = get_combine_datetime(self.posting_date, self.posting_time)
|
||||
|
||||
if not self.get("posting_datetime"):
|
||||
if self.get("posting_date") and self.get("posting_time"):
|
||||
self.posting_datetime = get_combine_datetime(self.posting_date, self.posting_time)
|
||||
|
||||
Reference in New Issue
Block a user