mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
chore: fix conflicts
This commit is contained in:
@@ -748,24 +748,6 @@ class BatchNoValuation(DeprecatedBatchNoValuation):
|
|||||||
parent = frappe.qb.DocType("Serial and Batch Bundle")
|
parent = frappe.qb.DocType("Serial and Batch Bundle")
|
||||||
child = frappe.qb.DocType("Serial and Batch Entry")
|
child = frappe.qb.DocType("Serial and Batch Entry")
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
timestamp_condition = ""
|
|
||||||
if self.sle.posting_date:
|
|
||||||
if self.sle.posting_time is None:
|
|
||||||
self.sle.posting_time = nowtime()
|
|
||||||
|
|
||||||
timestamp_condition = CombineDatetime(parent.posting_date, parent.posting_time) < CombineDatetime(
|
|
||||||
self.sle.posting_date, self.sle.posting_time
|
|
||||||
)
|
|
||||||
|
|
||||||
if self.sle.creation:
|
|
||||||
timestamp_condition |= (
|
|
||||||
CombineDatetime(parent.posting_date, parent.posting_time)
|
|
||||||
== CombineDatetime(self.sle.posting_date, self.sle.posting_time)
|
|
||||||
) & (parent.creation < self.sle.creation)
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 9c21567309 (fix: optimized the slow query to get the batchwise available qty)
|
|
||||||
query = (
|
query = (
|
||||||
frappe.qb.from_(parent)
|
frappe.qb.from_(parent)
|
||||||
.inner_join(child)
|
.inner_join(child)
|
||||||
@@ -805,13 +787,20 @@ class BatchNoValuation(DeprecatedBatchNoValuation):
|
|||||||
child = frappe.qb.DocType("Serial and Batch Entry")
|
child = frappe.qb.DocType("Serial and Batch Entry")
|
||||||
|
|
||||||
timestamp_condition = ""
|
timestamp_condition = ""
|
||||||
if self.sle.posting_datetime:
|
if self.sle.posting_date:
|
||||||
timestamp_condition = parent.posting_datetime < self.sle.posting_datetime
|
if self.sle.posting_time is None:
|
||||||
|
self.sle.posting_time = nowtime()
|
||||||
|
|
||||||
|
timestamp_condition = CombineDatetime(parent.posting_date, parent.posting_time) < CombineDatetime(
|
||||||
|
self.sle.posting_date, self.sle.posting_time
|
||||||
|
)
|
||||||
|
|
||||||
if self.sle.creation:
|
if self.sle.creation:
|
||||||
timestamp_condition |= (parent.posting_datetime == self.sle.posting_datetime) & (
|
timestamp_condition |= (
|
||||||
parent.creation < self.sle.creation
|
CombineDatetime(parent.posting_date, parent.posting_time)
|
||||||
)
|
== CombineDatetime(self.sle.posting_date, self.sle.posting_time)
|
||||||
|
) & (parent.creation < self.sle.creation)
|
||||||
|
|
||||||
|
|
||||||
query = (
|
query = (
|
||||||
frappe.qb.from_(parent)
|
frappe.qb.from_(parent)
|
||||||
|
|||||||
Reference in New Issue
Block a user