Source AL, 69 lines
src/Layers/W1/BaseApp/Purchases/History/CancelPstdPurchInvYesNo.Codeunit.allines 9 to 24 of 69, Copyright (c) Microsoft Corporation. MIT
codeunit 1325 "Cancel PstdPurchInv (Yes/No)"{ Permissions = TableData "Purch. Inv. Header" = rm, TableData "Purch. Cr. Memo Hdr." = rm; TableNo = "Purch. Inv. Header"; trigger OnRun() begin CancelInvoice(Rec); end; var CancelPostedInvoiceFromOrderQst: Label 'This invoice was posted from a purchase order. To cancel it, a purchase credit memo will be created and posted. The quantities from the original purchase order will be restored, provided the purchase order still exists.\ \Do you want to continue?'; CancelPostedInvoiceQst: Label 'The posted purchase invoice will be canceled, and a purchase credit memo will be created and posted.\ \Do you want to continue?'; OpenPostedCreditMemoQst: Label 'A credit memo was successfully created. Do you want to open the posted credit memo?';
All 69 lines
Events 2 in 29
Public procedures 1 in 29
| CancelInvoice(var PurchInvHeader: Record "Purch. Inv. Header"): Boolean | 17-29 |
Changes 1 in 28
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Events | | | | | 1 | | | | | | | 1 | |
|---|
All 2 changes in 17-29