Проблема макета отчетов на языке определения отчетов - PullRequest
0 голосов
/ 20 февраля 2019

Я исследую старый отчет .rdl, который, кажется, не заполняет правильный столбец, если счет-фактура «Текущий».Текущий определяется, если дата начала счета не превышает Дату исполнения.Если он превысит срок оплаты, сумма счета появится через 0-30 или более чем на 31 день.

Я попытался открыть отчет в построителе отчетов и в визуальном программном обеспечении, однако он выдает ошибкунесоответствие версии заявления (я следовал нескольким руководствам в Интернете, чтобы решить эту проблему, но безрезультатно).

Необработанный код:

<table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                      </properties>
                                      <data>vldtdate:dateDiff(tns:DUE_DATE, ../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME)</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE,../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &gt; 0</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>vldtdate:dateDiff(tns:DUE_DATE, ../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME)</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>0</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                      </number-format>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <number-columns-spanned>2</number-columns-spanned>
                                         <padding-left>3pt</padding-left>
                                         <text-align>left</text-align>
                                      </properties>
                                      <data>vldtstr:strIFF(vldtstr:strCompare(tns:INVOICE_TYPE,'CHECK'),tns:INVOICE_TYPE,'CHEQUE',tns:INVOICE_TYPE)</data>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>vldtstr:strIFF(vldtstr:strCompare(tns:INVOICE_TYPE,'CHECK'),tns:INVOICE_TYPE,'CHEQUE',tns:INVOICE_TYPE)</data>
                                      </text-field>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <number-columns-spanned>1</number-columns-spanned>
                                         <overflow>auto</overflow>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                         <wrap-option>no-wrap</wrap-option>
                                      </properties>
                                      <data>tns:OPEN_AMOUNT</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE,../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &lt;0</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>tns:OPEN_AMOUNT</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>-1</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                         <currency>true</currency>
                                         <null-to-zero>true</null-to-zero>
                                      </number-format>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <overflow>auto</overflow>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                         <wrap-option>no-wrap</wrap-option>
                                      </properties>
                                      <data>tns:OPEN_AMOUNT</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE, vldtdate:currentDateTime()) &gt;=0 and vldtdate:dateDiff(tns:DUE_DATE,../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &lt; 31</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>tns:OPEN_AMOUNT</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>-1</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                         <currency>true</currency>
                                         <null-to-zero>true</null-to-zero>
                                      </number-format>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <overflow>auto</overflow>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                         <wrap-option>no-wrap</wrap-option>
                                      </properties>
                                      <data>tns:OPEN_AMOUNT</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE, ../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &gt;30</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>tns:OPEN_AMOUNT</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>-1</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                         <currency>true</currency>
                                         <null-to-zero>true</null-to-zero>
                                      </number-format>
                                   </table-cell>

Изображение ниже отображает проблему Example Image

Есть идеи?

...