11
There are some customers who want to allow zero-posting.
Please add an Event or a setting.

What we want is to disable the code between ===START=== and ===END=== conditionally.

Codeunit 13 - CheckRecurringLine

WITH GenJnlLine2 DO BEGIN
IF "Account No." <> '' THEN
IF GenJnlTemplate.Recurring THEN BEGIN
TESTFIELD("Recurring Method");
TESTFIELD("Recurring Frequency");
IF "Bal. Account No." <> '' THEN
FIELDERROR("Bal. Account No.",Text021);
CASE "Recurring Method" OF
===START===
"Recurring Method"::"V Variable","Recurring Method"::"RV Reversing Variable",
"Recurring Method"::"F Fixed","Recurring Method"::"RF Reversing Fixed":
TESTFIELD(Amount);
===END===
"Recurring Method"::"B Balance","Recurring Method"::"RB Reversing Balance":
TESTFIELD(Amount,0);
END;
END ELSE BEGIN
TESTFIELD("Recurring Method",0);
TESTFIELD("Recurring Frequency",DummyDateFormula);
END;
END;
STATUS DETAILS
Under Review
Ideas Administrator

Thank you for your feedback. Currently this is not in our roadmap; however, we are tracking it and if we get more feedback and votes, we may consider it in the future. 

 

Sincerely, 

Ivan Koletic

PM, Microsoft