Skip to content
Merged
Changes from all commits
Commits
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 @@ -41,6 +41,7 @@ page 20406 "Qlty. Inspection"
group(General)
{
Caption = 'General';
Editable = IsOpen;

field("No."; Rec."No.")
{
Expand All @@ -57,7 +58,6 @@ page 20406 "Qlty. Inspection"
}
field("Template Code"; Rec."Template Code")
{
Editable = false;
}
field(Description; Rec.Description)
{
Expand Down Expand Up @@ -218,14 +218,14 @@ page 20406 "Qlty. Inspection"
}
part(Lines; "Qlty. Inspection Subform")
{
Editable = IsOpen;
Caption = 'Lines';
SubPageLink = "Inspection No." = field("No."),
"Re-inspection No." = field("Re-inspection No.");
}
group(ControlInfo)
{
Caption = 'Control Information';

field("Source Table No."; Rec."Source Table No.")
{
Editable = false;
Expand Down Expand Up @@ -819,6 +819,7 @@ page 20406 "Qlty. Inspection"
QltyMiscHelpers: Codeunit "Qlty. Misc Helpers";
Camera: Codeunit Camera;
CameraAvailable: Boolean;
IsOpen: Boolean;
CanReopen: Boolean;
CanFinish: Boolean;
CanCreateReinspection: Boolean;
Expand Down Expand Up @@ -859,6 +860,7 @@ page 20406 "Qlty. Inspection"
var
TempItemTrackingSetup: Record "Item Tracking Setup" temporary;
begin
IsOpen := Rec.Status = Rec.Status::Open;
CanReopen := QltyPermissionMgmt.CanReopenInspection() and not Rec.HasMoreRecentReinspection();
CanFinish := QltyPermissionMgmt.CanFinishInspection() and not (Rec.Status = Rec.Status::Finished);
CanCreateReinspection := QltyPermissionMgmt.CanCreateReinspection();
Expand Down
Loading