From 1b1a5b8b845196043437091300b9a7a47567c84e Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 21 Dec 2021 11:35:21 +0530 Subject: [PATCH] fix: remove required on hsnCode --- models/doctype/Item/RegionalChanges.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/models/doctype/Item/RegionalChanges.js b/models/doctype/Item/RegionalChanges.js index ab805d92..614e98cf 100644 --- a/models/doctype/Item/RegionalChanges.js +++ b/models/doctype/Item/RegionalChanges.js @@ -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');