<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Cashback/calcCashback.twig */
class __TwigTemplate_3474dd3549980c8dd40f6b11619f65f936ffdd60b266a86b5079f862fe7e45c1 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cashback/calcCashback.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cashback/calcCashback.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "Cashback/calcCashback.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 13
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 14
echo " <style type=\"text/css\">
table td {
border:1px solid #ccc;
padding:5px;
font-size:12px;
}
.c-static-page-header {
height:auto;
}
.ec-layoutRole__contents, .ec-role {
max-width: inherit;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 29
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 30
echo "<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("キャッシュバック 計算"), "html", null, true);
echo "</h1>
</div>
<div class=\"c-static-page-header\">
";
// line 35
if ((isset($context["Error"]) || array_key_exists("Error", $context) ? $context["Error"] : (function () { throw new RuntimeError('Variable "Error" does not exist.', 35, $this->source); })())) {
// line 36
echo " <h1 class=\"c-static-page-header__title c-static-error\">";
echo twig_escape_filter($this->env, (isset($context["Error"]) || array_key_exists("Error", $context) ? $context["Error"] : (function () { throw new RuntimeError('Variable "Error" does not exist.', 36, $this->source); })()), "html", null, true);
echo "</h1>
";
} else {
// line 38
echo " ";
if ((isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 38, $this->source); })())) {
// line 39
echo " <strong>販売店契約、応援プログラム向けマージン</strong>
";
// line 40
if (twig_get_attribute($this->env, $this->source, (isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 40, $this->source); })()), "MarginList", [], "any", false, false, false, 40)) {
// line 41
echo " <table>
<tr>
<td>契約区分</td>
<td>販売店ID</td>
<td>販売店名</td>
<td>証券番号</td>
<td>公式サイト受注金額</td>
<td>クーポンマージン</td>
<td>仕入れサイト受注金額(販売店)</td>
<td>仕入れサイト受注金額(応援)</td>
<td>仕入れサイト受注金額(小売店)</td>
<td>応援プログラム適用マージン</td>
<td>マージン合算</td>
</tr>
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 55, $this->source); })()), "MarginList", [], "any", false, false, false, 55));
foreach ($context['_seq'] as $context["_key"] => $context["MarginList"]) {
// line 56
echo " <tr>
<td>";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["MarginList"], "contract_type_name", [], "any", false, false, false, 57), "html", null, true);
echo "</td>
<td>";
// line 58
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["MarginList"], "id", [], "any", false, false, false, 58), "html", null, true);
echo "</td>
<td>";
// line 59
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["MarginList"], "company_name", [], "any", false, false, false, 59), "html", null, true);
echo "</td>
<td>";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["MarginList"], "stock_number", [], "any", false, false, false, 60), "html", null, true);
echo "</td>
<td>";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "coupon_total", [], "any", false, false, false, 61)), "html", null, true);
echo "</td>
<td>";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "coupon_margin", [], "any", false, false, false, 62)), "html", null, true);
echo "</td>
<td>";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "self_total", [], "any", false, false, false, 63)), "html", null, true);
echo "</td>
<td>";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "oen_self_total", [], "any", false, false, false, 64)), "html", null, true);
echo "</td>
<td>";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "kouri_self_total", [], "any", false, false, false, 65)), "html", null, true);
echo "</td>
<td>";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "support_total", [], "any", false, false, false, 66)), "html", null, true);
echo "</td>
<td>";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["MarginList"], "margin_total", [], "any", false, false, false, 67)), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['MarginList'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " </table>
";
} else {
// line 73
echo " データがありません
";
}
// line 75
echo " <br/>
<strong>ディーラー向けマージン</strong>
";
// line 77
if (twig_get_attribute($this->env, $this->source, (isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 77, $this->source); })()), "DealerList", [], "any", false, false, false, 77)) {
// line 78
echo " <table>
<tr>
<td>契約区分</td>
<td>販売店ID</td>
<td>ディーラー</td>
<td>販売店名</td>
<td>証券番号</td>
<td>公式サイト受注金額</td>
<td>通販売上マージン</td>
<td>仕入れサイト受注金額(販売店)</td>
<td>仕入れサイト受注金額(応援)</td>
<td>仕入れサイト受注金額(小売店)</td>
<td>店舗売上マージン</td>
<td>マージン合算</td>
</tr>
";
// line 93
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 93, $this->source); })()), "DealerList", [], "any", false, false, false, 93));
foreach ($context['_seq'] as $context["_key"] => $context["DealerList"]) {
// line 94
echo " <tr>
<td>";
// line 95
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["DealerList"], "contract_type_name", [], "any", false, false, false, 95), "html", null, true);
echo "</td>
<td>";
// line 96
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["DealerList"], "id", [], "any", false, false, false, 96), "html", null, true);
echo "</td>
<td>";
// line 97
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["DealerList"], "dealer_code", [], "any", false, false, false, 97), "html", null, true);
echo "</td>
<td>";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["DealerList"], "company_name", [], "any", false, false, false, 98), "html", null, true);
echo "</td>
<td>";
// line 99
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["DealerList"], "stock_number", [], "any", false, false, false, 99), "html", null, true);
echo "</td>
<td>";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "sales_total", [], "any", false, false, false, 100)), "html", null, true);
echo "</td>
<td>";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "sales_margin", [], "any", false, false, false, 101)), "html", null, true);
echo "</td>
<td>";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "self_total", [], "any", false, false, false, 102)), "html", null, true);
echo "</td>
<td>";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "oen_self_total", [], "any", false, false, false, 103)), "html", null, true);
echo "</td>
<td>";
// line 104
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "kouri_self_total", [], "any", false, false, false, 104)), "html", null, true);
echo "</td>
<td>";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "chain_total", [], "any", false, false, false, 105)), "html", null, true);
echo "</td>
<td>";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["DealerList"], "margin_total", [], "any", false, false, false, 106)), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['DealerList'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
echo " </table>
";
} else {
// line 112
echo " データがありません
";
}
// line 114
echo " <br/>
<strong>マージンデータ出力</strong>
";
// line 116
if (twig_get_attribute($this->env, $this->source, (isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 116, $this->source); })()), "Cashback", [], "any", false, false, false, 116)) {
// line 117
echo " <table>
<tr>
<td>対象月</td>
<td>契約区分</td>
<td>販売店ID</td>
<td>ディーラー</td>
<td>販売店名</td>
<td>証券番号</td>
<td>マージン</td>
<td>前月繰り越しマージン</td>
<td>クーポンマージン</td>
<td>応援プログラム適用マージン</td>
<td>仕入れ金額</td>
<td>請求金額</td>
<td>マージン残高</td>
<td>繰り越しマージン</td>
<td>出力結果</td>
</tr>
";
// line 135
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["CashbackResult"]) || array_key_exists("CashbackResult", $context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.', 135, $this->source); })()), "Cashback", [], "any", false, false, false, 135));
foreach ($context['_seq'] as $context["_key"] => $context["Cashback"]) {
// line 136
echo " <tr>
<td>";
// line 137
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Cashback"], "referenceYm", [], "any", false, false, false, 137), "html", null, true);
echo "</td>
";
// line 138
if (twig_get_attribute($this->env, $this->source, $context["Cashback"], "ChainStore", [], "any", false, false, false, 138)) {
// line 139
echo " <td>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Cashback"], "ChainStore", [], "any", false, false, false, 139), "ContractType", [], "any", false, false, false, 139), "name", [], "any", false, false, false, 139), "html", null, true);
echo "</td>
<td>";
// line 140
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Cashback"], "ChainStore", [], "any", false, false, false, 140), "id", [], "any", false, false, false, 140), "html", null, true);
echo "</td>
<td>";
// line 141
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Cashback"], "ChainStore", [], "any", false, false, false, 141), "dealer_code", [], "any", false, false, false, 141), "html", null, true);
echo "</td>
<td>";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Cashback"], "ChainStore", [], "any", false, false, false, 142), "company_name", [], "any", false, false, false, 142), "html", null, true);
echo "</td>
<td>";
// line 143
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Cashback"], "ChainStore", [], "any", false, false, false, 143), "stock_number", [], "any", false, false, false, 143), "html", null, true);
echo "</td>
";
} else {
// line 145
echo " <td> </td>
<td> </td>
<td> </td>
<td>未登録</td>
<td> </td>
";
}
// line 151
echo " <td>";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "margin_price", [], "any", false, false, false, 151)), "html", null, true);
echo "</td>
<td>";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "previous_margin_price", [], "any", false, false, false, 152)), "html", null, true);
echo "</td>
<td>";
// line 153
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "coupon_margin", [], "any", false, false, false, 153)), "html", null, true);
echo "</td>
<td>";
// line 154
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "oen_support_total", [], "any", false, false, false, 154)), "html", null, true);
echo "</td>
<td>";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "purchase_amount", [], "any", false, false, false, 155)), "html", null, true);
echo "</td>
<td>";
// line 156
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "request_amount", [], "any", false, false, false, 156)), "html", null, true);
echo "</td>
<td>";
// line 157
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "margin_balance", [], "any", false, false, false, 157)), "html", null, true);
echo "</td>
<td>";
// line 158
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cashback"], "carried_forward", [], "any", false, false, false, 158)), "html", null, true);
echo "</td>
<td>";
// line 159
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Cashback"], "export_cnt", [], "any", false, false, false, 159), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Cashback'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 163
echo " </table>
";
} else {
// line 165
echo " データがありません
";
}
// line 167
echo " <br /><br /><br /><br />
";
} else {
// line 169
echo " <h1 class=\"c-static-page-header__title c-static-error\">キャッシュバック計算結果が見つかりません</h1>
";
}
// line 171
echo " ";
}
// line 172
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Cashback/calcCashback.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 432 => 172, 429 => 171, 425 => 169, 421 => 167, 417 => 165, 413 => 163, 403 => 159, 399 => 158, 395 => 157, 391 => 156, 387 => 155, 383 => 154, 379 => 153, 375 => 152, 370 => 151, 362 => 145, 357 => 143, 353 => 142, 349 => 141, 345 => 140, 340 => 139, 338 => 138, 334 => 137, 331 => 136, 327 => 135, 307 => 117, 305 => 116, 301 => 114, 297 => 112, 293 => 110, 283 => 106, 279 => 105, 275 => 104, 271 => 103, 267 => 102, 263 => 101, 259 => 100, 255 => 99, 251 => 98, 247 => 97, 243 => 96, 239 => 95, 236 => 94, 232 => 93, 215 => 78, 213 => 77, 209 => 75, 205 => 73, 201 => 71, 191 => 67, 187 => 66, 183 => 65, 179 => 64, 175 => 63, 171 => 62, 167 => 61, 163 => 60, 159 => 59, 155 => 58, 151 => 57, 148 => 56, 144 => 55, 128 => 41, 126 => 40, 123 => 39, 120 => 38, 114 => 36, 112 => 35, 106 => 32, 102 => 30, 92 => 29, 69 => 14, 59 => 13, 36 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% block stylesheet %}
<style type=\"text/css\">
table td {
border:1px solid #ccc;
padding:5px;
font-size:12px;
}
.c-static-page-header {
height:auto;
}
.ec-layoutRole__contents, .ec-role {
max-width: inherit;
}
</style>
{% endblock %}
{% block main %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>{{ 'キャッシュバック 計算'|trans }}</h1>
</div>
<div class=\"c-static-page-header\">
{% if Error %}
<h1 class=\"c-static-page-header__title c-static-error\">{{Error}}</h1>
{% else %}
{% if CashbackResult %}
<strong>販売店契約、応援プログラム向けマージン</strong>
{% if CashbackResult.MarginList %}
<table>
<tr>
<td>契約区分</td>
<td>販売店ID</td>
<td>販売店名</td>
<td>証券番号</td>
<td>公式サイト受注金額</td>
<td>クーポンマージン</td>
<td>仕入れサイト受注金額(販売店)</td>
<td>仕入れサイト受注金額(応援)</td>
<td>仕入れサイト受注金額(小売店)</td>
<td>応援プログラム適用マージン</td>
<td>マージン合算</td>
</tr>
{% for MarginList in CashbackResult.MarginList %}
<tr>
<td>{{MarginList.contract_type_name}}</td>
<td>{{MarginList.id}}</td>
<td>{{MarginList.company_name}}</td>
<td>{{MarginList.stock_number}}</td>
<td>{{MarginList.coupon_total| price }}</td>
<td>{{MarginList.coupon_margin| price }}</td>
<td>{{MarginList.self_total| price }}</td>
<td>{{MarginList.oen_self_total| price }}</td>
<td>{{MarginList.kouri_self_total| price }}</td>
<td>{{MarginList.support_total| price }}</td>
<td>{{MarginList.margin_total| price }}</td>
</tr>
{% endfor %}
</table>
{% else %}
データがありません
{% endif %}
<br/>
<strong>ディーラー向けマージン</strong>
{% if CashbackResult.DealerList %}
<table>
<tr>
<td>契約区分</td>
<td>販売店ID</td>
<td>ディーラー</td>
<td>販売店名</td>
<td>証券番号</td>
<td>公式サイト受注金額</td>
<td>通販売上マージン</td>
<td>仕入れサイト受注金額(販売店)</td>
<td>仕入れサイト受注金額(応援)</td>
<td>仕入れサイト受注金額(小売店)</td>
<td>店舗売上マージン</td>
<td>マージン合算</td>
</tr>
{% for DealerList in CashbackResult.DealerList %}
<tr>
<td>{{DealerList.contract_type_name}}</td>
<td>{{DealerList.id}}</td>
<td>{{DealerList.dealer_code}}</td>
<td>{{DealerList.company_name}}</td>
<td>{{DealerList.stock_number}}</td>
<td>{{DealerList.sales_total| price }}</td>
<td>{{DealerList.sales_margin| price }}</td>
<td>{{DealerList.self_total| price }}</td>
<td>{{DealerList.oen_self_total| price }}</td>
<td>{{DealerList.kouri_self_total| price }}</td>
<td>{{DealerList.chain_total| price }}</td>
<td>{{DealerList.margin_total| price }}</td>
</tr>
{% endfor %}
</table>
{% else %}
データがありません
{% endif %}
<br/>
<strong>マージンデータ出力</strong>
{% if CashbackResult.Cashback %}
<table>
<tr>
<td>対象月</td>
<td>契約区分</td>
<td>販売店ID</td>
<td>ディーラー</td>
<td>販売店名</td>
<td>証券番号</td>
<td>マージン</td>
<td>前月繰り越しマージン</td>
<td>クーポンマージン</td>
<td>応援プログラム適用マージン</td>
<td>仕入れ金額</td>
<td>請求金額</td>
<td>マージン残高</td>
<td>繰り越しマージン</td>
<td>出力結果</td>
</tr>
{% for Cashback in CashbackResult.Cashback %}
<tr>
<td>{{Cashback.referenceYm}}</td>
{% if Cashback.ChainStore %}
<td>{{Cashback.ChainStore.ContractType.name}}</td>
<td>{{Cashback.ChainStore.id}}</td>
<td>{{Cashback.ChainStore.dealer_code}}</td>
<td>{{Cashback.ChainStore.company_name}}</td>
<td>{{Cashback.ChainStore.stock_number}}</td>
{% else %}
<td> </td>
<td> </td>
<td> </td>
<td>未登録</td>
<td> </td>
{% endif %}
<td>{{Cashback.margin_price| price }}</td>
<td>{{Cashback.previous_margin_price| price }}</td>
<td>{{Cashback.coupon_margin| price }}</td>
<td>{{Cashback.oen_support_total| price }}</td>
<td>{{Cashback.purchase_amount| price }}</td>
<td>{{Cashback.request_amount| price }}</td>
<td>{{Cashback.margin_balance| price }}</td>
<td>{{Cashback.carried_forward| price }}</td>
<td>{{Cashback.export_cnt }}</td>
</tr>
{% endfor %}
</table>
{% else %}
データがありません
{% endif %}
<br /><br /><br /><br />
{% else %}
<h1 class=\"c-static-page-header__title c-static-error\">キャッシュバック計算結果が見つかりません</h1>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}
", "Cashback/calcCashback.twig", "/home/offshore2022/test-darcys-factory.xyz/public_html/app/template/default/Cashback/calcCashback.twig");
}
}