2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
Commit Graph

125 Commits

Author SHA1 Message Date
18alantom
36f9e47d58 chore: deprecate numberFormat 2022-01-07 10:51:33 +05:30
18alantom
84724ff731 fix: more informative error messages
- set currency columns as not null
2022-01-07 10:51:33 +05:30
18alantom
0c556ff8a4 fix: foolproofing currency defaults 2022-01-07 10:51:33 +05:30
18alantom
e214891156 fix: update calcs
- set child doc defaults
- remove Currency from rounding
2022-01-07 10:51:33 +05:30
18alantom
23189aaf93 fix: don't set precision on df, should be global 2022-01-07 10:51:33 +05:30
18alantom
8bf257c685 fix: deprecate floatPrecision add displayPrecision 2022-01-07 10:51:33 +05:30
18alantom
41d6ee10d3 chore: remove unnecessary function 2021-12-03 13:29:04 +05:30
18alantom
33fc98ceb9 refactor: update patch run for patches.json 2021-11-30 17:39:11 +05:30
18alantom
0af2ce86f4 feat: add convenience function to get fields meta map 2021-11-25 14:48:02 +05:30
Piyush Singhania
f411187c38 Added dependency for the cancel feature 2021-11-15 18:00:34 +05:30
18alantom
95a833c3a4 refactor: rename migrate to runPatches, filepath to filePath 2021-11-09 16:12:39 +05:30
18alantom
3e833309db fix: prevent error slipping because of asyncness 2021-11-08 19:35:37 +05:30
18alantom
b515e2f732 feat: add conditional required, fix formatting 2021-11-05 17:30:23 +05:30
18alantom
e4a0f4eb11 refactor: remove nullish coalescing 2021-10-27 14:06:50 +05:30
Ankit Singhaniya
bba8bc4b70 Merge branch 'master' of github.com:frappe/frappejs 2021-10-20 14:00:02 +05:30
18alantom
c4b0395b42 refactor: use nullish coalescing 2021-10-20 12:31:50 +05:30
Franklin A. Toribio Maria
6b23aeb986 Fixing verification on document.js - applyFormula Method 2021-10-20 12:29:11 +05:30
Ankit Singhaniya
2a1ec09de9
Merge pull request #1 from piyushsinghania/fix/reset-flags-on-compareWithCurrentDoc-on-subsequent-calls
Reseting flags in compareWithCurrentDoc on subsequent calls
2021-10-16 01:57:46 +05:30
Piyush Singhania
0cf247fa48 Applying change to child first and then to parent in a child document 2021-10-14 23:39:32 +05:30
Piyush Singhania
4218527df8 Reseting flags in compareWithCurrentDoc on subsequent calls 2021-10-14 23:21:26 +05:30
Faris Ansari
80dd922e15 Merge branch 'master' of https://github.com/frappe/frappejs 2020-05-06 23:48:27 +05:30
Faris Ansari
c842334003 fix: Handle null table 2020-05-06 23:48:19 +05:30
Rushabh Mehta
613e5d6a5f feat: Allow default to be a function 2020-05-06 23:28:36 +05:30
Rushabh Mehta
9131b85221 fix(document.js): fix applyFormula for empty chid table 2020-05-06 22:57:52 +05:30
Faris Ansari
1980e5e26f fix: Renumber rows when they are changed 2020-02-03 23:25:44 +05:30
Faris Ansari
bc39fa4feb feat: PatchRun
- Run ad-hoc patch code
- Run patches based on patchOrder
- Skip already run patches
2020-01-28 16:55:47 +05:30
Faris Ansari
0a401d32cd fix: Validate doctype fields 2020-01-28 16:54:49 +05:30
Faris Ansari
ce5ecd1c18 fix: validate field only if value is set 2020-01-01 13:39:31 +05:30
Faris Ansari
53b0eea4f2 fix: validate select for non mandatory unset value 2019-12-27 22:04:45 +05:30
Faris Ansari
25f7e51312 fix: Only validate model fields 2019-12-27 22:03:16 +05:30
Faris Ansari
879b57f698 fix: validateFields before insert 2019-12-27 16:00:49 +05:30
Faris Ansari
e609aea4b6 feat: Standard validations for email and phone 2019-12-27 15:55:23 +05:30
Faris Ansari
d66501968f feat: set and update directly in update method 2019-12-27 12:08:06 +05:30
Faris Ansari
8378319b1b feat: Helper to round values in document 2019-12-26 19:16:02 +05:30
Faris Ansari
6497d05627 fix: Better error message for Select validation 2019-12-24 15:40:46 +05:30
Faris Ansari
827cad114a fix: Mandatory check 2019-12-24 15:40:31 +05:30
Faris Ansari
a53cc9f119 fix: validate select for array of objects 2019-12-20 11:58:00 +05:30
Faris Ansari
1603346b20 fix: validate mandatory for table fields 2019-12-20 11:57:29 +05:30
Faris Ansari
6b596a4021 feat: doc.push for adding children without change 2019-12-20 11:56:52 +05:30
Faris Ansari
75184d43c3 fix: update modified after triggers 2019-12-20 11:54:48 +05:30
Faris Ansari
2205a212eb feat: validate method for fields 2019-12-20 11:52:16 +05:30
Faris Ansari
d19182b583 fix: Singles
- Initialize defaults for SIngles
- Cast values when loading a Single document
2019-12-18 23:52:47 +05:30
Faris Ansari
fef4f96e78 fix: frappe.db.getCachedValue
- CacheManager
- Use db.getCachedValue in doc.getFrom
2019-12-18 23:51:45 +05:30
Faris Ansari
7198979fc7 fix: frappe.registerModels
- Directly register from models object, not models.models
- frappe.getModels
- Validate model before registering
- Fix model.extend bug for duplicate fields
- Remove usage of deepmerge and use lodash/cloneDeep
2019-12-18 23:48:53 +05:30
Faris Ansari
bdd470fd93 feat: Refactor database to use knex 2019-12-10 01:28:18 +05:30
Faris Ansari
8f02928cee fix: Default precision 2019-12-05 00:13:17 +05:30
Faris Ansari
7af5c30e7b fix: validateMandatory in insert 2019-12-05 00:13:08 +05:30
Faris Ansari
16ad083426 fix: Formula
- Trigger applyChange on parent if child is changed
- roundFloats after applyChange
- formulaDependsOn
- process formula value in getValueFromFormula
2019-12-02 17:50:48 +05:30
Faris Ansari
254b810fd0 fix: Set default precision for Float fields 2019-12-02 17:48:11 +05:30
Faris Ansari
5273177768 fix: Mark parentdoc as dirty if child is dirty 2019-11-28 23:09:43 +05:30