Describe the bug
Periodic Agent Country Sales Report's "Deleted" parameter does not seem to filter out deleted Invoices/Line Items.
This does take place on the "Agent Sales" Report, so should be the same result on the "Periodic Agent Country Sales" report
**Component
What component does this bug relate to?
Report - Periodic Agent Country Sales Report
**Solution File
PeriodicAgentCountrySales.prpt
To Reproduce
Steps to reproduce the behavior:
Create some Invoices, with multiple Line Items, in the CRM
Pull this to the DWH with the ./run script
Check this data is available in the Periodic Agent Country Sales Report.
In the CRM, delete a Line item on an Invoice
Pull this to the DWH with the ./run script
Toggle the "Deleted" parameter on the Periodic Agent Country Sales Report, and check that this deleted Line is no longer taken into consideration.
Delete this Invoice in the CRM
Pull this to the DWH with the ./run script
Again, Hide Deleted Items on the Periodic Agent Country Sales Report, and ensure that this full invoice is no longer taken into consideration
Expected behavior
Deleted Invoices/Line Items should not be taken into consideration, if the "Deleted" parameter is set to "Hide"
However, it currently does not hide deleted items.
Screenshots
For comparison, the Agent Sales Report does hide deleted items.
When set to "Show":
When set to "Hide":
And, on the Periodic Agent Country Sales Report:
When set to "Show":
When set to "Hide":
Desktop (please complete the following information):
Describe the bug Periodic Agent Country Sales Report's "Deleted" parameter does not seem to filter out deleted Invoices/Line Items.
This does take place on the "Agent Sales" Report, so should be the same result on the "Periodic Agent Country Sales" report
**Component What component does this bug relate to?
**Solution File PeriodicAgentCountrySales.prpt
To Reproduce Steps to reproduce the behavior:
Expected behavior Deleted Invoices/Line Items should not be taken into consideration, if the "Deleted" parameter is set to "Hide" However, it currently does not hide deleted items.
Screenshots For comparison, the Agent Sales Report does hide deleted items.
When set to "Show":![image](https://user-images.githubusercontent.com/13675281/122943892-4fe26600-d36f-11eb-8802-cac4b7d6b221.png)
When set to "Hide":![image](https://user-images.githubusercontent.com/13675281/122943995-5ffa4580-d36f-11eb-93a8-954eea1fb6b1.png)
And, on the Periodic Agent Country Sales Report:
When set to "Show":![image](https://user-images.githubusercontent.com/13675281/122944083-6ee0f800-d36f-11eb-9126-ee6e793dd796.png)
When set to "Hide":![image](https://user-images.githubusercontent.com/13675281/122944102-743e4280-d36f-11eb-9f0e-75b1845bec47.png)
Desktop (please complete the following information):