Procházet zdrojové kódy

Setting Account on Customer Card updates GL and Payment Terms

frogsoftware před 8 měsíci
rodič
revize
3ab9c6e7c7

+ 9 - 0
prs.classes/Entities/Customer/Customer.cs

@@ -141,5 +141,14 @@ namespace Comal.Classes
         {
             return Name;
         }
+
+        static Customer()
+        {
+            LinkedProperties.Register<Customer,PaymentTermsLink,Guid>(x=>x.Account.Terms,x=>x.ID, x=>x.Terms.ID);
+            LinkedProperties.Register<Customer,PaymentTermsLink,String>(x=>x.Account.Terms,x=>x.Code, x=>x.Terms.Code);
+            LinkedProperties.Register<Customer,PaymentTermsLink,String>(x=>x.Account.Terms,x=>x.Description, x=>x.Terms.Description);
+            LinkedProperties.Register<Customer,PaymentTermsLink,String>(x=>x.Account.Terms,x=>x.Calculation, x=>x.Terms.Calculation);
+            LinkedProperties.Register<Customer,SalesGLCodeLink,Guid>(x=>x.Account.GLCode,x=>x.ID, x=>x.GLCode.ID);
+        }
     }
 }

+ 4 - 0
prs.classes/Entities/Customer/CustomerLink.cs

@@ -17,6 +17,10 @@ namespace Comal.Classes
         [NullEditor]
         public PaymentTermsLink Terms { get; set; }
         
+        [NullEditor]
+        [RequiredColumn]
+        public SalesGLCodeLink GLCode { get; set; }
+        
     }
 
     public class CustomerLink : EntityLink<Customer>

+ 1 - 1
prs.desktop/prsdesktop.iss

@@ -8,7 +8,7 @@
 #define public Dependency_Path_NetCoreCheck "dependencies\"
 
 #define MyAppName "PRS Desktop"
-#define MyAppVersion "8.21"
+#define MyAppVersion "8.22"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSDesktop.exe"

+ 1 - 1
prs.licensing/PRSLicensing.iss

@@ -8,7 +8,7 @@
 #define public Dependency_Path_NetCoreCheck "dependencies\"
 
 #define MyAppName "PRS Licensing"
-#define MyAppVersion "8.21"
+#define MyAppVersion "8.22"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSLicensing.exe"

+ 1 - 1
prs.server/PRSServer.iss

@@ -8,7 +8,7 @@
 #define public Dependency_Path_NetCoreCheck "dependencies\"
 
 #define MyAppName "PRS Server"
-#define MyAppVersion "8.21"
+#define MyAppVersion "8.22"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSServer.exe"