ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 1001 - Job Post-Line

Open frivadulla opened this issue 7 years ago • 0 comments

It would be nice to have this event in function "PostInvoiceContractLine", at Codeunit 1001 - Job Post-Line:

Location of publisher:

.
.
.
     JobPlanningLineInvoice."Invoiced Cost Amount (LCY)" :=
        JobPlanningLineInvoice."Quantity Transferred" * JobPlanningLine."Unit Cost (LCY)";
      IF JobLedgEntry.FINDLAST THEN
        JobPlanningLineInvoice."Job Ledger Entry No." := JobLedgEntry."Entry No." + 1
      ELSE
        JobPlanningLineInvoice."Job Ledger Entry No." := 1;
      JobPlanningLineInvoice.MODIFY;
    END;
END;

//-- EVENT BEGIN
OnBefore_JobPlanningLineUpdateQtyToInvoice(SalesHeader, SalesLine, JobPlanningLine, JobPlanningLineInvoice, JobLedgEntry);
//++EVENT END

JobPlanningLine.UpdateQtyToInvoice;
JobPlanningLine.MODIFY;

IF JobPlanningLine.Type <> JobPlanningLine.Type::Text THEN
.
.
.

Event declaration

OnBefore_JobPlanningLineUpdateQtyToInvoice(VAR pSalesHeader : Record "Sales Header";VAR pSalesLine : Record "Sales Line";VAR pJobPlanningLine : Record "Job Planning Line";VAR pJobPlanningLineInvoice : Record "Job Planning Line Invoice";VAR pJobLedgEntry : Record "Job Ledger Entry")

Thanks in advice.

frivadulla avatar Dec 21 '18 12:12 frivadulla