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