mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
92 lines
1.8 KiB
JavaScript
92 lines
1.8 KiB
JavaScript
const ReportPage = require('frappejs/client/desk/reportpage');
|
|
const frappe = require('frappejs');
|
|
|
|
module.exports = class GoodsAndServiceTaxView extends ReportPage {
|
|
constructor() {
|
|
super({
|
|
title: frappe._('Goods and Service Tax'),
|
|
filterFields: [
|
|
{
|
|
fieldtype: 'Data',
|
|
label: 'Transfer Type',
|
|
options: ['In State', 'Out of State']
|
|
},
|
|
{
|
|
fieldtype: 'Data',
|
|
label: 'Place'
|
|
},
|
|
{
|
|
fieldtype: 'Date',
|
|
label: 'From Date'
|
|
},
|
|
{
|
|
fieldtype: 'Date',
|
|
label: 'To Date'
|
|
}
|
|
]
|
|
});
|
|
|
|
this.method = 'gst-taxes';
|
|
}
|
|
|
|
getColumns() {
|
|
return [
|
|
{
|
|
label: 'GSTIN No.',
|
|
fieldname: 'gstin',
|
|
fieldtype: 'Data'
|
|
},
|
|
{
|
|
fieldtype: 'Data',
|
|
fieldname: 'cusName',
|
|
label: 'Customer Name'
|
|
},
|
|
{
|
|
label: 'Invoice No.',
|
|
fieldname: 'invNo',
|
|
fieldtype: 'Data'
|
|
},
|
|
{
|
|
label: 'Invoice Value',
|
|
fieldname: 'invAmt',
|
|
fieldtype: 'Currency'
|
|
},
|
|
{
|
|
label: 'Invoice Date',
|
|
fieldname: 'invDate',
|
|
fieldtype: 'Date'
|
|
},
|
|
{
|
|
label: 'Place of supply',
|
|
fieldname: 'place',
|
|
fieldtype: 'Data'
|
|
},
|
|
{
|
|
label: 'Rate',
|
|
fieldname: 'rate',
|
|
fieldtype: 'Data'
|
|
},
|
|
{
|
|
label: 'Taxable Amount',
|
|
fieldname: 'taxAmt',
|
|
fieldtype: 'Currency'
|
|
},
|
|
{
|
|
label: 'Intergrated Tax',
|
|
fieldname: 'igstAmt',
|
|
fieldtype: 'Currency'
|
|
},
|
|
{
|
|
label: 'Central Tax',
|
|
fieldname: 'cgstAmt',
|
|
fieldtype: 'Currency'
|
|
},
|
|
{
|
|
label: 'State Tax',
|
|
fieldname: 'sgstAmt',
|
|
fieldtype: 'Currency'
|
|
}
|
|
];
|
|
}
|
|
};
|