-
Notifications
You must be signed in to change notification settings - Fork 628
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
[DRAFT][E-Documents Core] - E-Invoice Preview FastTab #27977
Draft
GMatuleviciute
wants to merge
5
commits into
microsoft:main
Choose a base branch
from
GMatuleviciute:dev/gma/EInvoicePreview
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3e81f6a
add EDocument app workspace
petemchlk f4c11e2
add code analyzers settings to code workspace
petemchlk 26753b9
Merge pull request #1 from GMatuleviciute/dev/pmi/EDocumentWorkspace
GMatuleviciute aca48df
E-Invoice Preview FastTab structure
GMatuleviciute b30f272
Added automated test
GMatuleviciute 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
This file contains 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
53 changes: 53 additions & 0 deletions
53
Apps/W1/EDocument/app/src/InvoicePreview/EInvoiceLine.Table.al
This file contains 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,53 @@ | ||
table 6100 "E-Invoice Line" | ||
{ | ||
DataClassification = CustomerContent; | ||
|
||
fields | ||
{ | ||
field(1; "E-Document Entry No."; Integer) | ||
{ | ||
TableRelation = "E-Document"; | ||
Caption = 'E-Document Entry No'; | ||
} | ||
field(2; "Line No."; Integer) | ||
{ | ||
Caption = 'Line No.'; | ||
} | ||
field(3; "No."; Code[20]) | ||
{ | ||
Caption = 'No.'; | ||
} | ||
field(4; Description; Text[100]) | ||
{ | ||
Caption = 'Description'; | ||
} | ||
field(5; "Unit of Measure Code"; Text[50]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This field is assigned with the field |
||
{ | ||
Caption = 'Unit of Measure Code'; | ||
} | ||
field(6; Quantity; Decimal) | ||
{ | ||
Caption = 'Quantity'; | ||
DecimalPlaces = 0 : 5; | ||
} | ||
field(7; "Direct Unit Cost"; Decimal) | ||
{ | ||
Caption = 'Direct Unit Cost'; | ||
} | ||
field(8; "Line Discount %"; Decimal) | ||
{ | ||
Caption = 'Line Discount %'; | ||
DecimalPlaces = 0 : 5; | ||
MaxValue = 100; | ||
MinValue = 0; | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(Key1; "E-Document Entry No.", "Line No.") | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
Apps/W1/EDocument/app/src/InvoicePreview/EInvoiceLines.Page.al
This file contains 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,43 @@ | ||
page 6100 "E-Invoice Lines" | ||
{ | ||
PageType = ListPart; | ||
ApplicationArea = Basic, Suite; | ||
Editable = false; | ||
InsertAllowed = false; | ||
DeleteAllowed = false; | ||
SourceTable = "E-Invoice Line"; | ||
|
||
layout | ||
{ | ||
area(Content) | ||
{ | ||
repeater(EInvoiceLines) | ||
{ | ||
field("No."; Rec."No.") | ||
{ | ||
ToolTip = 'Specifies what is being purchased.'; | ||
} | ||
field(Description; Rec.Description) | ||
{ | ||
ToolTip = 'Describes what is being purchased.'; | ||
} | ||
field("Unit of Measure Code"; Rec."Unit of Measure Code") | ||
{ | ||
ToolTip = 'Specifies how each unit of the item or resource is measured, such as in pieces or hours.'; | ||
} | ||
field(Quantity; Rec.Quantity) | ||
{ | ||
ToolTip = 'Specifies the quantity of what you''re buying. The number is based on the unit chosen in the Unit of Measure Code field.'; | ||
} | ||
field("Direct Unit Cost"; Rec."Direct Unit Cost") | ||
{ | ||
ToolTip = 'Specifies the price of one unit of what you are buying.'; | ||
} | ||
field("Line Discount %"; Rec."Line Discount %") | ||
{ | ||
ToolTip = 'Specifies the discount percentage that is granted for the item on the line.'; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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 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,24 @@ | ||
{ | ||
"settings": { | ||
"al.enableCodeAnalysis": true, | ||
"al.codeAnalyzers": [ | ||
"${CodeCop}", | ||
"${UICop}", | ||
"${AppSourceCop}" | ||
] | ||
}, | ||
"folders": [ | ||
{ | ||
"name": "app", | ||
"path": "app" | ||
}, | ||
{ | ||
"name": "test", | ||
"path": "test" | ||
}, | ||
{ | ||
"name": "demo data", | ||
"path": "demo data" | ||
} | ||
] | ||
} |
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add ToolTips for new tables as default on the Table instead of the page?