Commit graph

215 commits

Author SHA1 Message Date
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Deepesh Garg
2fcd3b556d fix: Use query report build_xlsx_data function for XLSX and CSV format 2021-08-18 22:53:35 +05:30
Ankush Menat
a6d3962b80 fix(DX): sourceURL to debug report and page JS 2021-08-04 20:40:31 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Deepesh Garg
4e4e0fa3d9 fix: Errors 2021-05-03 15:35:46 +05:30
Deepesh Garg
eafadcca47 fix: Error while exporting reports with duration field 2021-05-03 15:16:24 +05:30
casesolved-co-uk
15b3cc890f feat: allow query/custom reports to save custom data in the json field 2021-04-09 14:01:48 +00:00
Leela vadlamudi
82b4e6cf21
fix: custom module's query report (#12596) 2021-03-17 12:27:06 +05:30
Suraj Shetty
122ba5e353
fix: Use cint to convert column_width to int
Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-10-21 16:35:58 +05:30
Suraj Shetty
f1cb8f4e5c feat: Pass custom widths for excel columns 2020-10-16 13:42:00 +05:30
Suraj Shetty
5173b21bdb refactor: Make export_query code more readable 2020-10-16 13:40:32 +05:30
Suraj Shetty
c0494aac5a fix: Handle empty row 2020-10-16 10:46:56 +05:30
Suraj Shetty
ab368994b0 fix: Use get to avoid key error 2020-10-13 16:09:29 +05:30
Suraj Shetty
51f5bb4811 fix: Preserve column order 2020-10-05 23:11:10 +05:30
Suraj Shetty
f8afe32ea4 fix: Scrub fieldname [wip] 2020-10-05 22:20:59 +05:30
Suraj Shetty
4f82ebcef7 refactor: Fix excel export
- Remove unnecessary code
2020-10-05 15:32:03 +05:30
Kevin Chan
e34d0f1751 fix: Decode content before calling json.loads()
This commit fixes an issue that happens when trying to open
**Prepared Reports**. The issue happens because the content isn't
decoded in a format readable by the `json.loads()` function. This was
fixed by decoding the content to *utf-8*.
2020-09-30 16:28:59 +08:00
Kevin Chan
03cc804208 style: Format with black 2020-09-30 16:27:52 +08:00
Joseph Marie Alba
8737b0dc81
fix: Added Columns correctly exported in Excel
Added Columns were not exported in Excel because custom_columns were ignored in the code.
With this fix, custom_columns are considered and the Excel exports will correctly include Added Columns
2020-09-29 00:59:06 +08:00
Shivam Mishra
7920ba34db
Merge pull request #11468 from prssanna/report-reorder-columns
fix(Reports): reorder result for custom columns
2020-09-23 13:31:49 +05:30
Rucha Mahabal
175c2fdb65
Merge branch 'develop' into fix-duration-control-import-export 2020-09-23 09:39:32 +05:30
Joseph Marie Alba
2432f39bd3
Fix misaligned columns for Exported Excel reports
Exported Query Reports have data rows that are not aligned with Column headers because they include the Currency (in Column B) which should be hidden.
This fix makes data rows check if the column is not hidden because adding the data.
2020-09-20 00:12:02 +08:00
prssanna
76aed87f35 refactor(Reports): reorder result for custom columns 2020-09-09 17:47:00 +05:30
Deepesh Garg
99bd9fc3cf fix: Not permitted in title case 2020-09-07 13:17:24 +05:30
Deepesh Garg
8413f920de fix: Permission check on adding custom columns in query reports 2020-09-07 11:10:46 +05:30
Rucha Mahabal
65616031e4 fix: sider issues 2020-09-03 13:59:08 +05:30
Rucha Mahabal
5f51c20177 fix(reports): handle duration fieldtype during export 2020-09-03 13:36:30 +05:30
Rucha Mahabal
5c01c7145a fix: handle total for duration fieldtype 2020-09-02 17:38:21 +05:30
Rucha Mahabal
c92b5d0166 fix: Handle duration fieldtype during export 2020-09-02 15:58:08 +05:30
Prssanna Desai
d4ae883007
fix: remove print statement 2020-08-24 19:40:57 +05:30
Shivam Mishra
9ba45f0360 fix: handle tuple and list 2020-08-24 13:59:28 +05:30
Shivam Mishra
96a3d35d6c fix: add custom_column_names 2020-08-24 13:22:11 +05:30
Shivam Mishra
246938f779
fix: use list
Co-authored-by: Rohan <Alchez@users.noreply.github.com>
2020-08-24 07:47:32 +00:00
Shivam Mishra
a9bbdc0182 fix: handle both list and dict results 2020-08-18 15:45:35 +05:30
prssanna
f057260e90 fix: reorder result according to custom columns for script reports 2020-07-14 17:49:34 +05:30
Himanshu
066ecb44cc
fix(Query Report): column reordering bug (#10270) 2020-05-21 10:31:26 +05:30
prssanna
e183d16a83 fix: headers not being exported for non dict columns 2020-05-06 18:04:55 +05:30
Suraj Shetty
0fa8266d6d fix: Translate only if column label exists 2020-04-21 09:29:24 +05:30
prssanna
8dafe6256c fix: check if column is a dict 2020-04-18 21:32:16 +05:30
prssanna
e2eea4447b fix(Reports): don't export hidden columns in reports 2020-04-18 21:20:45 +05:30
Suraj Shetty
fe54fb67c9 refactor: generate_report_result method
- to fix codacy complexity issue
2020-04-01 12:34:18 +05:30
prssanna
5651fa2874 fix: fix argument order 2020-03-27 14:42:56 +05:30
prssanna
99f0c082b7 fix: export custom columns in excel 2020-03-27 14:42:56 +05:30
Shivam Mishra
908b5b2743 fix: add custom fields from query report 2020-03-26 11:43:34 +05:30
mergify[bot]
a6d25032a4
Merge pull request #9263 from scmmishra/report-options
feat: API to show report summary
2020-02-27 07:30:35 +00:00
Shivam Mishra
80f9a5f9fe
fix: don't try to export empty report (#9482) 2020-02-18 12:36:09 +05:30
Shivam Mishra
4ee8b9d872 fix: skip columns not sent 2020-02-17 15:35:03 +05:30
Shivam Mishra
06f0b7128d Merge branch 'develop' of github.com:frappe/frappe into report-options 2020-02-06 12:00:26 +05:30
Deepesh Garg
439fac44f4 fix: Undo client side changes 2020-02-05 11:53:36 +05:30
Deepesh Garg
c0cf5fddbd Merge branch 'develop' of https://github.com/frappe/frappe into skip_total_row 2020-02-03 19:19:25 +05:30