Commit graph

117 commits

Author SHA1 Message Date
Sagar Vora
d11dd760f8 Merge branch 'master' into develop 2019-02-26 17:06:13 +05:30
Rohan
302f781fd8 fix(report): Fix file exports for reports that show totals (#6902)
* fix(report): Fix file exports for reports that show totals

* fix(report): Add tests for Query Report export
2019-02-26 16:11:55 +05:30
Frappe Bot
bfc25ad1e5 Merge branch 'master' into develop 2019-02-15 10:21:47 +00:00
Aditya Hase
d9a317e202 fix(desk): Prepared Report fixes (#6939)
* fix(desk): Fetch prepared report matching filter values

* fix(desk): Ignore filters when prepared report doc name is given

* fix(desk): Delete prepared report if data is corrupted

* style: Linting fixes
2019-02-15 15:00:05 +05:30
Sagar Vora
cf1818f989 Merge branch 'master' into develop 2019-01-31 13:31:00 +05:30
rohitwaghchaure
7ccb5a21c4 fix: prepared report filters not working (#6864) 2019-01-31 09:31:19 +05:30
Saurabh
76bd4e4f19 Merge branch 'master' into develop 2019-01-30 12:36:43 +05:30
rohitwaghchaure
e458d7d0a7 feat: provision to enable/disable prepared report from permission for page and report document (#6831)
* feat: provision to enable/disable prepared report from permission for page and report document

* Added progress bar in the report

* Removed cache and fixed message

* Show progress bar if execution time is greater than 2 seconds
2019-01-30 12:25:29 +05:30
Sagar Vora
ef82f39f99 Merge branch 'staging' into develop 2019-01-29 18:24:11 +05:30
Aditya Hase
e4224ea5d8 fix(report): Use key matching label if key with fieldname doesn't exist (#6839) 2019-01-29 13:01:17 +05:30
Nabin Hait
1c30523869 Fix: merge conflict 2019-01-18 09:55:39 +05:30
rohitwaghchaure
45fbd07af1 fix: increased threshold for making report as prepared report (#6773) 2019-01-16 12:04:40 +05:30
Saurabh
2de5dfdbb3 Merge branch 'staging' into develop 2018-12-18 10:20:24 +05:30
Saif
a0b2709a68 fix: bug in total row calculation for Currency field for list of dict values (#6615) 2018-12-18 09:01:09 +05:30
Frappe Bot
a60cb001f6 Merge branch 'staging' into develop 2018-12-10 13:05:59 +00:00
Faris Ansari
e71d412fc8 fix: Totals row in Query Report (#6590)
* fix: Totals row in Query Report

* fix: Remove quotes around Total
2018-12-10 17:21:02 +05:30
Faris Ansari
cfa2e7613f fix: Replace file_manager api with file doc api 2018-12-09 11:31:12 +05:30
Aditya Hase
521d5a982c fix(prepared-report): UX Improvements
- Update primary action according to the Report's status

 - Automatically refresh report view if report generation is finished

 - Correctly translate message strings

Co-authored-by: Faris Ansari <netchamp.faris@gmail.com>
2018-12-06 19:52:35 +05:30
Aditya Hase
28e36b201d fix(prepared-report): Do not lose the first row in Prepared Report data 2018-12-06 17:27:50 +05:30
Aditya Hase
dbf9f15f1a fix(prepared-report): Fix typo in a comment 2018-12-06 16:03:22 +05:30
Aditya Hase
0467719466 fix(prepared-report): Disable filters when showing a Prepared Report doc 2018-12-06 16:01:41 +05:30
Aditya Hase
fc48597694 fix(prepared-report): Python 2 compatibility fix
gzip.compress and gzip.decompress were introduced in Python 3.2

Added gzip_compress and gzip_decompress to frappe.utils to add this functionality
to both Python 2 and 3
2018-12-06 16:01:41 +05:30
Aditya Hase
9ced1a2886 fix(prepared-report): Show data from report matching filters and owner
This fixes permission issues since users can only see the
report that they themselves have generated.

Also report filters and data won't mismatch.
2018-12-06 16:01:41 +05:30
Aditya Hase
d76a0136dd refactor(prepared-report): Do not serialize JSON serialized filters
Prepared report filters were being JSON serialized twice.
There isn't any apparent need to do this. So don't do it.
2018-12-06 16:01:41 +05:30
Aditya Hase
0919234b66 fix(prepared-report): Serialize Prepared Report data to JSON
CSV serialization causes information loss for erpnext reports like P&L Statement,
rendering such reports unusable.

Also stored files are gzip compressed to reduce space requirement

Note: This will cause all previously generated reports to break, this should be fixed
2018-12-06 16:01:41 +05:30
Faris Ansari
7e5decc9f7 fix(QueryReport): Dynamic Total Row in Query Report (#6566)
The total row sent by the server does not update when rows are filtered.
Datatable now has a bulit-in dynamic total row
2018-11-30 18:51:32 +05:30
Rohit Waghchaure
8f9fbb4cee [Fix] Links are not working 2018-10-23 17:31:49 +05:30
Rohit Waghchaure
b434457648 [Fix] Prepared report breaking if no data 2018-10-16 14:27:07 +05:30
Rohit Waghchaure
c0cf13149a Fixed permissions 2018-10-11 12:12:47 +05:30
Prateeksha Singh
de1d2720c6 Charts in Query Reports (#6118)
* [charts][query-report] setup preview enabled chart maker

- Options for y values: numeric fields
- Options for x values: remaining non numeric fields

* [query-report][chart] Add 'Vs' title, truncate total row
2018-09-24 12:33:53 +05:30
Saif
983fc74cd5 Changes in query_report.add_total_row() to allow list-of-dicts type results (#6009)
* Changes in query_report.add_total_row() to allow list-of-dicts type results

* Forgot to use get() instead of []
2018-09-03 11:03:42 +05:30
Rohit Waghchaure
97ae49dc47 [Fix] Prepared report is not able to export 2018-08-17 11:06:46 +05:30
Mohamed_Alsum
364b09e3d6 adding time to total_row in reports (#5961)
* allow null when time field is not required

* Update base_document.py

* adding time to total_row
2018-08-13 10:31:38 +05:30
KanchanChauhan
602bdd0bea [Minor Bug Fix]Query Report Fix (#5890) 2018-07-30 14:07:45 +05:30
Saurabh
d46fd09b44 [WIP][Enhancement] Provision to pull reports from slave systems (#5844)
* [Enhancement] Provision to pull reports from slave systems

* [fix] check if master_db exists

* Pull list view from slave system
2018-07-24 17:42:21 +05:30
Prateeksha Singh
0c5f5dcb92 [prepared-report] see if report took more than 10 seconds (#5864)
* [prepared-report] see if report took more than 10 seconds

* Update query_report.py

* Update query_report.py
2018-07-24 16:30:17 +05:30
Prateeksha Singh
c9228edcfc [fix][report] filters_by_name initialization 2018-07-17 16:02:52 +05:30
Prateeksha Singh
b517bb21df [report] use frappe.db.set_value() instead of property saving 2018-07-17 13:17:26 +05:30
shriharishastry
d51f030676 [background-report] minor cleanup stage 2 2018-07-16 15:45:54 +05:30
shriharishastry
a451fed57b [report] remove file on trash 2018-07-05 16:26:38 +05:30
Prateeksha Singh
f3b2dcd9b9 [report] add report status 2018-07-03 21:21:48 +05:30
Prateeksha Singh
afa3836748 [report] make it a prepared if query times out 2018-06-29 20:20:25 +05:30
shriharishastry
0a7a4988b1 added checks for if no data present 2018-06-29 15:47:20 +05:30
Prateeksha Singh
c7154eed16 [report] make run() agnostic of data source 2018-06-29 13:17:10 +05:30
shriharishastry
73c38eabb2 default report for prepared 2018-06-28 19:27:35 +05:30
shriharishastry
191942c6d2 stash issue 2018-06-28 19:18:08 +05:30
shriharishastry
7939d1bec4 removed background report results 2018-06-26 19:49:05 +05:30
shriharishastry
0c25bb5088 merge issues 2018-06-26 14:56:33 +05:30
shriharishastry
0e6748ac85 prepared report 2018-06-26 12:34:02 +05:30
KanchanChauhan
3990e770d4 [Bug Fix]Last line missing in report export fix (#5690) 2018-06-20 12:44:33 +05:30