2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

fix: remove required on hsnCode

This commit is contained in:
18alantom 2021-12-21 11:35:21 +05:30 committed by Alan
parent b4707d868f
commit 1b1a5b8b84

View File

@ -11,15 +11,14 @@ export default function getAugmentedItem({ country }) {
const nameFieldIndex = Item.fields.findIndex(i => i.fieldname === 'name');
Item.fields = [
...Item.fields.slice(0, nameFieldIndex+1),
...Item.fields.slice(0, nameFieldIndex + 1),
{
fieldname: 'hsnCode',
label: 'HSN/SAC',
fieldtype: 'Int',
placeholder: 'HSN/SAC Code',
required: 1
},
...Item.fields.slice(nameFieldIndex+1, Item.fields.length),
...Item.fields.slice(nameFieldIndex + 1, Item.fields.length),
];
Item.quickEditFields.unshift('hsnCode');