Hello team,
in the below code am trying to get the total of line amount in both cases means GL account no = 1410301 and type = item (if type = item exits)then take the total of both otherwise if item is not present then total of only this gl acocunt.
Only facing issue in this line- "No." = CONST('1410301')| "Type" = CONST(Item)),
if i add one condition its working but i want in if it comes in both condition means if sum if gl code 1410301 and type = items comes
but am getting error. is anything i did wrong .pls suggest
field(60012; "Total Job Project"; decimal)
{
FieldClass = FlowField;
CalcFormula = - Sum("Job Ledger Entry"."Line Amount (LCY)" WHERE("Job No." = FIELD("No."),
"Entry Type" = CONST(Sale),
("No." = CONST('1410301')| "Type" = CONST(Item)),
"Posting Date" = FIELD("Posting Date Filter"),
"Shortcut Dimension 3 Code" = const('PROJECTS')));
}