2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 12:08:27 +00:00

Fixed the Nil rated, exempted goods filter condition

This commit is contained in:
Piyush Singhania 2021-12-11 00:27:10 +05:30 committed by Alan
parent 4fa1c272d5
commit 23d21bdfb9

View File

@ -17,8 +17,7 @@ class GSTR1 extends BaseGSTR {
'B2B': row => row.gstin, 'B2B': row => row.gstin,
'B2C-Large': row => !row.gstin && !row.inState && row.invAmt >= 250000, 'B2C-Large': row => !row.gstin && !row.inState && row.invAmt >= 250000,
'B2C-Small': row => !row.gstin && (row.inState || (row.inState && row.invAmt < 250000)), 'B2C-Small': row => !row.gstin && (row.inState || (row.inState && row.invAmt < 250000)),
// TODO: fix the condition for nil rated 'Nil Rated, Exempted and Non GST supplies': row => (row.rate === 0), // this takes care of both nil rated, exempted goods
'Nil Rated, Exempted and Non GST supplies': row => row
}; };
if (!params.transferType) return data; if (!params.transferType) return data;