2019-08-01 11:52:58 +00:00
|
|
|
const title = 'Purchase Register';
|
2021-11-04 10:31:26 +00:00
|
|
|
|
|
|
|
export default {
|
2019-08-01 11:52:58 +00:00
|
|
|
title: title,
|
|
|
|
method: 'purchase-register',
|
|
|
|
filterFields: [
|
|
|
|
{
|
|
|
|
fieldtype: 'Link',
|
|
|
|
target: 'Party',
|
|
|
|
label: 'Supplier Name',
|
|
|
|
fieldname: 'supplier',
|
2019-08-14 07:43:49 +00:00
|
|
|
size: 'small',
|
|
|
|
placeholder: 'Supplier Name',
|
2021-12-21 06:07:36 +00:00
|
|
|
getFilters: (query) => {
|
2019-08-01 11:52:58 +00:00
|
|
|
if (query)
|
|
|
|
return {
|
|
|
|
keywords: ['like', query],
|
2021-12-21 06:07:36 +00:00
|
|
|
supplier: 1,
|
2019-08-01 11:52:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
2021-12-21 06:07:36 +00:00
|
|
|
supplier: 1,
|
2019-08-01 11:52:58 +00:00
|
|
|
};
|
2021-12-21 06:07:36 +00:00
|
|
|
},
|
2019-08-01 11:52:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
fieldtype: 'Date',
|
|
|
|
fieldname: 'fromDate',
|
2019-08-14 07:43:49 +00:00
|
|
|
size: 'small',
|
|
|
|
placeholder: 'From Date',
|
2019-08-01 11:52:58 +00:00
|
|
|
label: 'From Date',
|
2021-12-21 06:07:36 +00:00
|
|
|
required: 1,
|
2019-08-01 11:52:58 +00:00
|
|
|
},
|
2019-08-14 07:43:49 +00:00
|
|
|
{
|
|
|
|
fieldtype: 'Date',
|
|
|
|
size: 'small',
|
|
|
|
placeholder: 'To Date',
|
|
|
|
fieldname: 'toDate',
|
|
|
|
label: 'To Date',
|
2021-12-21 06:07:36 +00:00
|
|
|
required: 1,
|
|
|
|
},
|
2019-08-01 11:52:58 +00:00
|
|
|
],
|
2021-12-21 06:07:36 +00:00
|
|
|
actions: [],
|
2019-08-01 11:52:58 +00:00
|
|
|
getColumns() {
|
|
|
|
return [
|
|
|
|
{ label: 'PurchaseInvoice', fieldname: 'name' },
|
|
|
|
{ label: 'Posting Date', fieldname: 'date' },
|
|
|
|
{ label: 'Supplier', fieldname: 'supplier' },
|
|
|
|
{ label: 'Payable Account', fieldname: 'account' },
|
|
|
|
{ label: 'Net Total', fieldname: 'netTotal', fieldtype: 'Currency' },
|
|
|
|
{ label: 'Total Tax', fieldname: 'totalTax', fieldtype: 'Currency' },
|
2021-12-21 06:07:36 +00:00
|
|
|
{ label: 'Grand Total', fieldname: 'grandTotal', fieldtype: 'Currency' },
|
2019-08-01 11:52:58 +00:00
|
|
|
];
|
2021-12-21 06:07:36 +00:00
|
|
|
},
|
2019-08-01 11:52:58 +00:00
|
|
|
};
|