示例#1
0
 public static void AppsInvoice(this WorkEffort @this, WorkEffortInvoice method)
 {
     if (@this.CanInvoice)
     {
         @this.WorkEffortState = new WorkEffortStates(@this.Strategy.Session).Finished;
         @this.InvoiceThis();
     }
 }
示例#2
0
        public static void BaseInvoice(this WorkEffort @this, WorkEffortInvoice method)
        {
            if (!method.Result.HasValue)
            {
                if (@this.CanInvoice)
                {
                    @this.WorkEffortState = new WorkEffortStates(@this.Strategy.Session).Finished;
                    @this.InvoiceThis();
                }

                method.Result = true;
            }
        }