You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localprocedure CreateJobQueueEntryForAutomatedBilling(var BillingTemplate: Record "Billing Template"; var JobQueueEntry: Record "Job Queue Entry")
60
60
begin
61
-
JobQueueEntry.ScheduleRecurrentJobQueueEntryWithFrequency(JobQueueEntry."Object Type to Run"::Codeunit, Codeunit::"Auto Contract Billing", BillingTemplate.RecordId, BillingTemplate."Minutes between runs", BillingTemplate."Automation Start Time");
61
+
JobQueueEntry.ScheduleRecurrentJobQueueEntryWithFrequency(JobQueueEntry."Object Type to Run"::Codeunit, Codeunit::"Auto Contract Billing", BillingTemplate.RecordId, BillingTemplate."Minutes between runs");
Copy file name to clipboardExpand all lines: src/Apps/W1/Subscription Billing/App/Billing/Tables/BillingTemplate.Table.al
+8-31Lines changed: 8 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
namespace Microsoft.SubscriptionBilling;
2
2
3
3
using System.Security.User;
4
-
using System.Utilities;
4
+
using System.Threading;
5
5
6
6
table8060 "Billing Template"
7
7
{
@@ -58,30 +58,19 @@ table 8060 "Billing Template"
58
58
{
59
59
Caption = 'Posting Date Formula';
60
60
ToolTip = 'Specifies the date formula used to calculate the Posting Date. If the field is left empty, the Posting Date is prefilled with workdate, or with today when the process runs automatically.';
61
-
trigger OnValidate()
62
-
begin
63
-
if Format("Posting Date Formula") <> ''then
64
-
ThrowErrorIfAutomationIsNotSet(FieldCaption("Posting Date Formula"));
65
-
end;
66
61
}
67
62
field(12; "Document Date Formula"; DateFormula)
68
63
{
69
64
Caption = 'Document Date Formula';
70
65
ToolTip = 'Specifies the date formula used to calculate the Document Date. If the field is left empty, the Document Date is prefilled with workdate, or with today when the process runs automatically.';
71
-
trigger OnValidate()
72
-
begin
73
-
if Format("Document Date Formula") <> ''then
74
-
ThrowErrorIfAutomationIsNotSet(FieldCaption("Document Date Formula"));
AutoContractBillingNotAllowedErr: Label'You cannot change the auto billing templates because you are not set up as an Auto Contract Billing user in the User Setup.';
171
-
CanOnlyBeSetWhenAutomatedErr: Label'You can only set the field %1 if %2 is set to %3', Comment = '%1 - Customer Document per Field Caption, %2 - Automation Field Caption, %3 - Automation Field Value';
0 commit comments