We'd like to set a custom filter on the Field `Acquisition Cost`. The current CalcFormula is
field(15; "Acquisition Cost"; Decimal)
{
AutoFormatType = 1;
CalcFormula = Sum("FA Ledger Entry".Amount WHERE("FA No." = FIELD("FA No."),
"Depreciation Book Code" = FIELD("Depreciation Book Code"),
"FA Posting Category" = CONST(" "),
"FA Posting Type" = CONST("Acquisition Cost"),
"FA Posting Date" = FIELD("FA Posting Date Filter")));
Caption = 'Acquisition Cost';
Editable = false;
FieldClass = FlowField;
}We'd like to have it something like this:
field(15; "Acquisition Cost"; Decimal)
{
AutoFormatType = 1;
CalcFormula = Sum("FA Ledger Entry".Amount WHERE("FA No." = FIELD("FA No."),
"Depreciation Book Code" = FIELD("Depreciation Book Code"),
"FA Posting Category" = CONST(" "),
"FA Posting Type" = CONST("Acquisition Cost" | "OUR CUSTOM VALUE"), // <<- Add this
"FA Posting Date" = FIELD("FA Posting Date Filter")));
Caption = 'Acquisition Cost';
Editable = false;
FieldClass = FlowField;
}
Is there any way to do this? Thanks for your help