Skip to content

Commit 193f52c

Browse files
committed
fix: first and last name field in party quick entry form
1 parent c312d10 commit 193f52c

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

india_compliance/public/js/quick_entry.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,27 @@ class PartyQuickEntryForm extends GSTQuickEntryForm {
168168
fieldtype: "Section Break",
169169
collapsible: 0,
170170
},
171+
{
172+
label: __("First Name"),
173+
fieldname: "map_to_first_name",
174+
fieldtype: "Data",
175+
depends_on: "eval:doc.customer_type=='Company'",
176+
},
177+
{
178+
fieldtype: "Column Break",
179+
},
180+
{
181+
label: __("Last Name"),
182+
fieldname: "map_to_last_name",
183+
fieldtype: "Data",
184+
depends_on: "eval:doc.customer_type=='Company'",
185+
},
186+
{
187+
fieldname: "primary_contact_section_2",
188+
fieldtype: "Section Break",
189+
collapsible: 0,
190+
hide_border: 1,
191+
},
171192
{
172193
label: __("Email ID"),
173194
fieldname: "_email_id",
@@ -195,6 +216,8 @@ class PartyQuickEntryForm extends GSTQuickEntryForm {
195216
// these fields were suffixed with _ to prevent them from being read only
196217
doc.email_id = doc._email_id;
197218
doc.mobile_no = doc._mobile_no;
219+
doc.first_name = doc.map_to_first_name;
220+
doc.last_name = doc.map_to_last_name;
198221

199222
return doc;
200223
}

0 commit comments

Comments
 (0)