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:
parent
b4707d868f
commit
1b1a5b8b84
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user