Add the profitability report and the internal hourly cost
Profitability by job and service unit from a period's hours, expenses and the created billing materials of its months. Hours are costed at one internal hourly cost, set on the price list maintenance page; a job of several service units is shared evenly between them. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
+8
@@ -11,6 +11,7 @@ use App\Modules\Catalog\Application\DTOs\ServiceUnitNode;
|
||||
use App\Modules\Catalog\Application\DTOs\VatRateSummary;
|
||||
use App\Modules\Catalog\Application\DTOs\WorkTypeSummary;
|
||||
use App\Modules\Catalog\Application\UseCases\SetDefaultExpenseMarkup;
|
||||
use App\Modules\Catalog\Application\UseCases\SetInternalHourlyCost;
|
||||
use App\Modules\Catalog\Application\UseCases\SetMileageRate;
|
||||
use App\Modules\Catalog\Domain\Enums\ProductUnit;
|
||||
use App\Modules\Catalog\Domain\ValueObjects\ProductDuration;
|
||||
@@ -125,6 +126,13 @@ class EloquentPriceListQueries implements PriceListQueries
|
||||
return $value === null ? null : (int) $value;
|
||||
}
|
||||
|
||||
public function internalHourlyCostCents(): ?int
|
||||
{
|
||||
$value = $this->settings->get(SetInternalHourlyCost::SETTING_KEY);
|
||||
|
||||
return $value === null ? null : (int) $value;
|
||||
}
|
||||
|
||||
public function defaultExpenseMarkupBasisPoints(): int
|
||||
{
|
||||
return (int) ($this->settings->get(SetDefaultExpenseMarkup::SETTING_KEY) ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user