Change the code of the Controls in the Sales Advance Letters History form (26588) as follows:
Existing code 1...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Closed;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(5);
END;
}
{ 1470028;TextBox ;3080 ;3080 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 1...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Closed;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(4);
END;
}
{ 1470028;TextBox ;3080 ;3080 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 2...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Final Invoice;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(4);
END;
}
{ 1470030;TextBox ;3080 ;2530 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 2...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Final Invoice;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(3);
END;
}
{ 1470030;TextBox ;3080 ;2530 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 3...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Adv. Invoice;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(3);
END;
}
{ 1470032;TextBox ;3080 ;1980 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 3...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Adv. Invoice;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(2);
END;
}
{ 1470032;TextBox ;3080 ;1980 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 4...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Advance;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(2);
END;
}
{ 1470034;TextBox ;3080 ;1430 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 4...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Advance;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(1);
END;
}
{ 1470034;TextBox ;3080 ;1430 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 5...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Open;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(1);
END;
}
{ 1470036;TextBox ;3080 ;880 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 5...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Open;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(0);
END;
}
{ 1470036;TextBox ;3080 ;880 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 6...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=1 = CurrentMenuType }
{ 1470041;PictureBox;440 ;1430 ;440 ;550 ;Name=OrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 6...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=0 = CurrentMenuType }
{ 1470041;PictureBox;440 ;1430 ;440 ;550 ;Name=OrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 7...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=2 = CurrentMenuType }
{ 1470042;PictureBox;440 ;1980 ;440 ;550 ;Name=PostedInvoicesPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 7...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=1 = CurrentMenuType }
{ 1470042;PictureBox;440 ;1980 ;440 ;550 ;Name=PostedInvoicesPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 8...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=3 = CurrentMenuType }
{ 1470043;PictureBox;440 ;2530 ;440 ;550 ;Name=ReturnOrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 8...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=2 = CurrentMenuType }
{ 1470043;PictureBox;440 ;2530 ;440 ;550 ;Name=ReturnOrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 9...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=4 = CurrentMenuType }
{ 1470044;PictureBox;440 ;3080 ;440 ;550 ;Name=CreditMemosPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 9...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=3 = CurrentMenuType }
{ 1470044;PictureBox;440 ;3080 ;440 ;550 ;Name=CreditMemosPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 10...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=5 = CurrentMenuType }
{ 1470000;SubForm ;4290 ;220 ;14520;6050 ;Name=SubForm;
HorzGlue=Both;
VertGlue=Both;
SubFormID=Form26593;
SubFormLink=Bill-to Customer No.=FIELD(No.) }
...
Replacement code 10...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=4 = CurrentMenuType }
{ 1470000;SubForm ;4290 ;220 ;14520;6050 ;Name=SubForm;
HorzGlue=Both;
VertGlue=Both;
SubFormID=Form26593;
SubFormLink=Bill-to Customer No.=FIELD(No.) }
...
Change the code of the Controls in the Purch. Advance Letters History form (26598) as follows:
Existing code 1...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Closed;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(5);
END;
}
{ 1470028;TextBox ;3080 ;3080 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 1...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Closed;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(4);
END;
}
{ 1470028;TextBox ;3080 ;3080 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 2...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Final Invoice;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(4);
END;
}
{ 1470030;TextBox ;3080 ;2530 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 2...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Final Invoice;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(3);
END;
}
{ 1470030;TextBox ;3080 ;2530 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 3...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Adv. Invoice;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(3);
END;
}
{ 1470032;TextBox ;3080 ;1980 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 3...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Adv. Invoice;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(2);
END;
}
{ 1470032;TextBox ;3080 ;1980 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 4...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Advance;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(2);
END;
}
{ 1470034;TextBox ;3080 ;1430 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 4...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Pending Advance;
OnPush=BEGIN
// Add the following line.
ChangeSubMenu(1);
END;
}
{ 1470034;TextBox ;3080 ;1430 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 5...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Open;
OnPush=BEGIN
// Delete the following line.
ChangeSubMenu(1);
END;
}
{ 1470036;TextBox ;3080 ;880 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Replacement code 5...
BackColor=16777215;
BackTransparent=Yes;
Border=No;
CaptionML=ENU=Open;
OnPush=BEGIN
// Add the following lines.
ChangeSubMenu(0);
END;
}
{ 1470036;TextBox ;3080 ;880 ;770 ;550 ;Editable=No;
Focusable=No;
ParentControl=1470003;
...
Existing code 6...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=1 = CurrentMenuType }
{ 1470041;PictureBox;440 ;1430 ;440 ;550 ;Name=OrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 6...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=0 = CurrentMenuType }
{ 1470041;PictureBox;440 ;1430 ;440 ;550 ;Name=OrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 7...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=2 = CurrentMenuType }
{ 1470042;PictureBox;440 ;1980 ;440 ;550 ;Name=PostedInvoicesPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 7...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=1 = CurrentMenuType }
{ 1470042;PictureBox;440 ;1980 ;440 ;550 ;Name=PostedInvoicesPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 8...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=3 = CurrentMenuType }
{ 1470043;PictureBox;440 ;2530 ;440 ;550 ;Name=ReturnOrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 8...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=2 = CurrentMenuType }
{ 1470043;PictureBox;440 ;2530 ;440 ;550 ;Name=ReturnOrdersPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 9...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=4 = CurrentMenuType }
{ 1470044;PictureBox;440 ;3080 ;440 ;550 ;Name=CreditMemosPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Replacement code 9...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=3 = CurrentMenuType }
{ 1470044;PictureBox;440 ;3080 ;440 ;550 ;Name=CreditMemosPic;
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
...
Existing code 10...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Delete the following line.
SourceExpr=5 = CurrentMenuType }
{ 1470000;SubForm ;4290 ;220 ;14520;6050 ;Name=SubForm;
HorzGlue=Both;
VertGlue=Both;
SubFormID=Form26599;
SubFormLink=Pay-to Vendor No.=FIELD(No.) }
...
Replacement code 10...
Focusable=No;
ParentControl=1470003;
InFrame=Yes;
Border=No;
BitmapList=35,39;
// Add the following line.
SourceExpr=4 = CurrentMenuType }
{ 1470000;SubForm ;4290 ;220 ;14520;6050 ;Name=SubForm;
HorzGlue=Both;
VertGlue=Both;
SubFormID=Form26599;
SubFormLink=Pay-to Vendor No.=FIELD(No.) }
...