mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
refactor
This commit is contained in:
parent
c7f3134f83
commit
830342cfa6
2480
dist/js/bundle.js
vendored
2480
dist/js/bundle.js
vendored
File diff suppressed because it is too large
Load Diff
@ -9,9 +9,6 @@ class AccountMeta extends BaseMeta {
|
||||
}
|
||||
|
||||
class Account extends BaseDocument {
|
||||
setup() {
|
||||
this.addHandler('validate');
|
||||
}
|
||||
async validate() {
|
||||
if (!this.account_type) {
|
||||
if (this.parent_account) {
|
||||
|
@ -29,7 +29,8 @@
|
||||
"fieldname": "rate",
|
||||
"label": "Rate",
|
||||
"fieldtype": "Currency",
|
||||
"required": 1
|
||||
"required": 1,
|
||||
"formula": "doc.getFrom('Item', row.item, 'rate')"
|
||||
},
|
||||
{
|
||||
"fieldname": "amount",
|
||||
|
Loading…
Reference in New Issue
Block a user