Commit graph

34 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
Suraj Shetty
81cada8b6e
Merge branch 'develop' into get-frmt 2021-08-04 14:20:21 +05:30
Kenneth Sequeira
6bdcae1201 feat: add number format parameter in doc.get_formatted 2021-05-28 21:19:21 +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
Suraj Shetty
be9b18191b refactor: Resolve deprecation warnings 2021-05-11 09:50:58 +05:30
prssanna
ea3917e199 fix: wrap text editor fieldtype with ql-snow class 2020-08-19 16:55:48 +05:30
Rucha Mahabal
3a0aa88f4b fix: change 'show' duration options to 'hide' for consistency 2020-06-02 22:06:37 +05:30
Rucha Mahabal
1078b0e2da fix(print preview): add formatter for duration fieldtype 2020-05-23 21:48:47 +05:30
Suraj Shetty
310233c56a
fix: Show default currency as a fallback for currency fieldtype (#8944)
* fix: Show default currency as a fallback for currency fieldtype

* test: Add a test for currency formatting
2019-12-14 17:34:04 +05:30
Faris Ansari
3b86f16b73 New Control: Table MultiSelect (#6675)
* feat(control): Add Table MultiSelect control

* fix: Use btn-group instead of span

* fix: Remove functionality

* fix: Add 'Table MultiSelect' to Field doctypes

* fix: Replace usage of string 'Table' with array `table_fields`

* fix: Use internal array to store values instead of building from HTML elements

* fix(style): Add semicolon

* fix: Read only mode and click to navigate to form

* style: indent

* fix: fallback to empty array

* fix: Add formatters in js and py

* style: missing semicolon

* fix: Add docfield validation
2018-12-28 15:36:59 +05:30
Aditya Hase
02d8edd332 [Feature] Markdown Editor (#6383)
* feat(markdown-editor): Add new fieldtype - MarkdownEditor

* feat(markdown-editor): Add MarkdownEditor control

* fix(markdown-editor): Fix placement of "Show Preview" button

* fix(markdown-editor): Render HTML in prints
2018-11-22 11:37:50 +01:00
Chinmay Pai
5f0dbecfed data-import: fix UnicodeEncodeError on data import in python2 (#6448)
why is this not built into re by default?

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-11-13 10:35:27 +05:30
Aditya Hase
769338f136 Replaced all instances of basestring with six.string_types 2017-08-11 00:10:11 +05:30
Makarand Bauskar
4e8bab55d5 [minor] return formatted time on format_value instead of timedelta object (#3657) 2017-07-11 14:05:36 +05:30
Rushabh Mehta
c36055d29e [minor] added frappe.format and validate_payment in web_form.html 2016-10-18 21:52:17 +05:30
Rushabh Mehta
541d8be95f [complete] auto email report 2016-09-14 12:00:52 +05:30
Rushabh Mehta
db128e6c3a [minor] add translated get_formatted 2016-03-03 10:44:30 +05:30
Anand Doshi
e5a2524820 [fix] Ability to hide a field in print if its value is 0 2015-11-25 16:33:37 +05:30
Rushabh Mehta
f6bee7e78b [minor] [ui] link to calendars 2015-07-08 12:38:28 +05:30
Anand Doshi
b2872487ad [hotfix] formatters 2015-04-08 16:17:32 +05:30
Anand Doshi
790769ee93 [fix] formatters 2015-04-08 12:33:09 +05:30
Anand Doshi
2995f02f3b Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
Anand Doshi
7f75e233a8 Website Listing 2015-02-23 22:30:03 +05:30
nathando
84aa6d370d Safe check for dict 2014-10-21 14:15:03 +08:00
nathando
ab8b4304ae Convert dict to object before formatting
- According to this discussion, https://discuss.frappe.io/t/print-format-currency-utils/3480/3
2014-10-21 13:56:46 +08:00
Anand Doshi
32e9241409 Ability to set precision per field. Format 1.0000 as 1, if fieldtype is Float. 2014-09-05 17:13:52 +05:30
Rushabh Mehta
4d21ee9afc [fixes] tests 2014-09-03 17:56:11 +05:30
Rushabh Mehta
9eed57b828 updates 2014-09-03 17:39:27 +05:30
Anand Doshi
b8e863c90a [fix] Convert newlines to <br> for Text/Small Text, added ipython to requirements.txt 2014-08-05 11:39:17 +05:30
Nabin Hait
6bab7ed023 Field formatter to preserve newlines and for provided currnecy 2014-08-04 17:05:06 +05:30
Anand Doshi
7087be6559 Fixes to print 2014-07-25 13:01:52 +05:30
Rushabh Mehta
70f84020d2 updates to print 2014-07-25 13:01:49 +05:30
Rushabh Mehta
1c101a6805 added more updates to new print formats 2014-07-25 13:01:47 +05:30
Anand Doshi
cd8d19248e Fixes in Email Alert system 2014-07-15 14:55:21 +05:30