Index: Baza Reklam 2 - Faktury/Raporty/fakturaKorekta.rdlc
===================================================================
--- Baza Reklam 2 - Faktury/Raporty/fakturaKorekta.rdlc (revision 36)
+++ Baza Reklam 2 - Faktury/Raporty/fakturaKorekta.rdlc (revision 41)
@@ -1642,4 +1642,200 @@
     <ColumnSpacing>1cm</ColumnSpacing>
     <ReportItems>
+      <Table Name="table8">
+        <ZIndex>7</ZIndex>
+        <DataSetName>FakturaDetailsKorekty</DataSetName>
+        <Top>19.1746cm</Top>
+        <Width>9.91743cm</Width>
+        <Header>
+          <TableRows>
+            <TableRow>
+              <TableCells>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox88">
+                      <Style>
+                        <BackgroundColor>#e0e0e0</BackgroundColor>
+                        <BorderColor>
+                          <Default>DarkGray</Default>
+                        </BorderColor>
+                        <BorderStyle>
+                          <Default>Solid</Default>
+                        </BorderStyle>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>1pt</PaddingTop>
+                        <PaddingBottom>1pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>5</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=First(Fields!FAKTURY_DRUK_DETAILS_INTERNATIONALlabel_razem_do_zaplaty.Value, "tlumaczenia")</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox89">
+                      <Style>
+                        <BorderColor>
+                          <Default>DarkGray</Default>
+                        </BorderColor>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <FontWeight>700</FontWeight>
+                        <Format>C</Format>
+                        <TextAlign>Left</TextAlign>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>1pt</PaddingTop>
+                        <PaddingBottom>1pt</PaddingBottom>
+                        <Language>pl</Language>
+                      </Style>
+                      <ZIndex>4</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=Abs(Sum(Fields!BRUTTO.Value, "FakturaDetails2") - Sum(Fields!BRUTTO.Value, "FakturaDetailsKorekty"))</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox90">
+                      <Style>
+                        <BorderColor>
+                          <Default>DarkGray</Default>
+                        </BorderColor>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <FontWeight>700</FontWeight>
+                        <Format>C</Format>
+                        <TextAlign>Left</TextAlign>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>1pt</PaddingTop>
+                        <PaddingBottom>1pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>3</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=iif(Abs(First(Fields!waluta_brutto.Value, "Korekta")-First(Fields!waluta_brutto.Value, "Faktura"))&lt;&gt;0,Abs(First(Fields!waluta_brutto.Value, "Korekta")-First(Fields!waluta_brutto.Value, "Faktura")) &amp; " " &amp; First(Fields!waluta_miano.Value, "Korekta"),"")</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox91">
+                      <Style>
+                        <BorderColor>
+                          <Default>DarkGray</Default>
+                        </BorderColor>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <FontWeight>700</FontWeight>
+                        <Format>C</Format>
+                        <TextAlign>Left</TextAlign>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>1pt</PaddingTop>
+                        <PaddingBottom>1pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>2</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value />
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+              </TableCells>
+              <Height>0.50794cm</Height>
+            </TableRow>
+          </TableRows>
+        </Header>
+        <TableColumns>
+          <TableColumn>
+            <Width>2.04441cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>2.53968cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>1.77778cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>3.55556cm</Width>
+          </TableColumn>
+        </TableColumns>
+        <Height>1.01588cm</Height>
+        <Footer>
+          <TableRows>
+            <TableRow>
+              <TableCells>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox92">
+                      <Style>
+                        <BackgroundColor>#e0e0e0</BackgroundColor>
+                        <BorderColor>
+                          <Default>DarkGray</Default>
+                        </BorderColor>
+                        <BorderStyle>
+                          <Default>Solid</Default>
+                        </BorderStyle>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>1pt</PaddingTop>
+                        <PaddingBottom>1pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>1</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=First(Fields!FAKTURY_DRUK_DETAILS_INTERNATIONALlabel_razem_slownie.Value, "tlumaczenia")</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ColSpan>3</ColSpan>
+                  <ReportItems>
+                    <Textbox Name="textbox94">
+                      <Style>
+                        <BorderColor>
+                          <Default>DarkGray</Default>
+                        </BorderColor>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>1pt</PaddingTop>
+                        <PaddingBottom>1pt</PaddingBottom>
+                      </Style>
+                      <CanGrow>true</CanGrow>
+                      <Value>=Code.Slownie(Abs(Sum(Fields!BRUTTO.Value, "FakturaDetails2") - Sum(Fields!BRUTTO.Value, "FakturaDetailsKorekty")))</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+              </TableCells>
+              <Height>0.50794cm</Height>
+            </TableRow>
+          </TableRows>
+        </Footer>
+        <Left>0.38095cm</Left>
+      </Table>
       <Rectangle Name="rectangle6">
         <Left>0.12698cm</Left>
@@ -2057,8 +2253,7 @@
           </Table>
         </ReportItems>
-        <Top>24.25397cm</Top>
+        <Top>25.52381cm</Top>
         <Width>18.49207cm</Width>
         <PageBreakAtStart>true</PageBreakAtStart>
-        <Height>2.66667cm</Height>
       </Rectangle>
       <Table Name="table7">
@@ -2400,5 +2595,5 @@
                       <ZIndex>8</ZIndex>
                       <CanGrow>true</CanGrow>
-                      <Value>=Sum(Fields!NETTO.Value, "FakturaDetails2") - Sum(Fields!NETTO.Value, "FakturaDetailsKorekty")</Value>
+                      <Value>=Abs(Sum(Fields!NETTO.Value, "FakturaDetails2") - Sum(Fields!NETTO.Value, "FakturaDetailsKorekty"))</Value>
                     </Textbox>
                   </ReportItems>
@@ -2459,5 +2654,5 @@
                       <ZIndex>6</ZIndex>
                       <CanGrow>true</CanGrow>
-                      <Value>=iif(IsNothing(Fields!waluta_miano.Value),0.22*(Sum(Fields!NETTO.Value, "FakturaDetails2") - Sum(Fields!NETTO.Value, "FakturaDetailsKorekty")),"-")</Value>
+                      <Value>=iif(IsNothing(Fields!waluta_miano.Value),Abs(0.22*(Sum(Fields!NETTO.Value, "FakturaDetails2") - Sum(Fields!NETTO.Value, "FakturaDetailsKorekty"))),"-")</Value>
                     </Textbox>
                   </ReportItems>
@@ -2488,5 +2683,5 @@
                       <ZIndex>5</ZIndex>
                       <CanGrow>true</CanGrow>
-                      <Value>=Sum(Fields!BRUTTO.Value, "FakturaDetails2") - Sum(Fields!BRUTTO.Value, "FakturaDetailsKorekty")</Value>
+                      <Value>=Abs(Sum(Fields!BRUTTO.Value, "FakturaDetails2") - Sum(Fields!BRUTTO.Value, "FakturaDetailsKorekty"))</Value>
                     </Textbox>
                   </ReportItems>
@@ -5337,5 +5532,5 @@
           </Rectangle>
         </ReportItems>
-        <Top>19.04762cm</Top>
+        <Top>20.31746cm</Top>
         <Width>18.53968cm</Width>
         <Height>3.42857cm</Height>
@@ -5381,10 +5576,10 @@
           </Textbox>
         </ReportItems>
-        <Top>22.60318cm</Top>
+        <Top>23.87302cm</Top>
         <Width>18.53968cm</Width>
         <Height>1.52381cm</Height>
       </Rectangle>
     </ReportItems>
-    <Height>27.17461cm</Height>
+    <Height>28.19048cm</Height>
   </Body>
   <Language>pl</Language>
