@@ -61,6 +61,7 @@ class JournalEntry(AccountsController):
6161 cheque_no : DF .Data | None
6262 clearance_date : DF .Date | None
6363 company : DF .Link
64+ custom_remark : DF .Check
6465 difference : DF .Currency
6566 due_date : DF .Date | None
6667 finance_book : DF .Link | None
@@ -1023,11 +1024,11 @@ def set_exchange_rate(self):
10231024 def create_remarks (self ):
10241025 r = []
10251026
1026- if self .flags . skip_remarks_creation :
1027+ if self .get ( "custom_remark" ) :
10271028 return
10281029
1029- if self .user_remark :
1030- r . append ( _ ( "Note: {0}" ). format ( self . user_remark ))
1030+ if self .flags . skip_remarks_creation :
1031+ return
10311032
10321033 if self .cheque_no :
10331034 if self .cheque_date :
@@ -1135,9 +1136,7 @@ def build_gl_map(self):
11351136
11361137 for d in self .get ("accounts" ):
11371138 if d .debit or d .credit or (self .voucher_type == "Exchange Gain Or Loss" ):
1138- r = [d .user_remark , self .remark ]
1139- r = [x for x in r if x ]
1140- remarks = "\n " .join (r )
1139+ remarks = self .remark
11411140
11421141 row = {
11431142 "account" : d .account ,
@@ -1548,7 +1547,7 @@ def get_against_jv(doctype, txt, searchfield, start, page_len, filters):
15481547 frappe .qb .from_ (JournalEntry )
15491548 .join (JournalEntryAccount )
15501549 .on (JournalEntryAccount .parent == JournalEntry .name )
1551- .select (JournalEntry .name , JournalEntry .posting_date , JournalEntry .user_remark )
1550+ .select (JournalEntry .name , JournalEntry .posting_date , JournalEntry .remark )
15521551 .where (JournalEntryAccount .account == filters .get ("account" ))
15531552 .where (JournalEntryAccount .reference_type .isnull () | (JournalEntryAccount .reference_type == "" ))
15541553 .where (JournalEntry .docstatus == 1 )
0 commit comments