cancel
Showing results for 
Search instead for 
Did you mean: 

Formatted search on payment form

Former Member
0 Kudos

Hi Experts!

I would like to make a formatted search on payment forms-both outgoing and incoming- which copies the partnername or the accountname according to the doctype into the journal remarks field.

I've created a query but it doesnt work. It runs error.

SELECT case when $[ORCT.doctype]='A' then $[RCT4.Descrip] else

$[ORCT.Cardname] end

Please, can you help whats wrong with this?

Thank you in advance!

Accepted Solutions (1)

Accepted Solutions (1)

former_member583013
Active Contributor
0 Kudos

Try this

SELECT CASE WHEN $[ORCT.DocType] = 'C' THEN $[$32.1]

WHEN $[ORCT.DocType] = 'S' THEN $[$32.1]

ELSE $[$71.2] END

Good luck

Answers (0)