diff --git a/schemas/app/Payment.json b/schemas/app/Payment.json
index c9e44c3e..fb9a2f34 100644
--- a/schemas/app/Payment.json
+++ b/schemas/app/Payment.json
@@ -11,7 +11,18 @@
"fieldname": "name",
"fieldtype": "Data",
"required": true,
- "readOnly": true
+ "readOnly": true,
+ "section": "Default"
+ },
+ {
+ "fieldname": "numberSeries",
+ "label": "Number Series",
+ "fieldtype": "Link",
+ "target": "NumberSeries",
+ "create": true,
+ "required": true,
+ "default": "PAY-",
+ "section": "Default"
},
{
"fieldname": "party",
@@ -19,13 +30,15 @@
"fieldtype": "Link",
"target": "Party",
"create": true,
- "required": true
+ "required": true,
+ "section": "Default"
},
{
"fieldname": "date",
"label": "Posting Date",
"fieldtype": "Date",
- "required": true
+ "required": true,
+ "section": "Default"
},
{
"fieldname": "paymentType",
@@ -42,16 +55,27 @@
"label": "Pay"
}
],
- "required": true
+ "required": true,
+ "section": "Default"
},
{
- "fieldname": "numberSeries",
- "label": "Number Series",
+ "fieldname": "account",
+ "label": "From Account",
"fieldtype": "Link",
- "target": "NumberSeries",
+ "target": "Account",
"create": true,
"required": true,
- "default": "PAY-"
+ "section": "Details"
+ },
+ {
+ "fieldname": "paymentAccount",
+ "label": "To Account",
+ "placeholder": "To Account",
+ "fieldtype": "Link",
+ "target": "Account",
+ "create": true,
+ "required": true,
+ "section": "Details"
},
{
"fieldname": "paymentMethod",
@@ -73,72 +97,64 @@
}
],
"default": "Cash",
- "required": true
- },
- {
- "fieldname": "account",
- "label": "From Account",
- "fieldtype": "Link",
- "target": "Account",
- "create": true,
- "required": true
- },
- {
- "fieldname": "paymentAccount",
- "label": "To Account",
- "placeholder": "To Account",
- "fieldtype": "Link",
- "target": "Account",
- "create": true,
- "required": true
- },
- {
- "fieldname": "referenceId",
- "label": "Ref. / Cheque No.",
- "placeholder": "Ref. / Cheque No.",
- "fieldtype": "Data"
- },
- {
- "fieldname": "referenceDate",
- "label": "Ref. Date",
- "placeholder": "Ref. Date",
- "fieldtype": "Date"
- },
- {
- "fieldname": "clearanceDate",
- "label": "Clearance Date",
- "placeholder": "Clearance Date",
- "fieldtype": "Date"
+ "required": true,
+ "section": "Details"
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
- "required": true
+ "required": true,
+ "section": "Amounts"
},
{
"fieldname": "writeoff",
"label": "Write Off",
- "fieldtype": "Currency"
+ "fieldtype": "Currency",
+ "section": "Amounts"
},
{
"fieldname": "amountPaid",
"label": "Amount Paid",
"fieldtype": "Currency",
- "computed": true
+ "computed": true,
+ "section": "Amounts"
+ },
+ {
+ "fieldname": "referenceId",
+ "label": "Ref. / Cheque No.",
+ "placeholder": "Ref. / Cheque No.",
+ "fieldtype": "Data",
+ "section": "References"
+ },
+ {
+ "fieldname": "referenceDate",
+ "label": "Reference Date",
+ "placeholder": "Ref. Date",
+ "fieldtype": "Date",
+ "section": "References"
+ },
+ {
+ "fieldname": "clearanceDate",
+ "label": "Clearance Date",
+ "placeholder": "Clearance Date",
+ "fieldtype": "Date",
+ "section": "References"
},
{
"fieldname": "for",
"label": "Payment Reference",
"fieldtype": "Table",
"target": "PaymentFor",
- "required": false
+ "required": false,
+ "section": "References"
},
{
"fieldname": "attachment",
"placeholder": "Add attachment",
"label": "Attachment",
- "fieldtype": "Attachment"
+ "fieldtype": "Attachment",
+ "section": "References"
}
],
"quickEditFields": [
diff --git a/schemas/meta/base.json b/schemas/meta/base.json
index c596594b..763a3dbe 100644
--- a/schemas/meta/base.json
+++ b/schemas/meta/base.json
@@ -6,28 +6,32 @@
"label": "Created By",
"fieldtype": "Data",
"required": true,
- "meta": true
+ "meta": true,
+ "section": "System"
},
{
"fieldname": "modifiedBy",
"label": "Modified By",
"fieldtype": "Data",
"required": true,
- "meta": true
+ "meta": true,
+ "section": "System"
},
{
"fieldname": "created",
"label": "Created",
"fieldtype": "Datetime",
"required": true,
- "meta": true
+ "meta": true,
+ "section": "System"
},
{
"fieldname": "modified",
"label": "Modified",
"fieldtype": "Datetime",
"required": true,
- "meta": true
+ "meta": true,
+ "section": "System"
}
]
}
diff --git a/schemas/meta/submittable.json b/schemas/meta/submittable.json
index dbe6e524..f02772ac 100644
--- a/schemas/meta/submittable.json
+++ b/schemas/meta/submittable.json
@@ -6,14 +6,16 @@
"label": "Submitted",
"fieldtype": "Check",
"required": true,
- "meta": true
+ "meta": true,
+ "section": "System"
},
{
"fieldname": "cancelled",
"label": "Cancelled",
"fieldtype": "Check",
"required": true,
- "meta": true
+ "meta": true,
+ "section": "System"
}
]
}
diff --git a/src/components/Controls/Table.vue b/src/components/Controls/Table.vue
index bc589188..d239542a 100644
--- a/src/components/Controls/Table.vue
+++ b/src/components/Controls/Table.vue
@@ -4,79 +4,84 @@
{{ df.label }}
-
-
- {{ t`Add Row` }} -
-#
+ {{ t`Add Row` }} +
++ {{ t`${value.length} rows` }} +
+