mirror of
https://github.com/frappe/books.git
synced 2025-01-08 17:24:05 +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');
|
const nameFieldIndex = Item.fields.findIndex(i => i.fieldname === 'name');
|
||||||
|
|
||||||
Item.fields = [
|
Item.fields = [
|
||||||
...Item.fields.slice(0, nameFieldIndex+1),
|
...Item.fields.slice(0, nameFieldIndex + 1),
|
||||||
{
|
{
|
||||||
fieldname: 'hsnCode',
|
fieldname: 'hsnCode',
|
||||||
label: 'HSN/SAC',
|
label: 'HSN/SAC',
|
||||||
fieldtype: 'Int',
|
fieldtype: 'Int',
|
||||||
placeholder: 'HSN/SAC Code',
|
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');
|
Item.quickEditFields.unshift('hsnCode');
|
||||||
|
Loading…
Reference in New Issue
Block a user