Exemplo n.º 1
0
 public static void AppsInvoice(this WorkEffort @this, WorkEffortInvoice method)
 {
     if (@this.CanInvoice)
     {
         @this.WorkEffortState = new WorkEffortStates(@this.Strategy.Session).Finished;
         @this.InvoiceThis();
     }
 }
Exemplo n.º 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;
            }
        }