Skip to content

Commit

Permalink
fix: parenttype in item wise purchase sales register
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Jul 23, 2024
1 parent 79a46ad commit a3f6878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def get_items(filters, additional_table_columns):
pi.mode_of_payment,
)
.where(pi.docstatus == 1)
.where(pi.parenttype == "Purchase Invoice")
)

if filters.get("supplier"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ def get_items(filters, additional_query_columns, additional_conditions=None):
sii.qty,
)
.where(si.docstatus == 1)
.where(si.parenttype == "Sales Invoice")
)

if additional_query_columns:
Expand Down

0 comments on commit a3f6878

Please sign in to comment.