var/cache/dev/twig/c5/c583f7eb9221065a9ba51db2326f197ead66711aa42de68a60470b98d7ed841e.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Cashback/calcCashback.twig */
  14. class __TwigTemplate_3474dd3549980c8dd40f6b11619f65f936ffdd60b266a86b5079f862fe7e45c1 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cashback/calcCashback.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Cashback/calcCashback.twig"));
  39.         $this->parent $this->loadTemplate("default_frame.twig""Cashback/calcCashback.twig"11);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 13
  47.     public function block_stylesheet($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  54.         // line 14
  55.         echo "    <style type=\"text/css\">
  56.         table td {
  57.             border:1px solid #ccc;
  58.             padding:5px;
  59.             font-size:12px;
  60.         }
  61.         .c-static-page-header {
  62.             height:auto;
  63.         }
  64.         .ec-layoutRole__contents, .ec-role {
  65.             max-width: inherit;
  66.         }
  67.     </style>
  68. ";
  69.         
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  71.         
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  73.     }
  74.     // line 29
  75.     public function block_main($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  82.         // line 30
  83.         echo "<div class=\"ec-role\">
  84.     <div class=\"ec-pageHeader\">
  85.         <h1>";
  86.         // line 32
  87.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("キャッシュバック 計算"), "html"nulltrue);
  88.         echo "</h1>
  89.     </div>
  90.     <div class=\"c-static-page-header\">
  91.         ";
  92.         // line 35
  93.         if ((isset($context["Error"]) || array_key_exists("Error"$context) ? $context["Error"] : (function () { throw new RuntimeError('Variable "Error" does not exist.'35$this->source); })())) {
  94.             // line 36
  95.             echo "            <h1 class=\"c-static-page-header__title c-static-error\">";
  96.             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"nulltrue);
  97.             echo "</h1>
  98.         ";
  99.         } else {
  100.             // line 38
  101.             echo "            ";
  102.             if ((isset($context["CashbackResult"]) || array_key_exists("CashbackResult"$context) ? $context["CashbackResult"] : (function () { throw new RuntimeError('Variable "CashbackResult" does not exist.'38$this->source); })())) {
  103.                 // line 39
  104.                 echo "                <strong>販売店契約、応援プログラム向けマージン</strong>
  105.                 ";
  106.                 // line 40
  107.                 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"falsefalsefalse40)) {
  108.                     // line 41
  109.                     echo "                    <table>
  110.                     <tr>
  111.                         <td>契約区分</td>
  112.                         <td>販売店ID</td>
  113.                         <td>販売店名</td>
  114.                         <td>証券番号</td>
  115.                         <td>公式サイト受注金額</td>
  116.                         <td>クーポンマージン</td>
  117.                         <td>仕入れサイト受注金額(販売店)</td>
  118.                         <td>仕入れサイト受注金額(応援)</td>
  119.                         <td>仕入れサイト受注金額(小売店)</td>
  120.                         <td>応援プログラム適用マージン</td>
  121.                         <td>マージン合算</td>
  122.                     </tr>
  123.                     ";
  124.                     // line 55
  125.                     $context['_parent'] = $context;
  126.                     $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"falsefalsefalse55));
  127.                     foreach ($context['_seq'] as $context["_key"] => $context["MarginList"]) {
  128.                         // line 56
  129.                         echo "                        <tr>
  130.                             <td>";
  131.                         // line 57
  132.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["MarginList"], "contract_type_name", [], "any"falsefalsefalse57), "html"nulltrue);
  133.                         echo "</td>
  134.                             <td>";
  135.                         // line 58
  136.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["MarginList"], "id", [], "any"falsefalsefalse58), "html"nulltrue);
  137.                         echo "</td>
  138.                             <td>";
  139.                         // line 59
  140.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["MarginList"], "company_name", [], "any"falsefalsefalse59), "html"nulltrue);
  141.                         echo "</td>
  142.                             <td>";
  143.                         // line 60
  144.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["MarginList"], "stock_number", [], "any"falsefalsefalse60), "html"nulltrue);
  145.                         echo "</td>
  146.                             <td>";
  147.                         // line 61
  148.                         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"falsefalsefalse61)), "html"nulltrue);
  149.                         echo "</td>
  150.                             <td>";
  151.                         // line 62
  152.                         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"falsefalsefalse62)), "html"nulltrue);
  153.                         echo "</td>
  154.                             <td>";
  155.                         // line 63
  156.                         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"falsefalsefalse63)), "html"nulltrue);
  157.                         echo "</td>
  158.                             <td>";
  159.                         // line 64
  160.                         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"falsefalsefalse64)), "html"nulltrue);
  161.                         echo "</td>
  162.                             <td>";
  163.                         // line 65
  164.                         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"falsefalsefalse65)), "html"nulltrue);
  165.                         echo "</td>
  166.                             <td>";
  167.                         // line 66
  168.                         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"falsefalsefalse66)), "html"nulltrue);
  169.                         echo "</td>
  170.                             <td>";
  171.                         // line 67
  172.                         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"falsefalsefalse67)), "html"nulltrue);
  173.                         echo "</td>
  174.                         </tr>
  175.                     ";
  176.                     }
  177.                     $_parent $context['_parent'];
  178.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['MarginList'], $context['_parent'], $context['loop']);
  179.                     $context array_intersect_key($context$_parent) + $_parent;
  180.                     // line 71
  181.                     echo "                    </table>
  182.                 ";
  183.                 } else {
  184.                     // line 73
  185.                     echo "                    データがありません
  186.                 ";
  187.                 }
  188.                 // line 75
  189.                 echo "                <br/>
  190.                 <strong>ディーラー向けマージン</strong>
  191.                 ";
  192.                 // line 77
  193.                 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"falsefalsefalse77)) {
  194.                     // line 78
  195.                     echo "                    <table>
  196.                     <tr>
  197.                         <td>契約区分</td>
  198.                         <td>販売店ID</td>
  199.                         <td>ディーラー</td>
  200.                         <td>販売店名</td>
  201.                         <td>証券番号</td>
  202.                         <td>公式サイト受注金額</td>
  203.                         <td>通販売上マージン</td>
  204.                         <td>仕入れサイト受注金額(販売店)</td>
  205.                         <td>仕入れサイト受注金額(応援)</td>
  206.                         <td>仕入れサイト受注金額(小売店)</td>
  207.                         <td>店舗売上マージン</td>
  208.                         <td>マージン合算</td>
  209.                     </tr>
  210.                     ";
  211.                     // line 93
  212.                     $context['_parent'] = $context;
  213.                     $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"falsefalsefalse93));
  214.                     foreach ($context['_seq'] as $context["_key"] => $context["DealerList"]) {
  215.                         // line 94
  216.                         echo "                        <tr>
  217.                             <td>";
  218.                         // line 95
  219.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["DealerList"], "contract_type_name", [], "any"falsefalsefalse95), "html"nulltrue);
  220.                         echo "</td>
  221.                             <td>";
  222.                         // line 96
  223.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["DealerList"], "id", [], "any"falsefalsefalse96), "html"nulltrue);
  224.                         echo "</td>
  225.                             <td>";
  226.                         // line 97
  227.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["DealerList"], "dealer_code", [], "any"falsefalsefalse97), "html"nulltrue);
  228.                         echo "</td>
  229.                             <td>";
  230.                         // line 98
  231.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["DealerList"], "company_name", [], "any"falsefalsefalse98), "html"nulltrue);
  232.                         echo "</td>
  233.                             <td>";
  234.                         // line 99
  235.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["DealerList"], "stock_number", [], "any"falsefalsefalse99), "html"nulltrue);
  236.                         echo "</td>
  237.                             <td>";
  238.                         // line 100
  239.                         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"falsefalsefalse100)), "html"nulltrue);
  240.                         echo "</td>
  241.                             <td>";
  242.                         // line 101
  243.                         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"falsefalsefalse101)), "html"nulltrue);
  244.                         echo "</td>
  245.                             <td>";
  246.                         // line 102
  247.                         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"falsefalsefalse102)), "html"nulltrue);
  248.                         echo "</td>
  249.                             <td>";
  250.                         // line 103
  251.                         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"falsefalsefalse103)), "html"nulltrue);
  252.                         echo "</td>
  253.                             <td>";
  254.                         // line 104
  255.                         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"falsefalsefalse104)), "html"nulltrue);
  256.                         echo "</td>
  257.                             <td>";
  258.                         // line 105
  259.                         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"falsefalsefalse105)), "html"nulltrue);
  260.                         echo "</td>
  261.                             <td>";
  262.                         // line 106
  263.                         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"falsefalsefalse106)), "html"nulltrue);
  264.                         echo "</td>
  265.                         </tr>
  266.                     ";
  267.                     }
  268.                     $_parent $context['_parent'];
  269.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['DealerList'], $context['_parent'], $context['loop']);
  270.                     $context array_intersect_key($context$_parent) + $_parent;
  271.                     // line 110
  272.                     echo "                    </table>
  273.                 ";
  274.                 } else {
  275.                     // line 112
  276.                     echo "                    データがありません
  277.                 ";
  278.                 }
  279.                 // line 114
  280.                 echo "                <br/>
  281.                 <strong>マージンデータ出力</strong>
  282.                 ";
  283.                 // line 116
  284.                 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"falsefalsefalse116)) {
  285.                     // line 117
  286.                     echo "                    <table>
  287.                     <tr>
  288.                         <td>対象月</td>
  289.                         <td>契約区分</td>
  290.                         <td>販売店ID</td>
  291.                         <td>ディーラー</td>
  292.                         <td>販売店名</td>
  293.                         <td>証券番号</td>
  294.                         <td>マージン</td>
  295.                         <td>前月繰り越しマージン</td>
  296.                         <td>クーポンマージン</td>
  297.                         <td>応援プログラム適用マージン</td>
  298.                         <td>仕入れ金額</td>
  299.                         <td>請求金額</td>
  300.                         <td>マージン残高</td>
  301.                         <td>繰り越しマージン</td>
  302.                         <td>出力結果</td>
  303.                     </tr>
  304.                     ";
  305.                     // line 135
  306.                     $context['_parent'] = $context;
  307.                     $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"falsefalsefalse135));
  308.                     foreach ($context['_seq'] as $context["_key"] => $context["Cashback"]) {
  309.                         // line 136
  310.                         echo "                        <tr>
  311.                             <td>";
  312.                         // line 137
  313.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Cashback"], "referenceYm", [], "any"falsefalsefalse137), "html"nulltrue);
  314.                         echo "</td>
  315.                             ";
  316.                         // line 138
  317.                         if (twig_get_attribute($this->env$this->source$context["Cashback"], "ChainStore", [], "any"falsefalsefalse138)) {
  318.                             // line 139
  319.                             echo "                                <td>";
  320.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Cashback"], "ChainStore", [], "any"falsefalsefalse139), "ContractType", [], "any"falsefalsefalse139), "name", [], "any"falsefalsefalse139), "html"nulltrue);
  321.                             echo "</td>
  322.                                 <td>";
  323.                             // line 140
  324.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Cashback"], "ChainStore", [], "any"falsefalsefalse140), "id", [], "any"falsefalsefalse140), "html"nulltrue);
  325.                             echo "</td>
  326.                                 <td>";
  327.                             // line 141
  328.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Cashback"], "ChainStore", [], "any"falsefalsefalse141), "dealer_code", [], "any"falsefalsefalse141), "html"nulltrue);
  329.                             echo "</td>
  330.                                 <td>";
  331.                             // line 142
  332.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Cashback"], "ChainStore", [], "any"falsefalsefalse142), "company_name", [], "any"falsefalsefalse142), "html"nulltrue);
  333.                             echo "</td>
  334.                                 <td>";
  335.                             // line 143
  336.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Cashback"], "ChainStore", [], "any"falsefalsefalse143), "stock_number", [], "any"falsefalsefalse143), "html"nulltrue);
  337.                             echo "</td>
  338.                             ";
  339.                         } else {
  340.                             // line 145
  341.                             echo "                                <td>&nbsp;</td>
  342.                                 <td>&nbsp;</td>
  343.                                 <td>&nbsp;</td>
  344.                                 <td>未登録</td>
  345.                                 <td>&nbsp;</td>
  346.                             ";
  347.                         }
  348.                         // line 151
  349.                         echo "                            <td>";
  350.                         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"falsefalsefalse151)), "html"nulltrue);
  351.                         echo "</td>
  352.                             <td>";
  353.                         // line 152
  354.                         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"falsefalsefalse152)), "html"nulltrue);
  355.                         echo "</td>
  356.                             <td>";
  357.                         // line 153
  358.                         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"falsefalsefalse153)), "html"nulltrue);
  359.                         echo "</td>
  360.                             <td>";
  361.                         // line 154
  362.                         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"falsefalsefalse154)), "html"nulltrue);
  363.                         echo "</td>
  364.                             <td>";
  365.                         // line 155
  366.                         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"falsefalsefalse155)), "html"nulltrue);
  367.                         echo "</td>
  368.                             <td>";
  369.                         // line 156
  370.                         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"falsefalsefalse156)), "html"nulltrue);
  371.                         echo "</td>
  372.                             <td>";
  373.                         // line 157
  374.                         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"falsefalsefalse157)), "html"nulltrue);
  375.                         echo "</td>
  376.                             <td>";
  377.                         // line 158
  378.                         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"falsefalsefalse158)), "html"nulltrue);
  379.                         echo "</td>
  380.                             <td>";
  381.                         // line 159
  382.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Cashback"], "export_cnt", [], "any"falsefalsefalse159), "html"nulltrue);
  383.                         echo "</td>
  384.                         </tr>
  385.                     ";
  386.                     }
  387.                     $_parent $context['_parent'];
  388.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Cashback'], $context['_parent'], $context['loop']);
  389.                     $context array_intersect_key($context$_parent) + $_parent;
  390.                     // line 163
  391.                     echo "                    </table>
  392.                 ";
  393.                 } else {
  394.                     // line 165
  395.                     echo "                    データがありません
  396.                 ";
  397.                 }
  398.                 // line 167
  399.                 echo "                <br /><br /><br /><br />
  400.             ";
  401.             } else {
  402.                 // line 169
  403.                 echo "                <h1 class=\"c-static-page-header__title c-static-error\">キャッシュバック計算結果が見つかりません</h1>
  404.             ";
  405.             }
  406.             // line 171
  407.             echo "        ";
  408.         }
  409.         // line 172
  410.         echo "    </div>
  411. </div>
  412. ";
  413.         
  414.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  415.         
  416.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  417.     }
  418.     public function getTemplateName()
  419.     {
  420.         return "Cashback/calcCashback.twig";
  421.     }
  422.     public function isTraitable()
  423.     {
  424.         return false;
  425.     }
  426.     public function getDebugInfo()
  427.     {
  428.         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,);
  429.     }
  430.     public function getSourceContext()
  431.     {
  432.         return new Source("{#
  433. This file is part of EC-CUBE
  434. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  435. http://www.ec-cube.co.jp/
  436. For the full copyright and license information, please view the LICENSE
  437. file that was distributed with this source code.
  438. #}
  439. {% extends 'default_frame.twig' %}
  440. {% block stylesheet %}
  441.     <style type=\"text/css\">
  442.         table td {
  443.             border:1px solid #ccc;
  444.             padding:5px;
  445.             font-size:12px;
  446.         }
  447.         .c-static-page-header {
  448.             height:auto;
  449.         }
  450.         .ec-layoutRole__contents, .ec-role {
  451.             max-width: inherit;
  452.         }
  453.     </style>
  454. {% endblock %}
  455. {% block main %}
  456. <div class=\"ec-role\">
  457.     <div class=\"ec-pageHeader\">
  458.         <h1>{{ 'キャッシュバック 計算'|trans }}</h1>
  459.     </div>
  460.     <div class=\"c-static-page-header\">
  461.         {% if Error %}
  462.             <h1 class=\"c-static-page-header__title c-static-error\">{{Error}}</h1>
  463.         {% else %}
  464.             {% if CashbackResult %}
  465.                 <strong>販売店契約、応援プログラム向けマージン</strong>
  466.                 {% if CashbackResult.MarginList %}
  467.                     <table>
  468.                     <tr>
  469.                         <td>契約区分</td>
  470.                         <td>販売店ID</td>
  471.                         <td>販売店名</td>
  472.                         <td>証券番号</td>
  473.                         <td>公式サイト受注金額</td>
  474.                         <td>クーポンマージン</td>
  475.                         <td>仕入れサイト受注金額(販売店)</td>
  476.                         <td>仕入れサイト受注金額(応援)</td>
  477.                         <td>仕入れサイト受注金額(小売店)</td>
  478.                         <td>応援プログラム適用マージン</td>
  479.                         <td>マージン合算</td>
  480.                     </tr>
  481.                     {% for MarginList in CashbackResult.MarginList %}
  482.                         <tr>
  483.                             <td>{{MarginList.contract_type_name}}</td>
  484.                             <td>{{MarginList.id}}</td>
  485.                             <td>{{MarginList.company_name}}</td>
  486.                             <td>{{MarginList.stock_number}}</td>
  487.                             <td>{{MarginList.coupon_total| price }}</td>
  488.                             <td>{{MarginList.coupon_margin| price }}</td>
  489.                             <td>{{MarginList.self_total| price }}</td>
  490.                             <td>{{MarginList.oen_self_total| price }}</td>
  491.                             <td>{{MarginList.kouri_self_total| price }}</td>
  492.                             <td>{{MarginList.support_total| price }}</td>
  493.                             <td>{{MarginList.margin_total| price }}</td>
  494.                         </tr>
  495.                     {% endfor %}
  496.                     </table>
  497.                 {% else %}
  498.                     データがありません
  499.                 {% endif %}
  500.                 <br/>
  501.                 <strong>ディーラー向けマージン</strong>
  502.                 {% if CashbackResult.DealerList %}
  503.                     <table>
  504.                     <tr>
  505.                         <td>契約区分</td>
  506.                         <td>販売店ID</td>
  507.                         <td>ディーラー</td>
  508.                         <td>販売店名</td>
  509.                         <td>証券番号</td>
  510.                         <td>公式サイト受注金額</td>
  511.                         <td>通販売上マージン</td>
  512.                         <td>仕入れサイト受注金額(販売店)</td>
  513.                         <td>仕入れサイト受注金額(応援)</td>
  514.                         <td>仕入れサイト受注金額(小売店)</td>
  515.                         <td>店舗売上マージン</td>
  516.                         <td>マージン合算</td>
  517.                     </tr>
  518.                     {% for DealerList in CashbackResult.DealerList %}
  519.                         <tr>
  520.                             <td>{{DealerList.contract_type_name}}</td>
  521.                             <td>{{DealerList.id}}</td>
  522.                             <td>{{DealerList.dealer_code}}</td>
  523.                             <td>{{DealerList.company_name}}</td>
  524.                             <td>{{DealerList.stock_number}}</td>
  525.                             <td>{{DealerList.sales_total| price }}</td>
  526.                             <td>{{DealerList.sales_margin| price }}</td>
  527.                             <td>{{DealerList.self_total| price }}</td>
  528.                             <td>{{DealerList.oen_self_total| price }}</td>
  529.                             <td>{{DealerList.kouri_self_total| price }}</td>
  530.                             <td>{{DealerList.chain_total| price }}</td>
  531.                             <td>{{DealerList.margin_total| price }}</td>
  532.                         </tr>
  533.                     {% endfor %}
  534.                     </table>
  535.                 {% else %}
  536.                     データがありません
  537.                 {% endif %}
  538.                 <br/>
  539.                 <strong>マージンデータ出力</strong>
  540.                 {% if CashbackResult.Cashback %}
  541.                     <table>
  542.                     <tr>
  543.                         <td>対象月</td>
  544.                         <td>契約区分</td>
  545.                         <td>販売店ID</td>
  546.                         <td>ディーラー</td>
  547.                         <td>販売店名</td>
  548.                         <td>証券番号</td>
  549.                         <td>マージン</td>
  550.                         <td>前月繰り越しマージン</td>
  551.                         <td>クーポンマージン</td>
  552.                         <td>応援プログラム適用マージン</td>
  553.                         <td>仕入れ金額</td>
  554.                         <td>請求金額</td>
  555.                         <td>マージン残高</td>
  556.                         <td>繰り越しマージン</td>
  557.                         <td>出力結果</td>
  558.                     </tr>
  559.                     {% for Cashback in CashbackResult.Cashback %}
  560.                         <tr>
  561.                             <td>{{Cashback.referenceYm}}</td>
  562.                             {% if Cashback.ChainStore %}
  563.                                 <td>{{Cashback.ChainStore.ContractType.name}}</td>
  564.                                 <td>{{Cashback.ChainStore.id}}</td>
  565.                                 <td>{{Cashback.ChainStore.dealer_code}}</td>
  566.                                 <td>{{Cashback.ChainStore.company_name}}</td>
  567.                                 <td>{{Cashback.ChainStore.stock_number}}</td>
  568.                             {% else %}
  569.                                 <td>&nbsp;</td>
  570.                                 <td>&nbsp;</td>
  571.                                 <td>&nbsp;</td>
  572.                                 <td>未登録</td>
  573.                                 <td>&nbsp;</td>
  574.                             {% endif %}
  575.                             <td>{{Cashback.margin_price| price }}</td>
  576.                             <td>{{Cashback.previous_margin_price| price }}</td>
  577.                             <td>{{Cashback.coupon_margin| price }}</td>
  578.                             <td>{{Cashback.oen_support_total| price }}</td>
  579.                             <td>{{Cashback.purchase_amount| price }}</td>
  580.                             <td>{{Cashback.request_amount| price }}</td>
  581.                             <td>{{Cashback.margin_balance| price }}</td>
  582.                             <td>{{Cashback.carried_forward| price }}</td>
  583.                             <td>{{Cashback.export_cnt }}</td>
  584.                         </tr>
  585.                     {% endfor %}
  586.                     </table>
  587.                 {% else %}
  588.                     データがありません
  589.                 {% endif %}
  590.                 <br /><br /><br /><br />
  591.             {% else %}
  592.                 <h1 class=\"c-static-page-header__title c-static-error\">キャッシュバック計算結果が見つかりません</h1>
  593.             {% endif %}
  594.         {% endif %}
  595.     </div>
  596. </div>
  597. {% endblock %}
  598. ""Cashback/calcCashback.twig""/home/offshore2022/test-darcys-factory.xyz/public_html/app/template/default/Cashback/calcCashback.twig");
  599.     }
  600. }