Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c0502da
Added more locations
Aug 11, 2026
24c6637
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Aug 13, 2026
01a726a
More expense locations
Aug 13, 2026
02dc41b
fix warning
Aug 14, 2026
692f528
AT localization
Aug 14, 2026
c60f61e
AT localization
Aug 14, 2026
629cd0d
Fix AA0139 overflow warning: LocationCode param type mismatch in Libr…
Copilot Aug 16, 2026
c63a539
Added permissions
Aug 17, 2026
e31acfd
Fixed inconsistencies
Aug 17, 2026
7e6a943
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Aug 17, 2026
af05883
Merge branch 'features/641293-locations' of https://github.com/micros…
Aug 17, 2026
5db1301
pull
Aug 19, 2026
828d565
pull
Aug 20, 2026
1b63dfa
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Aug 20, 2026
b6b2c76
re-introduce procedures used in local versions
Aug 20, 2026
f0bf691
Revert field length to the wrong 30 chars
Aug 20, 2026
b781af8
Removed GreatBritain as a dupe of UK
Aug 21, 2026
3c5f2dc
Merge branch 'main' into features/641293-locations
BardurKnudsen Aug 23, 2026
1e237be
ID collision
Aug 23, 2026
422611d
Object range error
Aug 24, 2026
37d7967
Permissions
Aug 24, 2026
b42ba3e
Re-added deleted objects due to build error
Aug 24, 2026
2eddc89
Build error
Aug 25, 2026
a09c92a
Build error
Aug 25, 2026
5323b10
git pull
Aug 28, 2026
82ba51f
Add suggested fix
Aug 28, 2026
641416d
git pull
Aug 30, 2026
ab374c6
attempt to bypass invalid setup data
Aug 30, 2026
87f03be
attempt to bypass invalid setup data
Aug 31, 2026
8174e99
Merge branch 'main' into features/641293-locations
BardurKnudsen Aug 31, 2026
a359864
duplicate ID
Aug 31, 2026
81417db
Fix country per diem demo data
Copilot Sep 1, 2026
42778a0
Revert name changes
Sep 1, 2026
5333377
Merge branch 'features/641293-locations' of https://github.com/micros…
Sep 1, 2026
173ff18
Improve error handling so we get call stacks
Sep 2, 2026
54d82db
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Sep 2, 2026
193bd6b
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Sep 7, 2026
6c41e2a
Added validate
Sep 7, 2026
4368426
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Sep 7, 2026
2cd2132
ID collision
Sep 7, 2026
7cbea27
Merge branch 'main' of https://github.com/microsoft/BCApps into featu…
Sep 8, 2026
f3964f9
Failing test
Sep 8, 2026
10889b3
Merge remote-tracking branch 'origin/main' into features/641293-locat…
Copilot Sep 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ codeunit 6914 "Expense Event Subscriber AT"
ObsoleteReason = 'The AT-specific expense setup has been merged into the base Expense Agent app.';
ObsoleteTag = '30.0';
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ codeunit 6952 "Exp. Attach. Buffer Handler"
end;

// Split filename into name and extension
DocumentAttachment.Validate("File Extension", FileManagement.GetExtension(AttachmentEntityBuffer."File Name"));
DocumentAttachment.Validate("File Extension", CopyStr(FileManagement.GetExtension(AttachmentEntityBuffer."File Name"), 1, MaxStrLen(DocumentAttachment."File Extension")));
DocumentAttachment.Validate("File Name", CopyStr(FileManagement.GetFileNameWithoutExtension(AttachmentEntityBuffer."File Name"), 1, MaxStrLen(DocumentAttachment."File Name")));

BindSubscription(ExpDocAttSubscribers);
Expand Down Expand Up @@ -164,7 +164,7 @@ codeunit 6952 "Exp. Attach. Buffer Handler"
if HasRegisteredField(AttachmentEntityBuffer.FieldNo("File Name"), TempFieldBuffer) then begin
ExpenseAttachmentMgt.RestrictAttachment(DocumentAttachment);

DocumentAttachment.Validate("File Extension", FileManagement.GetExtension(AttachmentEntityBuffer."File Name"));
DocumentAttachment.Validate("File Extension", CopyStr(FileManagement.GetExtension(AttachmentEntityBuffer."File Name"), 1, MaxStrLen(DocumentAttachment."File Extension")));
DocumentAttachment.Validate("File Name", CopyStr(FileManagement.GetFileNameWithoutExtension(AttachmentEntityBuffer."File Name"), 1, MaxStrLen(DocumentAttachment."File Name")));
ModifyRecord := true;
end;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ table 6900 Expense
CreateDimFromDefaultDim(Rec.FieldNo("Billable to Customer"));
end;
}
field(23; "Expense Location"; Code[30])
field(23; "Expense Location"; Code[30]) // NB: Expense Location Code has length 20.
Comment thread
BardurKnudsen marked this conversation as resolved.
{
Caption = 'Expense Location';
TableRelation = "Expense Location";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ codeunit 6983 "Create Expense Report"
ExpenseReportLine.Validate("Expense User No.", Expense."Expense User No.");
ExpenseReportLine.Validate("Expense Category", Expense."Expense Category");
ExpenseReportLine.Validate("Expense Subcategory Code", Expense."Expense Subcategory");
ExpenseReportLine.Validate("Expense Location", CopyStr(Expense."Expense Location", 1, 20));
ExpenseReportLine.Validate("Expense Location", CopyStr(Expense."Expense Location", 1, MaxStrLen(ExpenseReportLine."Expense Location")));
if Expense.Description <> '' then
ExpenseReportLine.Validate(Description, Expense.Description);
if ExpenseReportLine."Expense Subcategory Code" <> '' then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ codeunit 6984 "Release Exp. Report Document"
CannotReleaseDocumentWithNothingToRefundErr: Label 'Cannot release the Expense Report No. %1 because there is nothing to refund for this Line No. %2.', Comment = '%1 - Expense No. , %2 - Line No.';
PolicyEvaluationNotCurrentErr: Label 'One or more expense lines have a policy evaluation that is not up to date. Re-run policy evaluation and approve again.';
PolicyEvaluationNotCurrentCodeTok: Label ' (PolicyEvaluationNotCurrent)', Locked = true;
ReimbursementErr: Label 'Reimbursement type must be set to a value in expense report %1, line %2 with description %3.', Comment = '%1 - Expense No. , %2 - Line No., %3 - description';

local procedure ReleaseExpenseReport()
var
Expand Down Expand Up @@ -75,7 +76,8 @@ codeunit 6984 "Release Exp. Report Document"
ExpenseSubCategory.TestField(Inactive, false);

ExpenseReportLine.TestField(Description);
ExpenseReportLine.TestField("Reimbursement Type");
if ExpenseReportLine."Reimbursement Type" = ExpenseReportLine."Reimbursement Type"::" " then
Comment thread
BardurKnudsen marked this conversation as resolved.
Comment thread
BardurKnudsen marked this conversation as resolved.
Error(ReimbursementErr, ExpenseReportLine."Expense No.", ExpenseReportLine."Line No.", ExpenseReportLine.Description);

if ExpenseReportLine."Job No." <> '' then
ExpenseReportLine.TestField("Job Task No.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ table 6926 "Expense Rule Condition"
{
Access = Internal;
Caption = 'Expense Rule Condition';
LookupPageId = "Expense Management Rules";
DrillDownPageId = "Expense Management Rules";
DataClassification = CustomerContent;
ReplicateData = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ table 6927 "Expense Rule Header"
Access = Internal;
Caption = 'Expense Rule Header';
DataClassification = CustomerContent;
LookupPageId = "Expense Management Rules";
ReplicateData = false;

fields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ permissionset 6952 "Expense Agent - Objects"
codeunit "Expense Auto Population" = X,
codeunit "Expense Capabilities Provider" = X,
codeunit "Expense Activity Log Mgt." = X,
codeunit "Expense Projects Builder" = X,
codeunit "Exp. Policies To Eval Builder" = X,
codeunit "Expense Consumption Handler" = X,
codeunit "Expense Currency" = X,
Expand All @@ -157,6 +156,7 @@ permissionset 6952 "Expense Agent - Objects"
codeunit "Expense Report-Post" = X,
codeunit "Expense Preview Post Instance" = X,
codeunit "Expense Preview Post Mgt." = X,
codeunit "Expense Projects Builder" = X,
codeunit "Expense Report" = X,
codeunit "Expense Report Approval Mgmt" = X,
codeunit "Expense Report Batch Post Mgt." = X,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ permissionset 6904 "Expense Management - Objects"
codeunit "Expense Preview Post Instance" = X,
codeunit "Expense Approval Helper" = X,
codeunit "Create Expense Agent Setup" = X,
codeunit "Create Expense Locations" = X,
Comment thread
BardurKnudsen marked this conversation as resolved.
codeunit "Create Expense Rule Conditions" = X,
codeunit "Create Expense Rule Headers" = X,
codeunit "Create Expense Categories" = X,
codeunit "Create Expense VAT Rates" = X,
codeunit "Create Expense GL Account" = X,
Expand Down
Loading
Loading