2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
This commit is contained in:
Rushabh Mehta 2018-02-13 17:27:20 +05:30
parent c7f3134f83
commit 830342cfa6
3 changed files with 1320 additions and 1166 deletions

2480
dist/js/bundle.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -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) {

View File

@ -29,7 +29,8 @@
"fieldname": "rate",
"label": "Rate",
"fieldtype": "Currency",
"required": 1
"required": 1,
"formula": "doc.getFrom('Item', row.item, 'rate')"
},
{
"fieldname": "amount",