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:
parent
5cc57d3748
commit
293c2768c4
@ -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']
|
||||
};
|
||||
|
@ -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',
|
||||
|
@ -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';
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user