Skip to content

Commit

Permalink
The issue with displaying RecieptNo and ZNo on the first form has bee…
Browse files Browse the repository at this point in the history
…n resolved.
  • Loading branch information
ferhat-mousavi committed Sep 12, 2024
1 parent b07c2d0 commit 7b7092a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SaleFlex.UserInterface.Control/ControlExtention.cs
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ public static bool bSetStatusBarZNoLabel(this CustomForm prm_xCustomForm, string
{
if (prm_strZNo == string.Empty)
prm_strZNo = "0";
((CustomStatusBar)xControl).strZNo = string.Format("{0} : {1}", LabelTranslations.strGet("GroupNo"), (Convert.ToInt32(prm_strZNo) + 1).ToString());
((CustomStatusBar)xControl).strZNo = string.Format("{0} : {1}", LabelTranslations.strGet("GroupNo"), (Convert.ToInt32(prm_strZNo)).ToString());

return true;
}
Expand All @@ -867,7 +867,7 @@ public static bool bSetStatusBarReceiptNoLabel(this CustomForm prm_xCustomForm,
{
if (xControl is CustomStatusBar)
{
((CustomStatusBar)xControl).strReceiptNo = string.Format("{0} : {1}", LabelTranslations.strGet("ReceiptNo"), prm_strReceiptNo);
((CustomStatusBar)xControl).strReceiptNo = string.Format("{0} : {1}", LabelTranslations.strGet("ReceiptNo"), (Convert.ToInt32(prm_strReceiptNo)).ToString());

return true;
}
Expand Down
4 changes: 2 additions & 2 deletions SaleFlex.UserInterface.Control/CustomForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ private void vInitializeDynamicComponent(string prm_strFormName)
SelectNextControl(ActiveControl, true, true, true, true);
this.bFocusNumPad();

this.bSetStatusBarZNoLabel(string.Empty);
this.bSetStatusBarReceiptNoLabel(string.Empty);
this.bSetStatusBarZNoLabel(Dao.xGetInstance().iGetLastZNumber().ToString());
this.bSetStatusBarReceiptNoLabel(Dao.xGetInstance().iGetLastRecieptNumber().ToString());
}
}
catch (Exception xException)
Expand Down
1 change: 1 addition & 0 deletions SaleFlex.UserInterface.Manager/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private bool bInitPosManagerData()
xAboutBox.Close();

PosManager.xGetInstance().vPosManagerInitialize();

bReturnValue = true;
}
catch (Exception xException)
Expand Down

0 comments on commit 7b7092a

Please sign in to comment.