chore: fixed test case

(cherry picked from commit c740f77a6f)
This commit is contained in:
rohitwaghchaure
2026-05-13 14:05:55 +05:30
committed by Mergify
parent 1c44c60dbd
commit f4e66914c6

View File

@@ -13,7 +13,6 @@ 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 = (
@@ -1070,6 +1069,7 @@ class SerialBatchCreation:
self.__dict__.update(item_details)
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)