2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00

fix: auto set GST Type

This commit is contained in:
18alantom 2021-12-16 15:52:58 +05:30 committed by Alan
parent b1537f04e3
commit 3e51c9f857

View File

@ -1,6 +1,8 @@
import { cloneDeep } from 'lodash';
import PartyOriginal from './Party';
const gstTypes = ['Unregistered', 'Registered Regular', 'Consumer'];
export default function getAugmentedParty({ country }) {
const Party = cloneDeep(PartyOriginal);
if (!country) {
@ -19,9 +21,10 @@ export default function getAugmentedParty({ country }) {
},
{
fieldname: 'gstType',
label: 'GST Registration Type',
label: 'GST Registration',
fieldtype: 'Select',
options: ['Unregistered', 'Registered Regular', 'Consumer'],
default: gstTypes[0],
options: gstTypes,
}
);
Party.quickEditFields.push('gstin');