Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] Table 37 - Sales Line - OnMaxQtyToInvoice with Handled #1452

Closed
rvanbekkum opened this issue Mar 7, 2019 · 0 comments
Closed
Labels
event-request Request for adding an event ships-in-future-update Fix ships in a future update

Comments

@rvanbekkum
Copy link
Contributor

Dear ALAppExtensions team,

Through this issue we would like to request the following event publisher in table 37 Sales Line:

LOCAL [IntegrationEvent] OnMaxQtyToInvoice(SalesLine : Record "Sales Line";VAR MaxQtyToInvoice : Decimal;VAR IsHandled : Boolean)

with VAR parameters MaxQtyToInvoice and IsHandled.

This event publisher would be called as follows from the start of procedure MaxQtyToInvoice:

[External] MaxQtyToInvoice() : Decimal
// >> Call to new event
OnMaxQtyToInvoice(Rec, MaxQtyToInvoice, IsHandled);
IF IsHandled THEN
  EXIT(MaxQtyToInvoice);
// << Call to new event
IF "Prepayment Line" THEN
  EXIT(1);
IF "Document Type" IN ["Document Type"::"Return Order","Document Type"::"Credit Memo"] THEN
  EXIT("Return Qty. Received" + "Return Qty. to Receive" - "Quantity Invoiced");

EXIT("Quantity Shipped" + "Qty. to Ship" - "Quantity Invoiced");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event ships-in-future-update Fix ships in a future update
Projects
None yet
Development

No branches or pull requests

3 participants