2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
books/reports/SalesRegister/viewConfig.js
sahil28297 d8dace31f8 changes in events, payment modal and date in sales register (#68)
* creating a default party account

* changed formula to fetch in invoices

* changes in events, Invoice, Payments and date in sales register view
2018-09-20 18:23:30 +05:30

22 lines
878 B
JavaScript

const title = 'Sales Register';
module.exports = {
title: title,
method: 'sales-register',
filterFields: [
{ fieldtype: 'Link', target: 'Party', label: 'Customer Name', fieldname: 'customer' },
{ fieldtype: 'Date', fieldname: 'fromDate', label: 'From Date', required: 1 },
{ fieldtype: 'Date', fieldname: 'toDate', label: 'To Date', required: 1 }
],
getColumns() {
return [
{ label: 'Invoice', fieldname: 'name' },
{ label: 'Posting Date', fieldname: 'date' , fieldtype: 'Date' },
{ label: 'Customer', fieldname: 'customer' },
{ label: 'Receivable Account', fieldname: 'account' },
{ label: 'Net Total', fieldname: 'netTotal', fieldtype: 'Currency' },
{ label: 'Total Tax', fieldname: 'totalTax', fieldtype: 'Currency' },
{ label: 'Grand Total', fieldname: 'grandTotal', fieldtype: 'Currency' },
];
}
};