Skip to content

Commit

Permalink
feat(PYME-5209): INFORMES - Generar reporte interno Devi de clientes …
Browse files Browse the repository at this point in the history
…activos TES - Report parameters adjustments
  • Loading branch information
cx01754 committed Mar 14, 2024
1 parent a12b5a7 commit 08bfe30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions reports.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"language": "python",
"reports": [
{
"name": "Customer by Assets Status Report",
"name": "Customer by Subscription Status Report",
"readme_file": "reports/active_assets_customer_report/Readme.md",
"entrypoint": "reports.active_assets_customer_report.entrypoint.generate",
"audience": [
Expand Down Expand Up @@ -39,13 +39,6 @@
}
],
"parameters": [
{
"id": "date",
"type": "date_range",
"name": "Report period",
"description": "Provide the time period to create the report",
"required": true
},
{
"id": "product",
"type": "product",
Expand All @@ -56,7 +49,7 @@
{
"id": "rr_status",
"type": "checkbox",
"name": "Request status",
"name": "Subscription status",
"description": "Select the status of the subscriptions you want to include in report",
"required": true,
"choices": [
Expand Down
4 changes: 2 additions & 2 deletions reports/active_assets_customer_report/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def _get_assets(client, parameters):
#status = ['active']

query = R()
query &= R().events.created.at.ge(parameters['date']['after'])
query &= R().events.created.at.le(parameters['date']['before'])
#query &= R().events.created.at.ge(parameters['date']['after'])
#query &= R().events.created.at.le(parameters['date']['before'])

if parameters.get('mkp') and parameters['mkp']['all'] is False:
query &= R().marketplace.id.oneof(parameters['mkp']['choices'])
Expand Down

0 comments on commit 08bfe30

Please sign in to comment.