Skip to content

OBPIH-6692 modify order adjustments query on amount outstanding on orders report#4879

Merged
awalkowiak merged 3 commits intorelease/0.9.2-hotfix1from
feature/OBPIH-6692-modify-order-adjustments-query-on-amount-outstanding-on-orders-report
Oct 8, 2024
Merged

OBPIH-6692 modify order adjustments query on amount outstanding on orders report#4879
awalkowiak merged 3 commits intorelease/0.9.2-hotfix1from
feature/OBPIH-6692-modify-order-adjustments-query-on-amount-outstanding-on-orders-report

Conversation

@drodzewicz
Copy link
Collaborator

@drodzewicz drodzewicz commented Oct 7, 2024

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket: OBPIH-6692

Description:
The goal was to check for the total adjustment amount and invoiced amount and add it as an additional condition to include these adjustments in amount outstanding report.


📷 Screenshots & Recordings (optional)

If this PR contains a UI change, consider adding one or more screenshots here or link to a screen recording to help reviewers visualize the change. Otherwise, you can remove this section.

@drodzewicz drodzewicz self-assigned this Oct 7, 2024
@drodzewicz drodzewicz changed the title Feature/obpih 6692 modify order adjustments query on amount outstanding on orders report OBPIH-6692 modify order adjustments query on amount outstanding on orders report Oct 7, 2024
@github-actions github-actions bot added type: feature A new piece of functionality for the app domain: backend Changes or discussions relating to the backend server flag: schema change Hilights a pull request that contains a change to the database schema labels Oct 7, 2024
) AS order_total ON order_adjustment.order_id = order_total.order_id
WHERE order_adjustment.canceled IS NOT TRUE
GROUP BY order_adjustment_id
) AS total_adjustments ON total_adjustments.order_adjustment_id = order_adjustment.id
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes should not be here.

Copy link
Collaborator Author

@drodzewicz drodzewicz Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, probably, but I am not sure where are they supposed to be then.
Most of the views are built around the whole order, I need to put this total_adjustment amount on an individual adjustment.

Where do you suggest the best place for that be?

@drodzewicz drodzewicz requested a review from awalkowiak October 8, 2024 14:24
@awalkowiak awalkowiak merged commit 6ccde1c into release/0.9.2-hotfix1 Oct 8, 2024
@awalkowiak awalkowiak deleted the feature/OBPIH-6692-modify-order-adjustments-query-on-amount-outstanding-on-orders-report branch October 8, 2024 15:26
jwalbers pushed a commit to jwalbers/openboxes that referenced this pull request Oct 29, 2024
jwalbers pushed a commit to jwalbers/openboxes that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server flag: schema change Hilights a pull request that contains a change to the database schema type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants