Browse Source

Bill Line Tax Amount is now editable
Removed server-side KanbanSubscriber checking

frogsoftware 1 năm trước cách đây
mục cha
commit
541b57369a
2 tập tin đã thay đổi với 15 bổ sung15 xóa
  1. 1 1
      prs.classes/Entities/Bill/BillLine.cs
  2. 14 14
      prs.stores/KanbanStore.cs

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

@@ -41,7 +41,7 @@ namespace Comal.Classes
         [DoubleEditor(Editable = Editable.Hidden)]
         public double TaxRate { get; set; }
 
-        [CurrencyEditor(Editable = Editable.Hidden, Summary = Summary.Sum)]
+        [CurrencyEditor(Summary = Summary.Sum)]
         public double Tax { get; set; }
 
         [CurrencyEditor(Summary = Summary.Sum)]

+ 14 - 14
prs.stores/KanbanStore.cs

@@ -192,22 +192,22 @@ namespace Comal.Stores
             CheckNotifications(entity);
             CheckNotificationRequired(entity);
             CheckKanbanTypeForms(entity);
-            CheckSubscribers(entity);
+            //CheckSubscribers(entity);
         }
 
-        private void CheckSubscribers(Kanban entity)
-        {
-            if (entity.EmployeeLink.HasOriginalValue(x => x.ID) || (entity.ManagerLink.HasOriginalValue(x => x.ID)))
-            {
-                var set = new ServerKanbanSubscriberSet(new Guid[] { entity.ID });
-                if (entity.EmployeeLink.HasOriginalValue(x => x.ID))
-                    set.EnsureAssignee(entity.ID,entity.EmployeeLink.ID);
-                if (entity.ManagerLink.HasOriginalValue(x => x.ID))
-                    set.EnsureManager(entity.ID,entity.ManagerLink.ID);
-                set.Save();
-
-            }
-        }
+        // private void CheckSubscribers(Kanban entity)
+        // {
+        //     if (entity.EmployeeLink.HasOriginalValue(x => x.ID) || (entity.ManagerLink.HasOriginalValue(x => x.ID)))
+        //     {
+        //         var set = new ServerKanbanSubscriberSet(new Guid[] { entity.ID });
+        //         if (entity.EmployeeLink.HasOriginalValue(x => x.ID))
+        //             set.EnsureAssignee(entity.ID,entity.EmployeeLink.ID);
+        //         if (entity.ManagerLink.HasOriginalValue(x => x.ID))
+        //             set.EnsureManager(entity.ID,entity.ManagerLink.ID);
+        //         set.Save();
+        //
+        //     }
+        // }
         
     }
 }