mirror of
https://github.com/frappe/books.git
synced 2025-02-13 09:29:18 +00:00
fix: auto set GST Type
This commit is contained in:
parent
b1537f04e3
commit
3e51c9f857
@ -1,6 +1,8 @@
|
|||||||
import { cloneDeep } from 'lodash';
|
import { cloneDeep } from 'lodash';
|
||||||
import PartyOriginal from './Party';
|
import PartyOriginal from './Party';
|
||||||
|
|
||||||
|
const gstTypes = ['Unregistered', 'Registered Regular', 'Consumer'];
|
||||||
|
|
||||||
export default function getAugmentedParty({ country }) {
|
export default function getAugmentedParty({ country }) {
|
||||||
const Party = cloneDeep(PartyOriginal);
|
const Party = cloneDeep(PartyOriginal);
|
||||||
if (!country) {
|
if (!country) {
|
||||||
@ -19,9 +21,10 @@ export default function getAugmentedParty({ country }) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: 'gstType',
|
fieldname: 'gstType',
|
||||||
label: 'GST Registration Type',
|
label: 'GST Registration',
|
||||||
fieldtype: 'Select',
|
fieldtype: 'Select',
|
||||||
options: ['Unregistered', 'Registered Regular', 'Consumer'],
|
default: gstTypes[0],
|
||||||
|
options: gstTypes,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
Party.quickEditFields.push('gstin');
|
Party.quickEditFields.push('gstin');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user