fix: Add payment entry custom fields
This commit is contained in:
parent
8b644d8889
commit
e8a5dc371b
@ -450,6 +450,26 @@ def make_custom_fields(update=True):
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
payment_entry_fields = [
|
||||||
|
dict(fieldname='gst_section', label='GST Details', fieldtype='Section Break', insert_after='deductions',
|
||||||
|
print_hide=1, collapsible=1),
|
||||||
|
dict(fieldname='company_address', label='Company Address', fieldtype='Link', insert_after='gst_section',
|
||||||
|
print_hide=1, options='Address'),
|
||||||
|
dict(fieldname='company_gstin', label='Company GSTIN',
|
||||||
|
fieldtype='Data', insert_after='company_address',
|
||||||
|
fetch_from='company_address.gstin', print_hide=1, read_only=1),
|
||||||
|
dict(fieldname='place_of_supply', label='Place of Supply',
|
||||||
|
fieldtype='Data', insert_after='company_gstin',
|
||||||
|
print_hide=1, read_only=1),
|
||||||
|
dict(fieldname='gst_column_break', fieldtype='Column Break',
|
||||||
|
insert_after='place_of_supply'),
|
||||||
|
dict(fieldname='customer_address', label='Customer Address', fieldtype='Link', insert_after='gst_column_break',
|
||||||
|
print_hide=1, options='Address', depends_on = 'eval:doc.party_type == "Customer"'),
|
||||||
|
dict(fieldname='customer_gstin', label='Customer GSTIN',
|
||||||
|
fieldtype='Data', insert_after='customer_address',
|
||||||
|
fetch_from='customer_address.gstin', print_hide=1, read_only=1)
|
||||||
|
]
|
||||||
|
|
||||||
custom_fields = {
|
custom_fields = {
|
||||||
'Address': [
|
'Address': [
|
||||||
dict(fieldname='gstin', label='Party GSTIN', fieldtype='Data',
|
dict(fieldname='gstin', label='Party GSTIN', fieldtype='Data',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user