Skip to content

Commit a6b5b43

Browse files
ljain112mergify[bot]
authored andcommitted
fix: allow first and last name for both types of parties
(cherry picked from commit 4bec881)
1 parent 3e98297 commit a6b5b43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

india_compliance/public/js/quick_entry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class PartyQuickEntryForm extends GSTQuickEntryForm {
172172
label: __("First Name"),
173173
fieldname: "map_to_first_name",
174174
fieldtype: "Data",
175-
depends_on: "eval:doc.customer_type=='Company'",
175+
depends_on: "eval:doc.customer_type=='Company' || doc.supplier_type=='Company'",
176176
},
177177
{
178178
fieldtype: "Column Break",
@@ -181,7 +181,7 @@ class PartyQuickEntryForm extends GSTQuickEntryForm {
181181
label: __("Last Name"),
182182
fieldname: "map_to_last_name",
183183
fieldtype: "Data",
184-
depends_on: "eval:doc.customer_type=='Company'",
184+
depends_on: "eval:doc.customer_type=='Company' || doc.supplier_type=='Company'",
185185
},
186186
{
187187
fieldname: "primary_contact_section_2",

0 commit comments

Comments
 (0)