diff --git a/Layout/default/Contract/LinkTable.php b/Layout/default/Contract/LinkTable.php new file mode 100644 index 000000000..04ec1823f --- /dev/null +++ b/Layout/default/Contract/LinkTable.php @@ -0,0 +1,78 @@ + + +
| Typ | +Kunde | +Contract ID | +Produkt | +Preis | +Preis Setup | +Bestelldatum | +Fertigstellung | +Kündigung | ++ |
|---|---|---|---|---|---|---|---|---|---|
| ">= __($link->type, "contract") ?> = ($link->type != "link") ? $direction : "" ?> | ++ $linkcontract->owner_id]) ?>">= $linkcontract->owner->getCompanyOrName() ?> + | += (!$linkcontract->isFinished()) ? "not-finished" : "" ?>"> + $linkcontract->id]) ?>">= $linkcontract->id ?> | + += (!$linkcontract->isFinished()) ? "not-finished" : "" ?>"> + $linkcontract->id]) ?>">= $linkcontract->product_name ?> + [= $linkcontract->matchcode ?>] | += (!$linkcontract->isFinished()) ? "not-finished" : "" ?> = ($linkcontract->price < 0) ? "text-danger" : "" ?>"> + € = number_format($linkcontract->price, 4, ",", ".") ?> | += (!$linkcontract->isFinished()) ? "not-finished" : "" ?> = ($linkcontract->price_setup < 0) ? "text-danger" : "" ?>"> + € = number_format($linkcontract->price_setup, 4, ",", ".") ?> | += (!$linkcontract->isFinished()) ? "not-finished" : "" ?>">= ($linkcontract->order_date) ? date('d.m.Y', $linkcontract->order_date) : "" ?> | += (!$linkcontract->isFinished()) ? "not-finished" : "" ?>">= ($linkcontract->finish_date) ? date('d.m.Y', $linkcontract->finish_date) : "" ?> | += (!$linkcontract->isFinished()) ? "not-finished" : "" ?> = ($linkcontract->cancel_date) ? "text-danger font-weight-bold" : "" ?>">= ($linkcontract->cancel_date) ? date('d.m.Y', $linkcontract->cancel_date) : "" ?> | ++ $link->id]) ?>" + onclick="if(!confirm('Verknüpfung wirklich entfernen?')) return false;" class="text-danger" title="Verknüpfung entfernen"> + | +
| Matchcode: | -=$contract->matchcode?> | -
|---|---|
| Upgrade von: | -
- upgradeFrom as $link): ?>
- $link->origin_contract_id])?>" class="contract-link =($link->origin->cancel_date && $link->origin->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->origin->product_name?> [=$link->origin->matchcode?>] (=$link->origin_contract_id?>) - - |
-
| Upgrade auf: | -
- upgradeTo as $link): ?>
- $link->contract_id])?>" class="contract-link =($link->contract->cancel_date && $link->contract->cancel_date <= date('U')) ? "canceled" : ""?> =(!$link->contract->isFinished()) ? "not-finished" : "" ?>">=$link->contract->product_name?> [=$link->contract->matchcode?>] (=$link->contract_id?>) - - |
-
| Downgrade von: | -
- downgradeFrom as $link): ?>
- $link->origin_contract_id])?>" class="contract-link =($link->origin->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->origin->product_name?> [=$link->origin->matchcode?>] (=$link->origin_contract_id?>) - - |
-
| Downgrade auf: | -
- downgradeTo as $link): ?>
- $link->contract_id])?>" class="contract-link =($link->contract->cancel_date && $link->contract->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->contract->product_name?> [=$link->contract->matchcode?>] (=$link->contract_id?>) - - |
-
| Produktwechsel von: | -
- productchangeFrom as $link): ?>
- $link->origin_contract_id])?>" class="contract-link =($link->origin->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->origin->product_name?> [=$link->origin->matchcode?>] (=$link->origin_contract_id?>) - - |
-
| Produktwechsel auf: | -
- productchangeTo as $link): ?>
- $link->contract_id])?>" class="contract-link =($link->contract->cancel_date && $link->contract->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->contract->product_name?> [=$link->contract->matchcode?>] (=$link->contract_id?>) - - |
-
| Umzug von: | -
- relocationFrom as $link): ?>
- $link->origin_contract_id])?>" class="contract-link =($link->origin->cancel_date && $link->origin->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->origin->product_name?> [=$link->origin->matchcode?>] (=$link->origin_contract_id?>) - - |
-
| Umzug auf: | -
- relocationTo as $link): ?>
- $link->contract_id])?>" class="contract-link =($link->contract->cancel_date && $link->contract->cancel_date <= date('U')) ? "canceled" : ""?>">=$link->contract->product_name?> [=$link->contract->matchcode?>] (=$link->contract_id?>) - - |
-
| Vertragsinhaber: | -$contract->owner_id])?>">=$contract->owner->getCompanyOrName()?> [=$contract->owner->customer_number?>] | -
| Rechnungsempfänger: | -$contract->billingaddress_id])?>">=$contract->billingaddress->getCompanyOrName()?> [=$contract->billingaddress->customer_number?>] | -
| Produkt: | -=$contract->product_name?> [=$contract->product_id?>]=($contract->product_name != $contract->product->name) ? " (".$contract->product->name.")" : ""?> | -
| Produkt Info: | -=$contract->product_info?> | -
| SLA: | -=$contract->sla->name?> | -
| Externes Produkt: | -=($contract->product_external) ? "Ja" : "Nein"?> | -
| Menge: | -=(float)number_format($contract->amount, 3, ",", ".")?> | -
| Preis Periodisch Netto: | -">€ =number_format(($contract->amount != 1) ? $contract->price * $contract->amount : $contract->price, 4, ",", ".")?> | -
| Preis Periodisch Brutto: | -">€ - price && $contract->vatrate): ?> - amount != 1): ?> - =number_format($contract->price + ($contract->price / 100) * $contract->vatrate, 4, ",", ".")?> - - =number_format(($contract->price + ($contract->price / 100) * $contract->vatrate) * $contract->amount, 4, ",", ".")?> - - - | -
| Verrechnungsperiode: | -- =__($contract->billing_period, "billing_period")?> - | -
| Herstellungskosten: | -">
- price_setup > 0): ?>
- Netto: € =number_format($contract->price_setup, 4, ",", ".")?>=($contract->amount != 1) ? " (Gesamt: € ".number_format($contract->price_setup * $contract->amount, 4, ",", ".").")" : ""?> - Brutto: € =($contract->price_setup && $contract->vatrate) ? number_format($contract->price_setup + ($contract->price_setup / 100) * $contract->vatrate, 4, ",", ".") : ""?>=($contract->price_setup && $contract->vatrate && $contract->amount != 1) ? " (Gesamt: € ".number_format(($contract->price_setup + ($contract->price_setup / 100) * $contract->vatrate) * $contract->amount, 4, ",", ".").")" : ""?> |
-
-
| Verrechnungsstart Verzögerung: | -- billing_delay): ?> - =$contract->billing_delay?> Monate - - | -
| - | - |
| Bestelldatum: | -=($contract->order_date) ? date('d.m.Y',$contract->order_date) : ""?> | -
| Fertigstellungsdatum: | -- =($contract->finish_date) ? date('d.m.Y',$contract->finish_date) : ""?> - =($contract->finish_date_by) ? "(".$contract->finisher->name.")" : ""?> - | -
| Kündigungsdatum: | -"> - =($contract->cancel_date) ? date('d.m.Y',$contract->cancel_date) : ""?> - =($contract->cancel_date_by) ? "(".$contract->canceler->name.")" : ""?> - | -
| - | - |
| Erstellt: | -=date('d.m.Y H:i:s',$contract->create)?> (=$contract->creator->name?>) | -
| Zuletzt bearbeitet: | -=date('d.m.Y H:i:s',$contract->edit)?> (=$contract->editor->name?>) | -
| - $contract->id])?>"> - $contract->id])?>"> - finish_date && $contract->finish_date < date('U')): ?> - - $contract->id])?>"> - $contract->id])?>"> - finish_date): ?> - $contract->id])?>" onclick="if(!confirm('Jetzt fertigstellen und in Verrechnung geben?')) return false"> - - | -|
| =date("d.m.Y H:i", $j->create)?> (=$j->creator?>) | - - type == "text" || $j->type == "phone"):?> -- type == "text"): ?> - - - - - | - text) > 120): ?> -- =self::strtrim(str_replace(["\n", "\r", "\t"]," ", $j->text), 120)?> - =nl2br($j->text)?> - | - -- =str_replace(["\n", "\r", "\t"]," ", $j->text)?> - | - - - - type == "file"): ?> -- |
- text): ?>
- =self::strtrim(str_replace(["\n", "\r", "\t"]," ", $j->text), 128)?> - - $j->contractfile->file_id])?>">=$j->contractfile->name?> - |
-
- type == "created_from"): ?>
- - | - value == "manual"): ?> - Vertrag manuell erstellt - value == "import"): ?> - Vertrag importiert: =nl2br(htmlentities($j->text))?> - value == "order"): ?> - Vertrag aus Bestellung $contract->orderproduct->order_id])?>">#=$contract->orderproduct->order_id?> erstellt - value == "productchange"): ?> - Vertrag erstellt: =nl2br(htmlentities($j->text))?> - - | - type == "contract_finished"): ?> -- | Vertag fertiggestellt - - | - type == "credit_created"): ?> -- | Gutschrift-Vertrag $j->value])?>">=$j->value?> erstellt - - | - type == "link"): ?> - value); ?> -- | Verknüpfung mit $link->id])?>">=$link->id?> - =$link->product_name?> [=$link->matchcode?>] erstellt | - type == "canceled"): ?> -- | Vertag gekündigt | - -- $j->id])?>" title="Journaleintrag bearbeiten"> - | -
| - - - | -||||||||||||||||
| Typ | -Kunde | -Contract ID | -Produkt | -Preis | -Preis Setup | -Bestelldatum | -Fertigstellung | -Kündigung | -- |
|---|---|---|---|---|---|---|---|---|---|
| ">=__($link->type, "contract")?> =($link->type != "link") ? $direction : ""?> | -$linkcontract->owner_id])?>">=$linkcontract->owner->getCompanyOrName()?> | -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?>"> $linkcontract->id])?>">=$linkcontract->id?> | - -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?>"> $linkcontract->id])?>">=$linkcontract->product_name?> [=$linkcontract->matchcode?>] | -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?> =($linkcontract->price < 0) ? "text-danger" : ""?>">€ =number_format($linkcontract->price,4,",",".")?> | -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?> =($linkcontract->price_setup < 0) ? "text-danger" : ""?>">€ =number_format($linkcontract->price_setup,4,",",".")?> | -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?>">=($linkcontract->order_date) ? date('d.m.Y', $linkcontract->order_date) : ""?> | -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?>">=($linkcontract->finish_date) ? date('d.m.Y', $linkcontract->finish_date) : ""?> | -=(!$linkcontract->isFinished()) ? "not-finished" : "" ?> =($linkcontract->cancel_date) ? "text-danger font-weight-bold" : ""?>">=($linkcontract->cancel_date) ? date('d.m.Y', $linkcontract->cancel_date) : ""?> | -- $link->id])?>" onclick="if(!confirm('Verknüpfung wirklich entfernen?')) return false;" class="text-danger" title="Verknüpfung entfernen"> - | -
| + | + + {{item.value}} + + + {{item.value}} + + | +