added new field to 2 reports

This commit is contained in:
Ali 2026-01-21 16:18:43 +04:00
parent add68b8ae3
commit bc31f531ad
1 changed files with 27 additions and 2 deletions

View File

@ -288,6 +288,12 @@ def create_custom_fields():
) )
], ],
"Payment Entry": [ "Payment Entry": [
dict(
fieldname='goods_provided_instead_of_salary',
label='Goods provided instead of salary',
fieldtype='Check',
insert_after='payment_type'
),
dict( dict(
fieldname='custom_note', fieldname='custom_note',
label='Note', label='Note',
@ -492,11 +498,17 @@ def create_custom_fields():
read_only=1 read_only=1
), ),
# Organizer and Seller checkboxes # Organizer and Seller checkboxes
dict(
fieldname='goods_provided_instead_of_salary',
label='Goods provided instead of salary',
fieldtype='Check',
insert_after='is_debit_note'
),
dict( dict(
fieldname='organizer', fieldname='organizer',
label='Organizer', label='Organizer',
fieldtype='Check', fieldtype='Check',
insert_after='is_debit_note', insert_after='goods_provided_instead_of_salary',
depends_on='eval:doc.company_main_activity && ["92000", "9200003", "9200004", "9200001", "9200002", "9200005"].includes(doc.company_main_activity)', depends_on='eval:doc.company_main_activity && ["92000", "9200003", "9200004", "9200001", "9200002", "9200005"].includes(doc.company_main_activity)',
allow_on_submit=1 allow_on_submit=1
), ),
@ -787,6 +799,19 @@ def create_custom_fields():
read_only=1 read_only=1
) )
], ],
"Journal Entry": [
dict(
fieldname='expense_income_type',
label='Expense/Income',
fieldtype='Select',
options='\nIncome\nExpense',
insert_after='voucher_type',
in_list_view=1,
columns=2,
no_copy=1,
allow_on_submit=1
)
],
"Bank": [ "Bank": [
dict( dict(
fieldname='bank_code', fieldname='bank_code',