Browse Source

Added Option to allow bills without numbers (eg petty cash receipts via Data Entry Screen)
Fixed Broken "Configure Panel" handling

frogsoftware 1 year ago
parent
commit
c2cdb7aead

+ 1 - 1
prs.classes/Entities/Bill/Bill.cs

@@ -4,7 +4,7 @@ using InABox.Core;
 namespace Comal.Classes
 {
     [UserTracking("Accounts Payable")]
-    public class Bill : Entity, IPersistent, IRemotable, ILicense<AccountsPayableLicense>, IDataEntryInstance, IPostable
+    public class Bill : Entity, IPersistent, IRemotable, ILicense<AccountsPayableLicense>, IDataEntryInstance, IPostable, IExportable
     {
         
         [EditorSequence(1)]

+ 7 - 4
prs.desktop/Panels/PanelHost.cs

@@ -155,10 +155,13 @@ public class PanelHost : IPanelHost
 
         var propertiesInterface = CurrentPanel.GetType().GetInterfaceDefinition(typeof(IPropertiesPanel<>))!;
         var propertiesType = propertiesInterface.GenericTypeArguments[0];
-        var method = typeof(MainWindow)
-            .GetMethod(nameof(EditPanelProperties), BindingFlags.NonPublic | BindingFlags.Instance)
-            ?.MakeGenericMethod(CurrentPanel.GetType(), propertiesType)
-            .Invoke(this, Array.Empty<object?>());
+        var basemethod = typeof(PanelHost)
+            .GetMethod(nameof(EditPanelProperties), BindingFlags.NonPublic | BindingFlags.Instance);
+        if (basemethod == null)
+            return;
+        var method = basemethod?.MakeGenericMethod(CurrentPanel.GetType(), propertiesType);
+        if (method != null)
+            method.Invoke(this, Array.Empty<object?>());
     }
 
     #endregion

+ 1 - 1
prs.desktop/prsdesktop.iss

@@ -5,7 +5,7 @@
 #pragma verboselevel 9
 
 #define MyAppName "PRS Desktop"
-#define MyAppVersion "7.57b"
+#define MyAppVersion "7.58"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSDesktop.exe"

+ 1 - 1
prs.licensing/PRSLicensing.iss

@@ -5,7 +5,7 @@
 #pragma verboselevel 9
 
 #define MyAppName "PRS Licensing"
-#define MyAppVersion "7.57b"
+#define MyAppVersion "7.58"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSLicensing.exe"

+ 1 - 1
prs.server/PRSServer.iss

@@ -5,7 +5,7 @@
 #pragma verboselevel 9
 
 #define MyAppName "PRS Server"
-#define MyAppVersion "7.57b"
+#define MyAppVersion "7.58"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSServer.exe"