commit compras1 3011
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-30 09:33:36 +02:00
parent 96b30368bc
commit 47649bd46c
163 changed files with 9419 additions and 145 deletions
+11 -1
View File
@@ -12,7 +12,7 @@ final class StandaloneRuntime
'urgent-reviews', 'urgent-quotations', 'conflict-releases', 'private-audit', 'expense-allocations',
'agreement-order-limits', 'order-parts', 'import-tariffs', 'import-legal', 'import-dossier',
'import-bank-support', 'import-readiness', 'import-estimates', 'import-landed-costs', 'budget-distributions',
'supplier-payables', 'general-ledger', 'supplier-settlements', 'general-ledger-cycle', 'finance-configuration'];
'supplier-payables', 'general-ledger', 'supplier-settlements', 'general-ledger-cycle', 'finance-configuration', 'standalone-sales'];
/** @var array{root:string,manifest:array<string,mixed>,paths:array<string,string>}|null */
private ?array $artifact = null;
@@ -85,6 +85,16 @@ final class StandaloneRuntime
}
}
if (! $allowMissing) {
if ($this->requested('standalone-sales')) {
foreach (['ReceivablesSchema' => ['CONTRACT', 'COMMON-RECEIVABLES-v1'],
'ConfiguredSales' => ['CONTRACT', 'COMMON-LEDGER-CONFIGURED-SALES-v1'],
'CustomerInvoiceMath' => ['POLICY', 'COMMON-CUSTOMER-LINE-AMOUNTS-v1']] as $type => [$constant, $value]) {
$class = 'Tempo\\Finance\\GeneralLedger\\'.$type;
if (! class_exists($class, false) || (new \ReflectionClass($class))->getConstant($constant) !== $value) {
throw new LogicException('COMPRAS_RUNTIME_CUSTOMER_CONTRACT');
}
}
}
if ($this->requested('finance-configuration')) {
$configuration = 'Tempo\\Finance\\GeneralLedger\\LedgerConfiguration';
if (! class_exists($configuration, false) || (new \ReflectionClass($configuration))->getConstant('VERSION') !== 'COMMON-FINANCE-CONFIGURATION-v1') {