-
Notifications
You must be signed in to change notification settings - Fork 436
[WHT]-Withholding Tax is not deducted from Expense Report lines based on the Expense Category during posting #9973
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
base: main
Are you sure you want to change the base?
Changes from all commits
e95924b
519ef88
ee76fda
87c2cbc
c186398
2c1b01a
b6a9ede
17abc19
e4be08b
3b428d8
16f53eb
500f0b6
468973a
d4e3b32
c810714
3f4df27
3f65019
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.ExpenseTaxIntegration; | ||
|
|
||
| permissionset 7058 "Exp. Withholding Tax" | ||
| { | ||
| Assignable = true; | ||
| Caption = 'Expense Withholding Tax'; | ||
|
|
||
| Permissions = | ||
|
Contributor
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. The new assignable permission set "Exp. Withholding Tax" grants only the buffer table and two internal codeunits, but the app's setup and normal usage paths also depend on the Expense Category Card, Withholding Tax Posting Setup, and the extended General Journal page/fields. Without execute/tabledata coverage for those objects (or an equivalent included permission set), an assigned user cannot configure or use this feature without SUPER. Knowledge: 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.32.4 |
||
| tabledata "WHT Exp. Report Buffer" = RIMD, | ||
|
ViditGupta1277 marked this conversation as resolved.
|
||
| table "WHT Exp. Report Buffer" = X, | ||
| codeunit "WHT Expense Category Mgt." = X, | ||
| codeunit "WHT Exp. Report Post Handler" = X; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.ExpenseTaxIntegration; | ||
|
|
||
| using Microsoft.WithholdingTax; | ||
|
|
||
| table 7059 "WHT Exp. Report Buffer" | ||
|
ViditGupta1277 marked this conversation as resolved.
|
||
| { | ||
| Caption = 'Expense Report Withholding Tax Buffer'; | ||
| Access = Internal; | ||
|
|
||
| fields | ||
| { | ||
| field(1; "Document No."; Code[20]) | ||
|
ViditGupta1277 marked this conversation as resolved.
|
||
| { | ||
| Caption = 'Document No.'; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| field(2; "Line No."; Integer) | ||
| { | ||
| Caption = 'Line No.'; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| field(10; "Wthldg. Tax Bus. Post. Group"; Code[20]) | ||
| { | ||
| Caption = 'Withholding Tax Bus. Posting Group'; | ||
| TableRelation = "Wthldg. Tax Bus. Post. Group"; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| field(11; "Wthldg. Tax Prod. Post. Group"; Code[20]) | ||
| { | ||
| Caption = 'Withholding Tax Prod. Posting Group'; | ||
| TableRelation = "Wthldg. Tax Prod. Post. Group"; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| field(12; "Expense Category"; Code[20]) | ||
| { | ||
| Caption = 'Expense Category'; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| field(20; "WHT Base Amount (LCY)"; Decimal) | ||
| { | ||
| Caption = 'Withholding Tax Base Amount (LCY)'; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| field(21; "WHT Amount (LCY)"; Decimal) | ||
| { | ||
| Caption = 'Withholding Tax Amount (LCY)'; | ||
| DataClassification = SystemMetadata; | ||
| } | ||
| } | ||
|
|
||
| keys | ||
| { | ||
| key(PK; "Document No.", "Line No.") | ||
| { | ||
| Clustered = true; | ||
| } | ||
| } | ||
| } | ||
|
ViditGupta1277 marked this conversation as resolved.
|
||
Uh oh!
There was an error while loading. Please reload this page.