Commit graph

234 commits

Author SHA1 Message Date
Ankush Menat
0a73a3c708 refactor: stringify all non-excel types
style: incorrect EOF

test: excel export types
2022-07-12 15:53:55 +05:30
ruthra kumar
dd9fbeff4b fix: Preserve data type in excel export except for composite 2022-07-12 14:03:24 +05:30
ruthra kumar
ffd75e8a16 fix: valueerror on export with composite cell valu 2022-07-06 12:35:20 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Ritwik Puri
76a6c282b8
fix: use proper validations for number card validation method (#16581) 2022-04-29 16:07:40 +05:30
Rushabh Mehta
d55986d56d fix(conflicts): fix conflicts' 2022-04-18 17:29:03 +05:30
Rushabh Mehta
57a55e4225 feat(minor): Add document reference to Error Log and doc.log_error 2022-04-18 17:29:03 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
barredterra
2956f0be11 feat: drop support of column definitions as string 2022-03-07 12:28:35 +01:00
Raffael Meyer
d22aba5d24
Merge branch 'develop' into refactor-excel-export 2022-03-07 11:12:03 +01:00
Raffael Meyer
8830141faf
refactor: reduce code duplication
Co-authored-by: gavin <gavin18d@gmail.com>
2022-03-07 11:10:21 +01:00
barredterra
3c4aa2a3dd refactor: Simplify logic in handle_duration_fieldtype_values 2022-03-03 20:28:57 +01:00
barredterra
f8b67dfbf6 feat: remove unused parameter "columns" 2022-03-03 20:28:28 +01:00
barredterra
6cdab154f5 feat: translate column names in excel file from query report 2022-03-03 19:58:08 +01:00
Deepesh Garg
c1f1bf4061 fix: Unable to open query report 2022-02-25 20:52:56 +05:30
Deepesh Garg
d5ce2b4a8c
fix: Totalling for tree view reports (#15950) 2022-02-19 21:22:35 +05:30
mergify[bot]
20e3ed9ff9
revert: "feat(minor): Implement __getitem__ in Base Document" (backport #14945) (#14946)
* Revert "feat(minor): Implement __getitem__ in Base Document (#14855)"

This reverts commit 583a7ef23923d362c85beeabe57703c2d5b12a65.

(cherry picked from commit d165fb3d477e65f7a395118f69278f2cb5c7f4e5)

* fix: keyerror in auto email report

(cherry picked from commit aac20f5d159875a5f3c9b4a6d74beec390e617dd)

Co-authored-by: Ankush Menat <ankush@frappe.io>
2021-11-11 12:13:52 +05:30
lukptr
e907f77ccd feat: prepared report read from replica 2021-11-05 15:35:43 +07:00
Shariq Ansari
1e9056c0ee fix: Multi level custom report fix 2021-10-18 20:21:38 +05:30
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