2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: List config

This commit is contained in:
Faris Ansari 2019-11-22 00:50:41 +05:30
parent 5cc57d3748
commit 293c2768c4
5 changed files with 17 additions and 11 deletions

View File

@ -2,6 +2,5 @@ import { _ } from 'frappejs/utils';
export default {
doctype: 'Party',
title: filters => (filters.customer ? 'Customer' : 'Supplier'),
columns: ['name', 'defaultAccount', 'address']
columns: ['name', 'phone', 'outstandingAmount']
};

View File

@ -13,6 +13,13 @@ module.exports = {
settings: 'PurchaseInvoiceSettings',
showTitle: true,
fields: [
{
label: 'Bill No',
fieldname: 'name',
fieldtype: 'Data',
required: 1,
readOnly: 1
},
{
fieldname: 'date',
label: 'Date',

View File

@ -7,12 +7,12 @@ export default {
formRoute: name => `/edit/PurchaseInvoice/${name}`,
columns: [
'supplier',
'name',
{
label: 'Status',
fieldname: 'status',
fieldtype: 'Select',
size: 'small',
options: ['Status...', 'Paid', 'Pending'],
render(doc) {
let status = 'Pending';
let color = 'orange';

View File

@ -16,6 +16,13 @@ module.exports = {
settings: 'SalesInvoiceSettings',
showTitle: true,
fields: [
{
label: 'Invoice No',
fieldname: 'name',
fieldtype: 'Data',
required: 1,
readOnly: 1
},
{
fieldname: 'date',
label: 'Date',

View File

@ -7,14 +7,7 @@ export default {
formRoute: name => `/edit/SalesInvoice/${name}`,
columns: [
'customer',
{
label: 'Invoice No',
fieldname: 'name',
fieldtype: 'Data',
getValue(doc) {
return doc.name;
}
},
'name',
{
label: 'Status',
fieldname: 'status',