-
Notifications
You must be signed in to change notification settings - Fork 360
[E-document] QR code in Service #6517
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10,421 changes: 10,421 additions & 0 deletions
10,421
src/Apps/W1/EDocument/App/.resources/Template/ServiceCreditMemoWithQR.rdlc
Large diffs are not rendered by default.
Oops, something went wrong.
10,869 changes: 10,869 additions & 0 deletions
10,869
src/Apps/W1/EDocument/App/.resources/Template/ServiceInvoiceWithQR.rdlc
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedServiceCrMemoWithQR.PageExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.eServices.EDocument; | ||
|
|
||
| using Microsoft.Service.History; | ||
|
|
||
| pageextension 6172 "Posted Service CrMemo with QR" extends "Posted Service Credit Memo" | ||
| { | ||
| actions | ||
| { | ||
| addafter("E-Document") | ||
| { | ||
| action(ViewQRCode) | ||
| { | ||
| ApplicationArea = All; | ||
| Caption = 'View QR Code'; | ||
| Image = Picture; | ||
| ToolTip = 'View the QR code assigned by the authority'; | ||
| Visible = ShowQRCodeAction; | ||
|
|
||
| trigger OnAction() | ||
| var | ||
| EDocQRCodeMgr: Codeunit "EDocument QR Code Management"; | ||
| begin | ||
| EDocQRCodeMgr.InitializeAndRunQRCodeViewer(Rec); | ||
| end; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| var | ||
| ShowQRCodeAction: Boolean; | ||
|
|
||
| trigger OnAfterGetRecord() | ||
| begin | ||
| ShowQRCodeAction := Rec."QR Code Image".Count > 0; | ||
| end; | ||
| } |
34 changes: 34 additions & 0 deletions
34
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedServiceCrMemoWithQR.ReportExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.eServices.EDocument; | ||
|
|
||
| using Microsoft.Service.History; | ||
|
|
||
| reportextension 6172 "PostedServiceCrMemoWithQR" extends "Service - Credit Memo" | ||
| { | ||
| dataset | ||
| { | ||
| add("Service Cr.Memo Header") | ||
| { | ||
| column(QR_Code_Image; "QR Code Image") | ||
| { | ||
| } | ||
| column(QR_Code_Image_Lbl; FieldCaption("QR Code Image")) | ||
| { | ||
| } | ||
| } | ||
| } | ||
|
|
||
| rendering | ||
| { | ||
| layout("ServiceCreditMemoWithQR.rdlc") | ||
| { | ||
| Type = RDLC; | ||
| LayoutFile = './.resources/Template/ServiceCreditMemoWithQR.rdlc'; | ||
| Caption = 'Service Credit Memo - E-Document (RDLC)'; | ||
| Summary = 'The Service Credit Memo - E-Document (RDLC) provides the layout including E-Document QR code support.'; | ||
| } | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedServiceCrMemoWithQR.TableExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
|
|
||
| namespace Microsoft.eServices.EDocument; | ||
|
|
||
| using Microsoft.Service.History; | ||
|
|
||
| tableextension 6171 "Posted Service CrMemo with QR" extends "Service Cr.Memo Header" | ||
| { | ||
| fields | ||
| { | ||
| field(6165; "QR Code Image"; MediaSet) | ||
| { | ||
| Caption = 'QR Code Image'; | ||
| DataClassification = CustomerContent; | ||
| } | ||
|
|
||
| field(6166; "QR Code Base64"; Blob) | ||
| { | ||
| Caption = 'QR Code Base64'; | ||
| DataClassification = CustomerContent; | ||
| } | ||
| } | ||
| } |
40 changes: 40 additions & 0 deletions
40
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedServiceInvoiceWithQR.PageExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.eServices.EDocument; | ||
|
|
||
| using Microsoft.Service.History; | ||
|
|
||
| pageextension 6170 "Posted Service Invoice with QR" extends "Posted Service Invoice" | ||
| { | ||
| actions | ||
| { | ||
| addafter("E-Document") | ||
| { | ||
| action(ViewQRCode) | ||
| { | ||
| ApplicationArea = All; | ||
| Caption = 'View QR Code'; | ||
| Image = Picture; | ||
| ToolTip = 'View the QR code assigned by the authority'; | ||
| Visible = ShowQRCodeAction; | ||
|
|
||
| trigger OnAction() | ||
| var | ||
| EDocQRCodeMgr: Codeunit "EDocument QR Code Management"; | ||
| begin | ||
| EDocQRCodeMgr.InitializeAndRunQRCodeViewer(Rec); | ||
| end; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| var | ||
| ShowQRCodeAction: Boolean; | ||
|
|
||
| trigger OnAfterGetRecord() | ||
| begin | ||
| ShowQRCodeAction := Rec."QR Code Image".Count > 0; | ||
| end; | ||
| } |
34 changes: 34 additions & 0 deletions
34
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedServiceInvoiceWithQR.ReportExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.eServices.EDocument; | ||
|
|
||
| using Microsoft.Service.History; | ||
|
|
||
| reportextension 6170 "PostedServiceInvoiceWithQR" extends "Service - Invoice" | ||
| { | ||
| dataset | ||
| { | ||
| add("Service Invoice Header") | ||
| { | ||
| column(QR_Code_Image; "QR Code Image") | ||
| { | ||
| } | ||
| column(QR_Code_Image_Lbl; FieldCaption("QR Code Image")) | ||
| { | ||
| } | ||
| } | ||
| } | ||
|
|
||
| rendering | ||
| { | ||
| layout("ServiceInvoiceWithQR.rdlc") | ||
| { | ||
| Type = RDLC; | ||
| LayoutFile = './.resources/Template/ServiceInvoiceWithQR.rdlc'; | ||
| Caption = 'Service Invoice - E-Document (RDLC)'; | ||
| Summary = 'The Service Invoice - E-Document (RDLC) provides the layout including E-Document QR code support.'; | ||
| } | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
src/Apps/W1/EDocument/App/src/ClearanceModel/PostedServiceInvoiceWithQR.TableExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
|
|
||
| namespace Microsoft.eServices.EDocument; | ||
|
|
||
| using Microsoft.Service.History; | ||
|
|
||
| tableextension 6170 "Posted Service Invoice with QR" extends "Service Invoice Header" | ||
| { | ||
| fields | ||
| { | ||
| field(6165; "QR Code Image"; MediaSet) | ||
| { | ||
| Caption = 'QR Code Image'; | ||
| DataClassification = CustomerContent; | ||
| } | ||
|
|
||
| field(6166; "QR Code Base64"; Blob) | ||
| { | ||
| Caption = 'QR Code Base64'; | ||
| DataClassification = CustomerContent; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Apps/W1/EDocument/App/src/Extensions/EDocPurchaseLine.TableExt.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.